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 <nathan@zed.dev>
Co-authored-by: Max <max@zed.dev>
This commit is contained in:
Thorsten Ball 2024-02-21 10:11:41 +01:00 committed by GitHub
parent 92b2e5608b
commit d5aba2795b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)