Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
search: Remove noisy buffer search logs (#38679)
tidely691bfe71db35
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rsindex 925d390cb3e..126215a0a75 100644--- a/crates/search/src/buffer_search.rs+++ b/crates/search/src/buffer_search.rs@@ -794,10 +794,13 @@ impl BufferSearchBar {if let Some(search) = search {cx.spawn_in(window, async move |this, cx| {- search.await?;- this.update_in(cx, |this, window, cx| {- this.activate_current_match(window, cx)- })+ if search.await.is_ok() {+ this.update_in(cx, |this, window, cx| {+ this.activate_current_match(window, cx)+ })+ } else {+ Ok(())+ }}).detach_and_log_err(cx);}@@ -1057,10 +1060,13 @@ impl BufferSearchBar {cx.notify();cx.spawn_in(window, async move |this, cx| {- search.await?;- this.update_in(cx, |this, window, cx| {- this.activate_current_match(window, cx)- })+ if search.await.is_ok() {+ this.update_in(cx, |this, window, cx| {+ this.activate_current_match(window, cx)+ })+ } else {+ Ok(())+ }}).detach_and_log_err(cx);}