diff options
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_scope.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_scope.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_scope.rs b/crates/ra_ide_api/src/completion/complete_scope.rs index 2ea22876f..c1f48b026 100644 --- a/crates/ra_ide_api/src/completion/complete_scope.rs +++ b/crates/ra_ide_api/src/completion/complete_scope.rs | |||
@@ -10,8 +10,9 @@ pub(super) fn complete_scope(acc: &mut Completions, ctx: &CompletionContext) { | |||
10 | return; | 10 | return; |
11 | } | 11 | } |
12 | 12 | ||
13 | let names = ctx.analyzer.all_names(ctx.db); | 13 | ctx.analyzer.process_all_names(ctx.db, &mut |name, res| { |
14 | names.into_iter().for_each(|(name, res)| acc.add_resolution(ctx, name.to_string(), &res)); | 14 | acc.add_resolution(ctx, name.to_string(), &res) |
15 | }); | ||
15 | 16 | ||
16 | // auto-import | 17 | // auto-import |
17 | // We fetch ident from the original file, because we need to pre-filter auto-imports | 18 | // We fetch ident from the original file, because we need to pre-filter auto-imports |