Skip to content

Commit

Permalink
fix: πŸ› should invalidate semantic if has semantic error (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY authored Nov 18, 2024
1 parent 045c274 commit 9dae19c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ impl Backend {
self.semantic_map.insert(params.uri.to_string(), semantic);
}
Err(err) => {
self.semantic_token_map.remove(&params.uri.to_string());
let span = err.span();
let start_position = offset_to_position(span.start, &rope);
let end_position = offset_to_position(span.end, &rope);
Expand Down

0 comments on commit 9dae19c

Please sign in to comment.