Skip to content

Commit

Permalink
Fix for last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2a-42 committed Jan 3, 2025
1 parent 8572875 commit 3aab912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ide/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ pub fn completion(cst: &Cst, pos: usize, sema: &SemanticData) -> Option<Completi
add_top_level_items(cst, file, sema, &mut items);
}
}
Node::Rule(Rule::File, _) => {
Node::Rule(Rule::File | Rule::Error, _) => {
add_top_level_items(cst, file, sema, &mut items);
}
_ => {}
Expand Down

0 comments on commit 3aab912

Please sign in to comment.