Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
lsp_store: Preserve environment variables from ExtensionLspAdapter (#28173)
Vitaly Slobodinb3be294c905f
diff --git a/crates/project/src/lsp_store.rs b/crates/project/src/lsp_store.rsindex 609585f26f7..07a56e5d890 100644--- a/crates/project/src/lsp_store.rs+++ b/crates/project/src/lsp_store.rs@@ -424,6 +424,8 @@ impl LocalLspStore {let mut binary = binary_result?;let mut shell_env = delegate.shell_env().await;+ shell_env.extend(binary.env.unwrap_or_default());+if let Some(settings) = settings {if let Some(arguments) = settings.arguments {binary.arguments = arguments.into_iter().map(Into::into).collect();