Open
Description
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)test(|)
-
input
'
(single quote) to complete, and only the first function'sp0
can be completed -
if the input is
test(|, 0)
, then the second function'sp0
can be completed
Additional Notes
No response
Log File
No response
Metadata
Metadata
Assignees
Labels
No labels