Done. The single-repo special case has been removed. Now all file search results will include the repo name prefix, regardless of whether it's a single-repo or multi-repo project. (#1567)

This commit is contained in:
Alex Netsch
2025-12-16 17:08:02 +00:00
committed by GitHub
parent 8eb38ec476
commit b0be64ed2f

View File

@@ -276,13 +276,7 @@ impl ProjectService {
return Ok(vec![]);
}
// Simple search in single-repo case
if repositories.len() == 1 {
let repo = &repositories[0];
return self.search_single_repo(cache, &repo.path, query).await;
}
// Multi repo: search in parallel and prefix paths
// Search in parallel and prefix paths with repo name
let search_futures: Vec<_> = repositories
.iter()
.map(|repo| {