aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_ide/src/imports_locator.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide/src/imports_locator.rs b/crates/ra_ide/src/imports_locator.rs
index ab9cd7990..e69fb4070 100644
--- a/crates/ra_ide/src/imports_locator.rs
+++ b/crates/ra_ide/src/imports_locator.rs
@@ -35,14 +35,14 @@ impl<'a> ImportsLocatorIde<'a> {
35 let project_results = { 35 let project_results = {
36 let mut query = Query::new(name_to_import.to_string()); 36 let mut query = Query::new(name_to_import.to_string());
37 query.exact(); 37 query.exact();
38 query.limit(10); 38 query.limit(40);
39 symbol_index::world_symbols(db, query) 39 symbol_index::world_symbols(db, query)
40 }; 40 };
41 let lib_results = { 41 let lib_results = {
42 let mut query = Query::new(name_to_import.to_string()); 42 let mut query = Query::new(name_to_import.to_string());
43 query.libs(); 43 query.libs();
44 query.exact(); 44 query.exact();
45 query.limit(10); 45 query.limit(40);
46 symbol_index::world_symbols(db, query) 46 symbol_index::world_symbols(db, query)
47 }; 47 };
48 48
@@ -59,6 +59,7 @@ impl<'a> ImportsLocatorIde<'a> {
59 }) 59 })
60 .filter(|use_path| !use_path.segments.is_empty()) 60 .filter(|use_path| !use_path.segments.is_empty())
61 .unique() 61 .unique()
62 .take(20)
62 .collect() 63 .collect()
63 } 64 }
64 65