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.

remove debug logging for project_search semantic search

KCaverly89bbcdfa4f04
diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs
index 7f1a639a690..d84f15a22f7 100644
--- a/crates/search/src/project_search.rs
+++ b/crates/search/src/project_search.rs
@@ -193,7 +193,6 @@ impl ProjectSearch {
exclude_files: Vec<GlobMatcher>,
cx: &mut ModelContext<Self>,
) {
- let t0 = Instant::now();
let search = SemanticIndex::global(cx).map(|index| {
index.update(cx, |semantic_index, cx| {
semantic_index.search_project(
@@ -210,7 +209,6 @@ impl ProjectSearch {
self.match_ranges.clear();
self.pending_search = Some(cx.spawn(|this, mut cx| async move {
let results = search?.await.log_err()?;
- log::trace!("semantic search elapsed: {:?}", t0.elapsed().as_millis());
let (_task, mut match_ranges) = this.update(&mut cx, |this, cx| {
this.excerpts.update(cx, |excerpts, cx| {