How are you using the lua-language-server?
NeoVim
Which OS are you using?
MacOS
What is the issue affecting?
Completion
Expected Behaviour
complete param for all overload functions
Actual Behaviour
can only complete params whose param count exactly matches
Reproduction steps
-
create a lib.lua
---@meta test_lib
---@param p0 string|'aa'|'bb'
function test(p0) end
---@param p0 string|'cc'|'dd'
---@param p1 number
function test(p0, p1) end
-
create a test.lua (| is the cursor position)
-
input ' (single quote) to complete, and only the first function's p0 can be completed

-
if the input is test(|, 0), then the second function's p0 can be completed

Additional Notes
No response
Log File
No response
How are you using the lua-language-server?
NeoVim
Which OS are you using?
MacOS
What is the issue affecting?
Completion
Expected Behaviour
complete param for all overload functions
Actual Behaviour
can only complete params whose param count exactly matches
Reproduction steps
create a
lib.luacreate a
test.lua(|is the cursor position)input
'(single quote) to complete, and only the first function'sp0can be completedif the input is
test(|, 0), then the second function'sp0can be completedAdditional Notes
No response
Log File
No response