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 authored and GitHub committed 2025-12-02 14:04:28 +02:00
1 parent d6cd0ef02a
commit ff41cea428
1 file changed
+1 -1
+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,