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.

terminal: Fix Python virtual environment detection (#15989)

Vitaly Slobodinb55e8383c810
diff --git a/crates/project/src/terminals.rs b/crates/project/src/terminals.rs
index 2d64a25b2fc..bdf32b32211 100644
--- a/crates/project/src/terminals.rs
+++ b/crates/project/src/terminals.rs
@@ -260,7 +260,7 @@ impl Project {
.and_then(|(worktree, relative_path)| {
worktree.read(cx).entry_for_path(&relative_path)
})
- .is_some()
+ .is_some_and(|entry| entry.is_dir())
})
}