Skip to content

Check whether language server has crashed #1110

@jez

Description

@jez

Is your feature request related to a problem? Please describe.

Sometimes language servers crash. This means that LSP features stop working until the user intervenes and fixes the reason why the language server crashed.

I'd like to be notified when the server dies.

Describe the solution you'd like

I'm fine with any of these:

  • a custom autocmd, like User LanguageServerCrashed
  • a custom call back, like how LanguageClient_registerHandler works
    • i think this is preferable, because it means i can get a message too
  • a global or buffer-local variable that's set

Again, there's nothing I can do to check this now, so any way to check whether the language server process crashed would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions