Skip to content

perf(typescript-plugin): redo single-file language service for Reactivity Visualization - #5652

Merged
johnsoncodehk merged 2 commits into
masterfrom
single-file-ls
Sep 22, 2025
Merged

johnsoncodehk merged 2 commits into
masterfrom
single-file-ls

Conversation

@johnsoncodehk

Copy link
Copy Markdown
Member

Resolves #5650, partially reverts https://github.com/vuejs/language-tools/pull/5632/files#diff-7918fad7f00b0ebdd36f0242099e9d5a41469117455ca22f8f79333175ab7ffc.

The getDefinitionAtPosition and findReferences functions required by Reactivity Visualization only need to be evaluated for the current file. Maintaining a single-file TypeScript Language Service instance instead of reusing tsserver's Language Service will avoid cross-file semantic analysis, thereby significantly improving performance in large projects.

@pkg-pr-new

pkg-pr-new Bot commented Sep 22, 2025 •

Copy link
Copy Markdown

Open in StackBlitz

vue-component-meta

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

vue-component-type-helpers

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

@vue/language-core

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

@vue/language-plugin-pug

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

@vue/language-server

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

@vue/language-service

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

vue-tsc

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

@vue/typescript-plugin

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

commit: 83773bc

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.

2 participants