diff options
-rw-r--r-- | crates/ra_ide_api/src/completion/presentation.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/crates/ra_ide_api/src/completion/presentation.rs b/crates/ra_ide_api/src/completion/presentation.rs index 31b887492..ad414412b 100644 --- a/crates/ra_ide_api/src/completion/presentation.rs +++ b/crates/ra_ide_api/src/completion/presentation.rs | |||
@@ -43,24 +43,6 @@ impl Completions { | |||
43 | ) { | 43 | ) { |
44 | use hir::ModuleDef::*; | 44 | use hir::ModuleDef::*; |
45 | 45 | ||
46 | // if let Some(macro_) = resolution.get_macros() { | ||
47 | // self.add_macro(ctx, Some(local_name.clone()), macro_); | ||
48 | // } | ||
49 | |||
50 | // let def = resolution.as_ref().take_types().or_else(|| resolution.as_ref().take_values()); | ||
51 | // let def = match def { | ||
52 | // // Only insert once if it is just a macro name | ||
53 | // None if resolution.get_macros().is_some() => return, | ||
54 | // None => { | ||
55 | // self.add(CompletionItem::new( | ||
56 | // CompletionKind::Reference, | ||
57 | // ctx.source_range(), | ||
58 | // local_name, | ||
59 | // )); | ||
60 | // return; | ||
61 | // } | ||
62 | // Some(it) => it, | ||
63 | // }; | ||
64 | let mut completion_kind = CompletionKind::Reference; | 46 | let mut completion_kind = CompletionKind::Reference; |
65 | let (kind, docs) = match resolution { | 47 | let (kind, docs) = match resolution { |
66 | ScopeDef::ModuleDef(Module(it)) => (CompletionItemKind::Module, it.docs(ctx.db)), | 48 | ScopeDef::ModuleDef(Module(it)) => (CompletionItemKind::Module, it.docs(ctx.db)), |