Repository navigation
Conversation
Return formatter command errors to the Run Format dialog when requested. Keep the diagnostic beside the history if the user dismisses the dialog, and keep a late result associated with its original run. Preserve the existing RPC rejection for default callers and for history storage failures after Oxfmt has finished.
@vitejs/devtools
@vitejs/devtools-kit
@vitejs/devtools-oxc
@vitejs/devtools-rolldown
@vitejs/devtools-vite
@vitejs/devtools-vite-task
@vitejs/devtools-vitest
commit: |
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
When Oxfmt finds a syntax error during Run Format, the Oxc error screen replaces the entire panel. Even after fixing the source file, the user must reload the panel to see previous results or run the formatter again.
The Run Format dialog now asks the RPC to return formatter errors so it can show the diagnostic and keep the Format page usable. If the user dismisses the dialog before the run fails, the diagnostic appears above the format history.
Evidence
export const unfinished = ;removed the Oxc navigation and the Run Format button.After: With the same file, Check and Write both showed
Unexpected tokenatsrc/unfinished.js:1:27. Previous results stayed accessible. After correcting the file, Check passed without a reload.Merge Danger
Door: Two-way. Reverting this change requires no history migration.
Blast Radius: Oxc. Only the Run Format dialog requests command errors as results. Treating a disconnect or a history save failure as a formatter error could mislead the user about the connection or the file on disk. In Chromium, stopping Vite showed the connection screen. When Oxfmt changed a file and saving its history entry failed, Oxc showed the storage error.