Skip to content

Impossible to prevent process.exit? #364

@chrismwendt

Description

@chrismwendt

https://github.com/Microsoft/vscode-languageserver-node/blob/6d8ddcc7c2b4f65a7861438df88d46ed4b250fca/server/src/main.ts#L1714-L1735

Is it impossible to prevent process.exit in onExit?

When using TCP streams for LSP communication to a remote language server, it would be great to be able to serve multiple clients with a single process. When the language server process is forced to exit, the only workaround I see is to somehow fork a process on every connection, which is rather difficult/impossible in Node.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    *out-of-scopePosted issue is not in scope of VS Code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions