Skip to content

perf(language-core): rewrite a subset of template node transforms - #5769

Merged
KazariEX merged 17 commits into
vuejs:masterfrom
KazariEX:refactor/transforms
May 11, 2026
Merged

KazariEX merged 17 commits into
vuejs:masterfrom
KazariEX:refactor/transforms

Conversation

@KazariEX

@KazariEX KazariEX commented Nov 23, 2025 •

Copy link
Copy Markdown
Member

fix #4539, fix #5492, fix #5899, fix vuejs/core#12258, close #5765

This change simplifies the transforms of the template AST, in particular by removing all codegenNode that existed only for runtime codegen purpose. This also results in an AST shape that is more favorable for language tools integration.

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2025 •

Copy link
Copy Markdown

Open in StackBlitz

vue-component-meta

npm i https://pkg.pr.new/vuejs/language-tools/vue-component-meta@5769

vue-component-type-helpers

npm i https://pkg.pr.new/vuejs/language-tools/vue-component-type-helpers@5769

@vue/language-core

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-core@5769

@vue/language-plugin-pug

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-plugin-pug@5769

@vue/language-server

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-server@5769

@vue/language-service

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-service@5769

vue-tsc

npm i https://pkg.pr.new/vuejs/language-tools/vue-tsc@5769

@vue/typescript-plugin

npm i https://pkg.pr.new/vuejs/language-tools/@vue/typescript-plugin@5769

commit: 2c69879

@KazariEX
KazariEX force-pushed the refactor/transforms branch from 2df73c5 to ec9da65 Compare November 27, 2025 17:59
@KazariEX
KazariEX marked this pull request as ready for review November 27, 2025 18:01
@KazariEX KazariEX changed the title refactor(language-core): rewrite a subset of template node transforms perf(language-core): rewrite a subset of template node transforms Dec 2, 2025
@johnsoncodehk
johnsoncodehk force-pushed the master branch 4 times, most recently from 32357f7 to 63ed6d3 Compare December 11, 2025 17:19
@johnsoncodehk
johnsoncodehk force-pushed the master branch 6 times, most recently from 8c3584c to f36bc6c Compare December 20, 2025 09:31
@johnsoncodehk
johnsoncodehk force-pushed the master branch 5 times, most recently from ee9f2e4 to ab594f1 Compare December 21, 2025 16:35
@KazariEX
KazariEX merged commit 680aae5 into vuejs:master May 11, 2026
4 checks passed
@KazariEX
KazariEX deleted the refactor/transforms branch May 11, 2026 10:55
phbaer pushed a commit to phbaer/mosa that referenced this pull request Jul 13, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [vue-tsc](https://github.com/vuejs/language-tools) ([source](https://github.com/vuejs/language-tools/tree/HEAD/packages/tsc)) | devDependencies | minor | [`3.2.7` → `3.3.7`](https://renovatebot.com/diffs/npm/vue-tsc/3.2.7/3.3.7) |

---

### Release Notes

<details>
<summary>vuejs/language-tools (vue-tsc)</summary>

### [`v3.3.7`](https://github.com/vuejs/language-tools/blob/HEAD/CHANGELOG.md#337-2026-07-08)

[Compare Source](vuejs/language-tools@v3.3.6...v3.3.7)

##### language-core

- **fix:** wrap single expression event handlers to avoid ASI after `return` ([#&#8203;6115](vuejs/language-tools#6115)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### typescript-plugin

- **fix:** filter const globals from template completions

### [`v3.3.6`](https://github.com/vuejs/language-tools/blob/HEAD/CHANGELOG.md#336-2026-06-30)

[Compare Source](vuejs/language-tools@v3.3.5...v3.3.6)

##### language-core

- **fix:** make generic component internal context inference type-safe across `.d.ts` boundary ([#&#8203;6104](vuejs/language-tools#6104)) - Thanks to [@&#8203;Holiden](https://github.com/Holiden)!
- **fix:** do not treat non-trivial property accesses as compound - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** treat semicolon-terminated expressions as compound - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** preserve return types for compound event handlers - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** use `WeakMap` to cache inline TS ASTs - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** match upstream CSS `v-bind` parsing behavior - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** include setup bindings as potential component names ([#&#8203;6111](vuejs/language-tools#6111)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **perf:** reduce boundary code feature allocations - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **refactor:** centralize code features and deprecate `allCodeFeatures` - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

### [`v3.3.5`](https://github.com/vuejs/language-tools/blob/HEAD/CHANGELOG.md#335-2026-06-13)

[Compare Source](vuejs/language-tools@v3.3.4...v3.3.5)

##### language-core

- **fix:** include event modifiers in duplicate listener checks ([#&#8203;6097](vuejs/language-tools#6097)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

### [`v3.3.4`](https://github.com/vuejs/language-tools/blob/HEAD/CHANGELOG.md#334-2026-06-08)

[Compare Source](vuejs/language-tools@v3.3.3...v3.3.4)

##### language-core

- **fix:** only exclude already-set props from inherited attrs when `checkRequiredFallthroughAttributes` is enabled ([#&#8203;6088](vuejs/language-tools#6088)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** camelize slot props regardless of `htmlAttributes` option ([#&#8203;6089](vuejs/language-tools#6089)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** detect duplicate event listeners across name formats ([#&#8203;6094](vuejs/language-tools#6094)) - Thanks to [@&#8203;whysopaul](https://github.com/whysopaul)!

##### language-service

- **fix:** respect var hoisting for destructured props hints ([#&#8203;6092](vuejs/language-tools#6092)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### typescript-plugin

- **fix:** do not treat `class` and `style` as a boolean property ([#&#8203;6081](vuejs/language-tools#6081)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

### [`v3.3.3`](https://github.com/vuejs/language-tools/blob/HEAD/CHANGELOG.md#333-2026-05-30)

[Compare Source](vuejs/language-tools@v3.3.2...v3.3.3)

##### vscode

- **fix:** prevent grammar scopes leakage in capitalized tags ([#&#8203;6073](vuejs/language-tools#6073)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** preserve TS auto imports behavior in Vue files ([#&#8203;6072](vuejs/language-tools#6072)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### workspace

- **fix:** read PR title from env in `auto-version` workflow to prevent injection ([#&#8203;6074](vuejs/language-tools#6074)) - Thanks to [@&#8203;arpitjain099](https://github.com/arpitjain099)!

### [`v3.3.2`](https://github.com/vuejs/language-tools/blob/HEAD/CHANGELOG.md#332-2026-05-25)

[Compare Source](vuejs/language-tools@v3.3.1...v3.3.2)

##### language-core

- **feat:** preserve literal types for inline `v-for` sources ([#&#8203;6067](vuejs/language-tools#6067)) - Thanks to [@&#8203;kkesidis](https://github.com/kkesidis)!
- **fix:** align `v-bind` shorthand identifier skipping with interpolation - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### vscode

- **feat:** transform tsserver content ([#&#8203;6062](vuejs/language-tools#6062)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** do not mark trailing slash in capitalized self-closing tags as invalid ([#&#8203;6065](vuejs/language-tools#6065)) - Thanks to [@&#8203;suisanka](https://github.com/suisanka)!

### [`v3.3.1`](https://github.com/vuejs/language-tools/blob/HEAD/CHANGELOG.md#331-2026-05-19)

[Compare Source](vuejs/language-tools@v3.3.0...v3.3.1)

##### language-core

- **fix:** avoid extraneous children error for conditional slots ([#&#8203;6056](vuejs/language-tools#6056)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### language-service

- **refactor:** replace scanner-based missing props hints detection with AST traversal - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### typescript-plugin

- **fix:** get component prop details from symbols - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** skip unchecked JS identifiers in component props ([#&#8203;6055](vuejs/language-tools#6055)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### vscode

- **fix:** resolve typescript plugin path from resolved server path ([#&#8203;6058](vuejs/language-tools#6058)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

### [`v3.3.0`](https://github.com/vuejs/language-tools/blob/HEAD/CHANGELOG.md#330-2026-05-18)

[Compare Source](vuejs/language-tools@v3.2.9...v3.3.0)

##### language-core

- **feat:** check required fallthrough attributes ([#&#8203;6049](vuejs/language-tools#6049)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** penetrate `v-if` branch fragments when collecting single root nodes - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **refactor:** rename `Sfc` APIs to `IR` - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### language-service

- **fix:** reuse ASTs for define assignment suggestions - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** re-support `html.customData` ([#&#8203;5910](vuejs/language-tools#5910)) - Thanks to [@&#8203;Bomberus](https://github.com/Bomberus)!
- **fix:** strip `=""` only for plain boolean props completion edits - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** reset to default data provider after running with vue data provider - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### typescript-plugin

- **feat:** refine props completion logic to follow TS behavior ([#&#8203;5709](vuejs/language-tools#5709)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### vscode

- **fix:** include `extraFileExtensions` in tsserver `configure` request payload ([#&#8203;6048](vuejs/language-tools#6048)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** write typescript plugins at build time ([#&#8203;6050](vuejs/language-tools#6050)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** avoid infinite diagnostics on Vue files when project diagnostics is enabled ([#&#8203;6051](vuejs/language-tools#6051)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

### [`v3.2.9`](https://github.com/vuejs/language-tools/blob/HEAD/CHANGELOG.md#329-2026-05-14)

[Compare Source](vuejs/language-tools@v3.2.8...v3.2.9)

##### language-core

- **fix:** do not process inline markdown syntax in semantic-aware segments ([#&#8203;6038](vuejs/language-tools#6038)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **perf:** rewrite a subset of template node transforms ([#&#8203;5769](vuejs/language-tools#5769)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### vscode

- **fix:** trigger file rename edits when moving folders with Vue files ([#&#8203;6046](vuejs/language-tools#6046)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### workspace

- **chore:** bump volar services to 0.0.71 ([#&#8203;6043](vuejs/language-tools#6043)) - Thanks to [@&#8203;TRIS-H](https://github.com/TRIS-H)!

### [`v3.2.8`](https://github.com/vuejs/language-tools/blob/HEAD/CHANGELOG.md#328-2026-05-04)

[Compare Source](vuejs/language-tools@v3.2.7...v3.2.8)

##### language-core

- **fix:** replace inline code blocks after sfc blocks processing ([#&#8203;6024](vuejs/language-tools#6024)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!
- **fix:** support navigation for kebab-case declarations in `GlobalComponents` ([#&#8203;6026](vuejs/language-tools#6026)) - Thanks to [@&#8203;Gehbt](https://github.com/Gehbt)!

##### language-service

- **feat:** support TS module resolution for SCSS `@import` navigation ([#&#8203;6033](vuejs/language-tools#6033)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### typescript-plugin

- **fix:** replace language service per-method overrides with a proxy ([#&#8203;6035](vuejs/language-tools#6035)) - Thanks to [@&#8203;KazariEX](https://github.com/KazariEX)!

##### vscode

- **chore:** upgrade `reactive-vscode` to v1.0.1 ([#&#8203;6019](vuejs/language-tools#6019)) - Thanks to [@&#8203;kermanx](https://github.com/kermanx)!

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMzIuMSIsInVwZGF0ZWRJblZlciI6IjQzLjIwNC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.baer.one/phbaer/dtvp/pulls/144
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants