Skip to content

Commit

Permalink
fix(language-server): fix panic by building scope tree child ids (#7440)
Browse files Browse the repository at this point in the history
closes #7434

i couldn't test this. but what's happening is semaitc is being build
without scope child ids. When exhaustive_deps tries to access it its an
empty vec - hence the panic
  • Loading branch information
camc314 authored Nov 23, 2024
1 parent d8c0931 commit c6d790b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/oxc_language_server/src/linter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ impl IsolatedLintHandler {

let semantic_ret = SemanticBuilder::new()
.with_cfg(true)
.with_scope_tree_child_ids(true)
.with_check_syntax_error(true)
.build(&ret.program);

Expand Down

0 comments on commit c6d790b

Please sign in to comment.