aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/completion/completion_context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/completion/completion_context.rs')
-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);