Skip to content

fix(vscode): avoid infinite diagnostics on Vue files when project diagnostics is enabled#6051

Merged
KazariEX merged 3 commits into
vuejs:masterfrom
KazariEX:fix/issue-4519
May 17, 2026
Merged

fix(vscode): avoid infinite diagnostics on Vue files when project diagnostics is enabled#6051
KazariEX merged 3 commits into
vuejs:masterfrom
KazariEX:fix/issue-4519

Conversation

@KazariEX

@KazariEX KazariEX commented May 17, 2026

Copy link
Copy Markdown
Member

fix #4519

  1. js/ts.tsserver.experimental.enableProjectDiagnostics is enabled
  2. TS client sends geterrForProject request
  3. TS client received diagnostics of all Vue files in the project
  4. TS client tries to get language of the corresponding URI
  5. TS client tries to handle URI first, but failed since standardFileExtensions derived from plugin entry is empty
  6. TS client runs openTextDocument with this URI
  7. TS client requests diagnostics again!

@KazariEX KazariEX merged commit 0614a53 into vuejs:master May 17, 2026
4 checks passed
@KazariEX KazariEX deleted the fix/issue-4519 branch May 17, 2026 14:44
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.

Problems count goes bananas (up and down ad infinitum)

1 participant