Skip to content

Capture exit code of failing lsp server? #688

Open

Description

@pcj

Is there a way to hook the LanguageClient to report the exit code for a LSP server? Neither the initializationFailedHandler nor ErrorHandler options of the LanguageClientOptions seems to work for this.

https://github.com/microsoft/vscode-languageserver-node/tree/master/client

Activity

  1. akaroml commented on Sep 2, 2021

    @akaroml
    Member

    Yan Zhang (@Eskibear) has a case and will help with this issue.

  2. dbaeumer commented on Sep 2, 2021

    @dbaeumer
    Member
  3. dbaeumer commented on Dec 4, 2023

    @dbaeumer
    Member

    The error code is now printed to the Output channel. To capture it we would need to add a ExitHandler to the language client around here:

    this._serverProcess.on('exit', (code, signal) => {

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

    feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions