Skip to content

Commit bef5cf0

Browse files
Raise the import search query cap
1 parent f572397 commit bef5cf0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/ra_ide/src/imports_locator.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ impl<'a> ImportsLocatorIde<'a> {
3535
let project_results = {
3636
let mut query = Query::new(name_to_import.to_string());
3737
query.exact();
38-
query.limit(10);
38+
query.limit(40);
3939
symbol_index::world_symbols(db, query)
4040
};
4141
let lib_results = {
4242
let mut query = Query::new(name_to_import.to_string());
4343
query.libs();
4444
query.exact();
45-
query.limit(10);
45+
query.limit(40);
4646
symbol_index::world_symbols(db, query)
4747
};
4848

@@ -59,6 +59,7 @@ impl<'a> ImportsLocatorIde<'a> {
5959
})
6060
.filter(|use_path| !use_path.segments.is_empty())
6161
.unique()
62+
.take(20)
6263
.collect()
6364
}
6465

0 commit comments

Comments
 (0)