diff options
author | Aleksey Kladov <[email protected]> | 2018-12-30 13:20:17 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-30 13:20:17 +0000 |
commit | 3ee7a95315e510e719dae01bdc0b4cb47561938f (patch) | |
tree | 9b32aef6be29b8482f82c52a33eefa656a8cec2c /crates/ra_analysis/src/completion/complete_path.rs | |
parent | 0e90e0436a5433c61f932c254d1cc7400022a940 (diff) |
use completion context when creating completion
Diffstat (limited to 'crates/ra_analysis/src/completion/complete_path.rs')
-rw-r--r-- | crates/ra_analysis/src/completion/complete_path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/completion/complete_path.rs b/crates/ra_analysis/src/completion/complete_path.rs index c73a083a4..99fe9aa94 100644 --- a/crates/ra_analysis/src/completion/complete_path.rs +++ b/crates/ra_analysis/src/completion/complete_path.rs | |||
@@ -17,7 +17,7 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) -> C | |||
17 | let module_scope = module.scope(ctx.db)?; | 17 | let module_scope = module.scope(ctx.db)?; |
18 | module_scope.entries().for_each(|(name, res)| { | 18 | module_scope.entries().for_each(|(name, res)| { |
19 | CompletionItem::new(CompletionKind::Reference, name.to_string()) | 19 | CompletionItem::new(CompletionKind::Reference, name.to_string()) |
20 | .from_resolution(ctx.db, res) | 20 | .from_resolution(ctx, res) |
21 | .add_to(acc) | 21 | .add_to(acc) |
22 | }); | 22 | }); |
23 | } | 23 | } |