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

Plugin ResolveRequire is getting the wrong URI

Open Bilal2453 opened this issue 4 months ago • 0 comments

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows/Linux

What is the issue affecting?

Plugins

Expected Behaviour

Over the plugins page it seems to me like ResolveRequire first parameter is the current file the require is being typed at.

Actual Behaviour

But in reality it seems to be the workspace URI, not the file.

Image

Reproduction steps

  1. Make a new plugin
  2. Paste the same code shown in screenshot
  3. Type out some require statement, you will see the URI of the workspace in the output instead of the require statement file.

Additional Notes

See https://github.com/LuaLS/LuaLS.github.io/issues/48

Log File

No response

Bilal2453 avatar Aug 29 '25 22:08 Bilal2453