Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Plugin ResolveRequire is getting the wrong URI #3259

Open
@Bilal2453

Description

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

        AltStyle によって変換されたページ (->オリジナル) /