diff options
Diffstat (limited to 'crates/ide/src/completion')
-rw-r--r-- | crates/ide/src/completion/completion_context.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crates/ide/src/completion/completion_context.rs b/crates/ide/src/completion/completion_context.rs index b4c6eeb35..74cd16e0a 100644 --- a/crates/ide/src/completion/completion_context.rs +++ b/crates/ide/src/completion/completion_context.rs | |||
@@ -117,9 +117,6 @@ impl<'a> CompletionContext<'a> { | |||
117 | .to_module_def(position.file_id) | 117 | .to_module_def(position.file_id) |
118 | .and_then(|current_module| { | 118 | .and_then(|current_module| { |
119 | let definition_source = current_module.definition_source(db); | 119 | let definition_source = current_module.definition_source(db); |
120 | if !matches!(definition_source.value, ModuleSource::SourceFile(_)) { | ||
121 | return None; | ||
122 | } | ||
123 | let module_definition_source_file = definition_source.file_id.original_file(db); | 120 | let module_definition_source_file = definition_source.file_id.original_file(db); |
124 | let mod_declaration_candidates = | 121 | let mod_declaration_candidates = |
125 | db.possible_sudmobule_names(module_definition_source_file); | 122 | db.possible_sudmobule_names(module_definition_source_file); |