Repository navigation
fix(language-core): avoid type guards missing from tsc bundle in template binding analysis - #6214
Merged
KazariEX merged 1 commit intoSep 27, 2026
Conversation
…late binding analysis
KazariEX
approved these changes
Sep 27, 2026
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.
Since #6181 and #6184,
vue-tscwith a regulartypescriptpackage (5.4 to 6.0) stops checking every.vuefile whose template has an interpolation. It logsReferenceError: isDeleteExpression is not definedand reports no diagnostics for those files, so a project without other errors exits with code 0. That is the default create-vue setup (vue-tsc --buildwithtypescript ~6.0.0). v3.3.11 is not affected.vue-tsc resolves
ts.*against TypeScript's tsc bundle, which drops type guards the compiler itself never calls:isDeleteExpression,isWhileStatement,isDoStatement,isBreakStatement,isContinueStatement, and on TypeScript 5.4 alsoisAsExpressionandisTypeAssertionExpression. Thetypescript-native-bridgeused in this repo still ships them, which is why the tests pass. This PR replaces those calls with localnode.kind === ts.SyntaxKind.Xchecks, so behaviour stays the same.Repro, with
[email protected]:vue-tsc --noEmitreports TS2339 on v3.3.11. On master it only logs theReferenceErrorand exits 0.