vuejs / language-tools

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

Duplicate code hints #4718

Closed Simon-He95 closed 1 month ago

Simon-He95 commented 1 month ago

Vue - Official extension or vue-tsc version

v2.0.28

VSCode version

1.92.2

Vue version

..

TypeScript version

..

System Info

No response

Steps to reproduce

录屏2024-08-25 11 52 00

after I disable language-tools will get expected hints

What is expected?

no Duplicate code hints

What is actually happening?

Duplicate code hints

Link to minimal reproduction

No response

Any additional comments?

No response

exzolink commented 1 month ago

Same issue, v2.0.29, windows

zhiyuanzmj commented 1 month ago

Can you provide a mini reproduction.

zhiyuanzmj commented 1 month ago

Make sure the vscode configuration option vue.server.includeLanguages don't includes typescript.

// settings.json
"vue.server.includeLanguages": [
    "vue",
    "html",
    "htmx",
    // "typescript",
    // "typescriptreact"
  ],
exzolink commented 1 month ago

Can you provide a mini reproduction.

Hmm, can't reproduce after latest updates

Simon-He95 commented 1 month ago
vue.server.includeLanguages

it works for me, thx