Revert "search: New old search implementation (#39956)" (#40831)

This reverts commit 7c4fb5a899.

Closes #40792

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Piotr Osiewicz
2025-10-21 22:15:20 +00:00
committed by GitHub
parent 2bba3358b8
commit 50d184b6a6
11 changed files with 389 additions and 1023 deletions
+3 -9
View File
@@ -640,15 +640,9 @@ impl HeadlessProject {
PathStyle::local(),
)?;
let results = this.update(&mut cx, |this, cx| {
project::Search::local(
this.fs.clone(),
this.buffer_store.clone(),
this.worktree_store.clone(),
message.limit as _,
cx,
)
.into_handle(query, cx)
.matching_buffers(cx)
this.buffer_store.update(cx, |buffer_store, cx| {
buffer_store.find_search_candidates(&query, message.limit as _, this.fs.clone(), cx)
})
})?;
let mut response = proto::FindSearchCandidatesResponse {