lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

Go to definition goes to ---@field instead of source

Open Mathu-lmn opened this issue 1 year ago • 0 comments

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) image

Reproduction steps

  1. Write a code that calls a function for your metatable
  2. CTRL + Click the function call
  3. See result

Additional Notes

No response

Log File

No response

Mathu-lmn avatar May 27 '24 23:05 Mathu-lmn