lua-language-server
lua-language-server copied to clipboard
vscode does not list server-provided completion items.
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Completion
Expected Behaviour
vscode displays the enum
Actual Behaviour
vscode shows no completion available, despite server response.
Reproduction steps
---@alias Option string | "AAA" | "BBB" | "CCC"
---@param x Option[]
local function f(x)
end
f({"|"}) <- trigger completion
Additional Notes
No response
Log File
No response
Strange enough, if we write f({[1] = <trigger completion>}), then it works as expected 😕
VSCode will perform a secondary filter based on the submitted text and the text near the cursor to reject obviously incorrect items. I will check to see if I fell into a trap.