Skip to content

Commit

Permalink
fix(libs/references): fixed import auto-complete finder
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSwapFeeder committed Apr 16, 2024
1 parent ad564fe commit a75f296
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/references/src/scope_finder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ impl<'ast> Visit<'ast> for ScopeFinder {
}

fn visit_import_directive(&mut self,import: &'ast ImportDirective) {
if is_node_in_range(&import.src, &self.position, &self.source) {
self.imports.push(import.clone());
}
self.imports.push(import.clone());
visit::visit_import_directive(self, import);
}

Expand Down

0 comments on commit a75f296

Please sign in to comment.