Skip to content

:LspRestart and :LspStop show completion for invalid language servers #3975

Description

@brianhuster

Description

For Nvim 0.11.2 and later, :LspRestart and :LspStop require the server name to be available in vim.lsp.config table (which means it must be configured in new 0.11 way). However the completion both commands provide also include servers that were started with vim.lsp.start() or vim.lsp.start_client(). And if I provide no server names to :LspRestart/:LspStop, both commands will also attempt to stop those invalid servers, which leads to error.

To reproduce, just install this plugin and copilot.vim. After that, try running :LspRestart (with no arguments)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    Effort

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions