Skip to content

Duplicated parameter hints when using workspace with multiple folders #377

Description

@iTob191

Describe the bug
When using the workspace feature of VS Code, the extension seems to launch a separate instance of the language server for each folder of the workspace. This works fine initially, but after saving a file the instances start interfering and for example parameter hints and some diagnostics are duplicated.
I'm also not sure whether it is intended, that multiple "😺 Lua" are shown in the left part of the status bar in the above case.

To Reproduce
Steps to reproduce the behavior:

  1. Create a workspace with 2 folders and some lua file in each workspace.
  2. Open a file of the first folder.
  3. Open a file of the second folder.
  4. Press Ctrl+S
  5. See error

Expected behavior
Parameter hints are not duplicated.

Screenshots

tyGYDVlggmlluPaQpkbP.mp4

Environment (please complete the following information):

  • OS: Windows
  • Is WSL remote? No
  • Client: VSCode (all other extensions disabled)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions