aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/completion
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-09-03 21:18:23 +0100
committerKirill Bulatov <[email protected]>2020-09-09 23:42:20 +0100
commit17870a3e2c39770a99f9ab5ce090abbe1dc334d2 (patch)
tree85e98d57518fd2735820e9b70f16a7e2ab54d082 /crates/ide/src/completion
parent4bed588001a1d6cd5c83a3eefc6ef77c439de40b (diff)
Better API
Diffstat (limited to 'crates/ide/src/completion')
-rw-r--r--crates/ide/src/completion/completion_context.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/crates/ide/src/completion/completion_context.rs b/crates/ide/src/completion/completion_context.rs
index 4d8b3670b..cbfc77a46 100644
--- a/crates/ide/src/completion/completion_context.rs
+++ b/crates/ide/src/completion/completion_context.rs
@@ -120,11 +120,10 @@ impl<'a> CompletionContext<'a> {
120 if !matches!(definition_source.value, ModuleSource::SourceFile(_)) { 120 if !matches!(definition_source.value, ModuleSource::SourceFile(_)) {
121 return None; 121 return None;
122 } 122 }
123 let definition_source_file = definition_source.file_id.original_file(db); 123 let module_definition_source_file = definition_source.file_id.original_file(db);
124 124 let mod_declaration_candidates =
125 // TODO kb for all possible candidates 125 db.possible_sudmobules(module_definition_source_file);
126 let zz = db.list_some_random_files_todo(definition_source_file); 126 dbg!(mod_declaration_candidates);
127 dbg!(zz);
128 // TODO kb exlude existing children from the candidates 127 // TODO kb exlude existing children from the candidates
129 let existing_children = current_module.children(db).collect::<Vec<_>>(); 128 let existing_children = current_module.children(db).collect::<Vec<_>>();
130 dbg!(existing_children); 129 dbg!(existing_children);