diff options
Diffstat (limited to 'crates/ra_ide/src/completion/presentation.rs')
-rw-r--r-- | crates/ra_ide/src/completion/presentation.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs index bfa7e08be..e4c57e41a 100644 --- a/crates/ra_ide/src/completion/presentation.rs +++ b/crates/ra_ide/src/completion/presentation.rs | |||
@@ -79,11 +79,10 @@ impl Completions { | |||
79 | return self.add_macro(ctx, Some(local_name), *mac); | 79 | return self.add_macro(ctx, Some(local_name), *mac); |
80 | } | 80 | } |
81 | ScopeDef::Unknown => { | 81 | ScopeDef::Unknown => { |
82 | return self.add(CompletionItem::new( | 82 | return self.add( |
83 | CompletionKind::Reference, | 83 | CompletionItem::new(CompletionKind::Reference, ctx.source_range(), local_name) |
84 | ctx.source_range(), | 84 | .kind(CompletionItemKind::UnresolvedReference), |
85 | local_name, | 85 | ); |
86 | )); | ||
87 | } | 86 | } |
88 | }; | 87 | }; |
89 | 88 | ||