vuejs / language-tools

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

The same variable should have the highlight #4861

Closed wlonghaha closed 3 weeks ago

wlonghaha commented 3 weeks ago

Vue - Official extension or vue-tsc version

2.1.6

VSCode version

1.93.1

Vue version

3.4.37

TypeScript version

5.7.20-dev

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor
    Memory: 18.31 GB / 23.93 GB
  Binaries:
    Node: 22.8.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.10.0 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (128.0.2739.79)

package.json dependencies

"dependencies": {
    "vue": "^3.4.37"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^5.1.2",
    "typescript": "^5.5.3",
    "vite": "^5.4.1",
    "vue-tsc": "^2.0.29"
  }

Steps to reproduce

1、新建vue项目: pnpm create vite --template vue-ts my-project 2、切换到HelloWorld.vue文件,光标停留在count变量上,所有count变量没有高亮 QQ20240920-201025 3、在main.ts进行测试,高亮显示 QQ20240920-201025

What is expected?

同一个变量应该具有高亮

What is actually happening?

同一个变量应该没有高亮

Link to minimal reproduction

No response

Any additional comments?

thank's your job!❤

KazariEX commented 3 weeks ago

Duplicate of #4850