diff options
author | Aleksey Kladov <[email protected]> | 2018-12-21 23:20:14 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-21 23:20:14 +0000 |
commit | 97cb463c9be3c21931d0e284603238ce3cb02b2a (patch) | |
tree | 232a4321f61d881319983b15a7b80c4e6394be1b /crates/ra_analysis/src/completion/complete_path.rs | |
parent | 238b52358d0d6109c89d1288b12bfa0aa71790de (diff) |
moar icons
Diffstat (limited to 'crates/ra_analysis/src/completion/complete_path.rs')
-rw-r--r-- | crates/ra_analysis/src/completion/complete_path.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/completion/complete_path.rs b/crates/ra_analysis/src/completion/complete_path.rs index 802f4abe4..ad4d68a33 100644 --- a/crates/ra_analysis/src/completion/complete_path.rs +++ b/crates/ra_analysis/src/completion/complete_path.rs | |||
@@ -17,8 +17,10 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) -> C | |||
17 | _ => return Ok(()), | 17 | _ => return Ok(()), |
18 | }; | 18 | }; |
19 | let module_scope = target_module.scope(ctx.db)?; | 19 | let module_scope = target_module.scope(ctx.db)?; |
20 | module_scope.entries().for_each(|(name, _res)| { | 20 | module_scope.entries().for_each(|(name, res)| { |
21 | CompletionItem::new(CompletionKind::Reference, name.to_string()).add_to(acc) | 21 | CompletionItem::new(CompletionKind::Reference, name.to_string()) |
22 | .from_resolution(ctx.db, res) | ||
23 | .add_to(acc) | ||
22 | }); | 24 | }); |
23 | Ok(()) | 25 | Ok(()) |
24 | } | 26 | } |