Skip to content

Plugin ResolveRequire is getting the wrong URI #3259

@Bilal2453

Description

@Bilal2453

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 LuaLS/LuaLS.github.io#48

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions