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:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user