From 4f5cc0a24b8969f60429f057d7c4054bc15e038a Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com> Date: Tue, 2 Dec 2025 21:04:28 +0900 Subject: [PATCH] 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 --- crates/lsp/src/lsp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/lsp/src/lsp.rs b/crates/lsp/src/lsp.rs index 1bc635dcbeca2d38506640b86e547ce90ec76d3d..edfe2fec8c6ef41ce81b6c8a8a8dcb441c833c70 100644 --- a/crates/lsp/src/lsp.rs +++ b/crates/lsp/src/lsp.rs @@ -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,