mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-02 00:07:42 +03:00
Raise the import search query cap
This commit is contained in:
@@ -35,14 +35,14 @@ fn search_for_imports(
|
||||
let project_results = {
|
||||
let mut query = Query::new(name_to_import.to_string());
|
||||
query.exact();
|
||||
query.limit(10);
|
||||
query.limit(40);
|
||||
symbol_index::world_symbols(db, query)
|
||||
};
|
||||
let lib_results = {
|
||||
let mut query = Query::new(name_to_import.to_string());
|
||||
query.libs();
|
||||
query.exact();
|
||||
query.limit(10);
|
||||
query.limit(40);
|
||||
symbol_index::world_symbols(db, query)
|
||||
};
|
||||
|
||||
@@ -59,6 +59,7 @@ fn search_for_imports(
|
||||
})
|
||||
.filter(|use_path| !use_path.segments.is_empty())
|
||||
.unique()
|
||||
.take(20)
|
||||
.collect()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user