lua-language-server
lua-language-server copied to clipboard
Go to definition goes to ---@field instead of source
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?
Other
Expected Behaviour
I expect the go to definition to go to the actual definition of the function
Actual Behaviour
Instead, in the case of using metatables and classes, it brings me to the ---@field definition (found twice btw)
Reproduction steps
- Write a code that calls a function for your metatable
- CTRL + Click the function call
- See result
Additional Notes
No response
Log File
No response