Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
languages: Invoke conda activate in conda environments (#37627)
Lukas Wirthec58adca131c
diff --git a/crates/languages/src/python.rs b/crates/languages/src/python.rsindex 5e6f5e414f0..06fb49293f8 100644--- a/crates/languages/src/python.rs+++ b/crates/languages/src/python.rs@@ -902,6 +902,13 @@ impl ToolchainLister for PythonToolchainProvider {let env = toolchain.name.as_deref().unwrap_or("default");activation_script.push(format!("pixi shell -e {env}"))}+ Some(PythonEnvironmentKind::Conda) => {+ if let Some(name) = &toolchain.name {+ activation_script.push(format!("conda activate {name}"));+ } else {+ activation_script.push("conda activate".to_string());+ }+ }Some(PythonEnvironmentKind::Venv | PythonEnvironmentKind::VirtualEnv) => {if let Some(prefix) = &toolchain.prefix {let activate_keyword = match shell {