Pick up more home dir shell env when spawning (#8273)

Release Notes:

- Improved how Zed picks up shell environment when spawned.
This commit is contained in:
Thorsten Ball 2024-02-23 15:20:31 +01:00 committed by GitHub
parent 576f8d3ef3
commit 7cf0696c89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 2 deletions

View file

@ -9345,7 +9345,9 @@ impl LspAdapterDelegate for ProjectLspAdapterDelegate {
Ok(command_path) => Some((command_path, shell_env)),
Err(error) => {
log::warn!(
"failed to determine path for command {:?} in env {shell_env:?}: {error}", command.to_string_lossy()
"failed to determine path for command {:?} in shell PATH {:?}: {error}",
command.to_string_lossy(),
shell_path.map(String::as_str).unwrap_or("")
);
None
}