vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.87k stars 400 forks source link

template add ts any type ui bug #4614

Closed ashuicoder closed 3 months ago

ashuicoder commented 3 months ago

Vue - Official extension or vue-tsc version

2.0.28

VSCode version

1.91.1

Vue version

3.4.33

TypeScript version

5.5.3

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13490F
    Memory: 12.96 GB / 31.84 GB
  Binaries:
    Node: 20.15.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.5.0 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (119.0.2151.58)
    Internet Explorer: 11.0.22621.3527

Steps to reproduce

when i add 'as any' in template, the ui color is wrong, include end tag, end “” image

What is expected?

ui fix

What is actually happening?

every time

Link to minimal reproduction

No response

Any additional comments?

No response

kortin99 commented 3 months ago

Same issue. This is not the only problem. The code lost its highlighting after the as type assertion.

image

And when I added brackets around it, the highlighting returned to normal.

image

However, the end tag still appears abnormal.

KazariEX commented 3 months ago

Duplicate of #520