-
-
Notifications
You must be signed in to change notification settings - Fork 382
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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, Diagnostics/Syntax Checking
Expected Behaviour
The following piece of code should yieid no issues:
local mt = {} ---@type metatable
mt.__close = function () end
Actual Behaviour
The language server believes that __close
is not a metamethod and doesn't belong to metatable
type:
This method also does not appear in suggestions:
Reproduction steps
- Past code from example.
- Observe the issue.
Additional Notes
No response
Log File
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working