Repository navigation
fix(core): share generic-arrow and typed-default editor fixes - #89
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
leonidaz
marked this pull request as ready for review
September 7, 2026 02:48
Merged
8 of 9 tasks
This was referenced Sep 25, 2026
This branch was successfully deployed
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
Move the two shared editor fixes currently carried in Octane’s
@tsrx/corepatch into their owning core package. Both failures reproduce through the React, Preact, Solid, and Vue tooling entry points on current main.<Value extends { id: string }>and<Value = string>no longer report a false trailing-comma diagnostic. A bare<Value>still receives the existing diagnostic, and<Value,>remains accepted.items = EMPTY_ARRAY as string[], retain the full diagnostic mapping. This fixesNo source map entryfailures, including multiline defaults.The mapping change only adds boundary locations to the tooling printer. Add an
@tsrx/corepatch changeset and reusable regression coverage in the existing shared source-mapping harness, which runs against all four target compilers. Octane can drop its local patch after consuming the resulting release; its compiler integration checks can remain downstream.Validation
pnpm test: 92 files passed; 4,021 tests passed, 33 skipped.pnpm typecheckpnpm changeset:check,pnpm rules:check, andgit diff --check.Provenance
agent-authored)Note
Low Risk
Targeted parser and source-map printer tweaks with regression tests; no auth, data, or runtime behavior changes beyond editor diagnostics.
Overview
Fixes two shared
@tsrx/coreeditor diagnostics that affect React, Preact, Solid, Vue, and other consumers of the Volar mapping pipeline.Generic arrow functions:
reportReservedArrowTypeParamnow only suggests a trailing comma when a single type parameter is ambiguous (noextendsconstraint, no default, no trailing comma). Forms like<Value extends { id: string }>,<Value = string>, and<Value,>compile without a false trailing-comma error; bare<Value>still gets the existing diagnostic.Typed destructuring defaults: The JSX tooling printer wraps
AssignmentPatternnodes with location markers (alongside exports and property signatures), so defaults such asitems = EMPTY_ARRAY as string[]keep a single diagnostic span through the type assertion instead of losing mapping or crashing with “No source map entry”.Adds an
@tsrx/corepatch changeset and shared harness tests insource-mappings.jsthat run across all target compilers.Reviewed by Cursor Bugbot for commit ba61e65. Bugbot is set up for automated code reviews on this repo. Configure here.