Skip to content

fix(vscode): stop the oxc language server from crashing on startup#2245

Open
jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:fix/vscode-oxc-lsp-crash
Open

fix(vscode): stop the oxc language server from crashing on startup#2245
jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:fix/vscode-oxc-lsp-crash

Conversation

@jong-kyung

Copy link
Copy Markdown
Collaborator

Summary

The oxc language server crashes on startup in this repo, so there is no linting or formatting for the session.

Screenshot 2026-07-25 at 9 08 04 PM

Nested config search is on by default, so the server evaluates every vite.config.ts in 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 the vitest.configSearchPatternExclude entry already there for the same fixtures.

@netlify

netlify Bot commented Jul 25, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 3d60243
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a64b9ba65f09c000835943a

@jong-kyung jong-kyung self-assigned this Jul 25, 2026
@jong-kyung
jong-kyung force-pushed the fix/vscode-oxc-lsp-crash branch from e6545f6 to d45fd6e Compare July 25, 2026 13:27
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
jong-kyung force-pushed the fix/vscode-oxc-lsp-crash branch from d45fd6e to 3d60243 Compare July 25, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant