Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
reindex semantic index when search project pane is reactivated in semantic mode
KCaverly0b204bfdc8d0
diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rsindex b0ec7219d13..f665c4ddcdf 100644--- a/crates/search/src/project_search.rs+++ b/crates/search/src/project_search.rs@@ -1635,6 +1635,12 @@ impl ToolbarItemView for ProjectSearchBar {self.subscription = None;self.active_project_search = None;if let Some(search) = active_pane_item.and_then(|i| i.downcast::<ProjectSearchView>()) {+ search.update(cx, |search, cx| {+ if search.current_mode == SearchMode::Semantic {+ search.index_project(cx);+ }+ });+self.subscription = Some(cx.observe(&search, |_, _, cx| cx.notify()));self.active_project_search = Some(search);ToolbarItemLocation::PrimaryLeft {