fix(vscode): stop the oxc language server from crashing on startup#2245
Open
jong-kyung wants to merge 1 commit into
Open
fix(vscode): stop the oxc language server from crashing on startup#2245jong-kyung wants to merge 1 commit into
jong-kyung wants to merge 1 commit into
Conversation
✅ Deploy Preview for viteplus-preview canceled.
|
jong-kyung
force-pushed
the
fix/vscode-oxc-lsp-crash
branch
from
July 25, 2026 13:27
e6545f6 to
d45fd6e
Compare
Nested config search evaluates every vite.config.ts in the workspace inside the language server's own Node process. That includes the PTY snapshot fixtures, one of which deliberately crashes Node from an uncaughtException handler, so the server died on startup and VS Code stopped restarting it after five attempts. The root config's lint.ignorePatterns does not apply here — it filters lint targets, not config discovery — so pin the root config and disable nested search.
jong-kyung
force-pushed
the
fix/vscode-oxc-lsp-crash
branch
from
July 25, 2026 13:27
d45fd6e to
3d60243
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The oxc language server crashes on startup in this repo, so there is no linting or formatting for the session.
Nested config search is on by default, so the server evaluates every
vite.config.tsin the workspace inside its own Node process — including the PTY snapshot fixtures, one of which crashes Node on purpose (fixtures/migration_config_process_crash_isolated).Pin the root config and disable nested search in
.vscode/settings.json, mirroring thevitest.configSearchPatternExcludeentry already there for the same fixtures.