Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

languages: Fix Python venv auto-activation for PowerShell 7 (#46465)

Xin Zhao442c23640254
diff --git a/crates/languages/src/python.rs b/crates/languages/src/python.rs
index 2ec6bef8f28..81a9971b274 100644
--- a/crates/languages/src/python.rs
+++ b/crates/languages/src/python.rs
@@ -1462,6 +1462,7 @@ async fn resolve_venv_activation_scripts(
(ShellKind::Fish, "activate.fish"),
(ShellKind::Nushell, "activate.nu"),
(ShellKind::PowerShell, "activate.ps1"),
+ (ShellKind::Pwsh, "activate.ps1"),
(ShellKind::Cmd, "activate.bat"),
(ShellKind::Xonsh, "activate.xsh"),
] {