diff options
author | Kirill Bulatov <[email protected]> | 2020-01-23 19:30:59 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-01-26 22:16:29 +0000 |
commit | bef5cf0b9929539e8d9fece006bfd3db1b68bec4 (patch) | |
tree | b89acd04803a19216d6f6755665a75470363caee /crates/ra_ide/src/imports_locator.rs | |
parent | f57239729cb9d6f60eb09d8cfd8244066b5e182c (diff) |
Raise the import search query cap
Diffstat (limited to 'crates/ra_ide/src/imports_locator.rs')
-rw-r--r-- | crates/ra_ide/src/imports_locator.rs | 5 |
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 | ||