lua-language-server
lua-language-server copied to clipboard
Plugin ResolveRequire is getting the wrong URI
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.
Reproduction steps
- Make a new plugin
- Paste the same code shown in screenshot
- Type out some
requirestatement, you will see the URI of the workspace in the output instead of therequirestatement file.
Additional Notes
See https://github.com/LuaLS/LuaLS.github.io/issues/48
Log File
No response