From d5aba2795b7bfa053da54ee9ef2ef1edc81fd685 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Wed, 21 Feb 2024 10:11:41 +0100 Subject: [PATCH] Log when starting language servers (#8075) This should help us debug more failures because we can now see what exactly was started. Release Notes: - N/A Co-authored-by: Nathan Co-authored-by: Max --- crates/lsp/src/lsp.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/lsp/src/lsp.rs b/crates/lsp/src/lsp.rs index 342475e3f6..8b2a8cff17 100644 --- a/crates/lsp/src/lsp.rs +++ b/crates/lsp/src/lsp.rs @@ -179,6 +179,13 @@ impl LanguageServer { root_path.parent().unwrap_or_else(|| Path::new("/")) }; + log::info!( + "starting language server. binary path: {:?}, working directory: {:?}, args: {:?}", + binary.path, + working_dir, + &binary.arguments + ); + let mut server = process::Command::new(&binary.path) .current_dir(working_dir) .args(binary.arguments)