aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-09-04 13:13:31 +0100
committerKirill Bulatov <[email protected]>2020-09-09 23:42:20 +0100
commit486c5c3285682408b125613475a34a0bc9a2c097 (patch)
tree8928b836c589c783ad1f426218a134292926cffe /crates/ide
parent897a4c702e3d6fa9156ea0bc34af9d397fae3440 (diff)
Exclude special files
Diffstat (limited to 'crates/ide')
-rw-r--r--crates/ide/src/completion/completion_context.rs3
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);