lsp: Send client process ID in LSP initialize request (#43988)

Per the [LSP
specification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initializeParams),
the client should send its process ID to the language server so the
server can monitor the client process and shut itself down if the client
exits unexpectedly.

Release Notes:

- N/A
This commit is contained in:
Shuhei Kadowaki
2025-12-02 14:04:28 +02:00
committed by GitHub
parent a2f69cd5bd
commit 4f5cc0a24b
+1 -1
View File
@@ -667,7 +667,7 @@ impl LanguageServer {
#[allow(deprecated)]
InitializeParams {
process_id: None,
process_id: Some(std::process::id()),
root_path: None,
root_uri: Some(self.root_uri.clone()),
initialization_options: None,