mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Raise the import search query cap
This commit is contained in:
parent
f57239729c
commit
bef5cf0b99
1 changed files with 3 additions and 2 deletions
|
@ -35,14 +35,14 @@ impl<'a> ImportsLocatorIde<'a> {
|
|||
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 @@ impl<'a> ImportsLocatorIde<'a> {
|
|||
})
|
||||
.filter(|use_path| !use_path.segments.is_empty())
|
||||
.unique()
|
||||
.take(20)
|
||||
.collect()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue