Log when starting language servers (#8075)
Thorsten Ball
,
Nathan
, and
Max
created 2 years ago
This should help us debug more failures because we can now see what
exactly was started.
Release Notes:
- N/A
Co-authored-by: Nathan <nathan@zed.dev>
Co-authored-by: Max <max@zed.dev>
Change summary
crates/lsp/src/lsp.rs | 7 +++++++
1 file changed, 7 insertions(+)
Detailed changes
@@ -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)