diff options
Diffstat (limited to 'crates/ide/src')
-rw-r--r-- | crates/ide/src/completion/completion_context.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ide/src/completion/completion_context.rs b/crates/ide/src/completion/completion_context.rs index 74cd16e0a..a8fe44083 100644 --- a/crates/ide/src/completion/completion_context.rs +++ b/crates/ide/src/completion/completion_context.rs | |||
@@ -1,7 +1,7 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! FIXME: write short doc here |
2 | 2 | ||
3 | use base_db::{FileLoader, SourceDatabase}; | 3 | use base_db::{FileLoader, SourceDatabase}; |
4 | use hir::{ModuleSource, Semantics, SemanticsScope, Type}; | 4 | use hir::{Semantics, SemanticsScope, Type}; |
5 | use ide_db::RootDatabase; | 5 | use ide_db::RootDatabase; |
6 | use syntax::{ | 6 | use syntax::{ |
7 | algo::{find_covering_element, find_node_at_offset}, | 7 | algo::{find_covering_element, find_node_at_offset}, |
@@ -123,11 +123,9 @@ impl<'a> CompletionContext<'a> { | |||
123 | dbg!(mod_declaration_candidates); | 123 | dbg!(mod_declaration_candidates); |
124 | // TODO kb exlude existing children from the candidates | 124 | // TODO kb exlude existing children from the candidates |
125 | let existing_children = current_module.children(db).collect::<Vec<_>>(); | 125 | let existing_children = current_module.children(db).collect::<Vec<_>>(); |
126 | dbg!(existing_children); | ||
127 | None::<Vec<String>> | 126 | None::<Vec<String>> |
128 | }) | 127 | }) |
129 | .unwrap_or_default(); | 128 | .unwrap_or_default(); |
130 | dbg!(module_names_for_import); | ||
131 | }; | 129 | }; |
132 | 130 | ||
133 | let krate = sema.to_module_def(position.file_id).map(|m| m.krate()); | 131 | let krate = sema.to_module_def(position.file_id).map(|m| m.krate()); |