Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix adding a Python virtual environment, may duplicate the "open this dictionary" string when modifying content. (#41840)
dDostalker25489c2b7a5a
diff --git a/crates/file_finder/src/open_path_prompt.rs b/crates/file_finder/src/open_path_prompt.rsindex f29c0e6cd20..53bad3b3488 100644--- a/crates/file_finder/src/open_path_prompt.rs+++ b/crates/file_finder/src/open_path_prompt.rs@@ -399,7 +399,12 @@ impl PickerDelegate for OpenPathDelegate {}}).unwrap_or(false);- if should_prepend_with_current_dir {++ let current_dir_in_new_entries = new_entries+ .iter()+ .any(|entry| &entry.path.string == current_dir);++ if should_prepend_with_current_dir && !current_dir_in_new_entries {new_entries.insert(0,CandidateInfo {