diff options
author | Aleksey Kladov <[email protected]> | 2018-12-21 22:27:07 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-21 22:42:26 +0000 |
commit | 25dda42f3773b1d002a5809c0182c2adc6c47027 (patch) | |
tree | cbfed6abbbd620a52443ddb6c8fecf4e80abd654 /crates/ra_analysis/src/completion/complete_path.rs | |
parent | ebb584ce669d04f109d5b21a08aca9d4e9acecc8 (diff) |
introduce ComletionItemKind
Diffstat (limited to 'crates/ra_analysis/src/completion/complete_path.rs')
-rw-r--r-- | crates/ra_analysis/src/completion/complete_path.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/ra_analysis/src/completion/complete_path.rs b/crates/ra_analysis/src/completion/complete_path.rs index 5fc24af72..692502bb2 100644 --- a/crates/ra_analysis/src/completion/complete_path.rs +++ b/crates/ra_analysis/src/completion/complete_path.rs | |||
@@ -17,11 +17,9 @@ 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 |
21 | CompletionItem::new(name.to_string()) | 21 | .entries() |
22 | .kind(Reference) | 22 | .for_each(|(name, _res)| CompletionItem::new(Reference, name.to_string()).add_to(acc)); |
23 | .add_to(acc) | ||
24 | }); | ||
25 | Ok(()) | 23 | Ok(()) |
26 | } | 24 | } |
27 | 25 | ||