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 403 forks source link

Semantic highlighting not updated on certain edits #4911

Closed rchl closed 1 month ago

rchl commented 1 month ago

Vue - Official extension or vue-tsc version

v2.1.6

VSCode version

1.94.0

Vue version

3

TypeScript version

5.4.5

System Info

No response

package.json dependencies

No response

Steps to reproduce

  1. Create vue document:
<template>
  <div>
    {{ 'xx' }}
    <transition v-if="true" />
  </div>
</template>
  1. Start adding more letters within the {{ 'xx' }} string

What is expected?

The semantic highlighting of the transition component is updated correctly.

What is actually happening?

The semantic highlighting of the transition component shifts while typing and doesn't update by itself. A change somewhere else in the document is needed to update it.

https://github.com/user-attachments/assets/ac19910b-ebf7-4d5c-830d-66ef1d479560

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-5g13xk?file=index.html,src%2FApp.vue&terminal=dev

Any additional comments?

rchl commented 1 month ago

Thanks for fixing!

Btw, i think it would make sense to keep this open until upstream package is updated here.