-
-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overload intellisense issue with type of parameters #2708
Comments
I think I've found the cause of this issue, in the lua-language-server/script/vm/compiler.lua Lines 1090 to 1107 in ba8f90e
I tried to remove this early break, and it can solve this issue: local function compileFunctionParam(func, source)
-- local call ---@type fun(f: fun(x: number));call(function (x) end) --> x -> number
local funcNode = vm.compileNode(func)
local found = false
for n in funcNode:eachObject() do
...
found = true -- replace the original `return true`
...
end
if found then
return true
end However this fix cause a few new problems...
|
I just found out that even with my #2838, now although lua-language-server/meta/template/string.lua Lines 85 to 88 in d1320ae
Maybe @Rathoz you have to open another issue for that 😂 |
Correct on string.lower() accpect string|number.
I can open a new issue on it if you like |
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?
Type Checking
Expected Behaviour
a
isstring|number
Actual Behaviour
a
isstring
Reproduction steps
Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered: