language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

fix(vscode): syntax highlighting error if type declaration at the end of script block

Open zhiyuanzmj opened this issue 10 months ago • 1 comments

closed #2060

Before: image

After: image

zhiyuanzmj avatar Mar 06 '25 01:03 zhiyuanzmj

Open in StackBlitz

vue-component-meta

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

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

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

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

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

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

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

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

commit: 343437b

pkg-pr-new[bot] avatar Mar 06 '25 01:03 pkg-pr-new[bot]

Thanks for the PR, but this is an upstream issue: https://github.com/microsoft/TypeScript-TmLanguage/issues/873

We cannot add this patch fix on our side because we cannot maintain of it's complexity. Most importantly, since this introduces inconsistencies in TS syntax highlights, we cannot verify whether it will cause other regressions.

johnsoncodehk avatar May 18 '25 03:05 johnsoncodehk