aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-09-13 14:40:48 +0100
committerGitHub <[email protected]>2019-09-13 14:40:48 +0100
commitb8c16ec002d48f4fb9d883d091114ccd1286ba47 (patch)
tree5fa82899fc15f5739ef80997c04fd9cc8153e786 /crates/ra_ide_api/src/completion
parentb31f9872ec67d371d669967f9c95f2d71a9d6bf5 (diff)
parent7be7f67198c617ad482717d9bf2c7dca9c2cd169 (diff)
Merge #1838
1838: rename add_resolution -> add_scope_def r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/completion')
-rw-r--r--crates/ra_ide_api/src/completion/presentation.rs18
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)),