Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
search: Update results multi-buffer before search is finished (#35470)
Piotr Osiewiczbf361c316d43
diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rsindex 3b9700c5f16..15c1099aec1 100644--- a/crates/search/src/project_search.rs+++ b/crates/search/src/project_search.rs@@ -355,8 +355,9 @@ impl ProjectSearch {while let Some(new_ranges) = new_ranges.next().await {project_search- .update(cx, |project_search, _| {+ .update(cx, |project_search, cx| {project_search.match_ranges.extend(new_ranges);+ cx.notify();}).ok()?;}