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

Changing vue files causes internal state to desync in Sublime Text #4909

Closed rchl closed 1 month ago

rchl commented 1 month ago

Vue - Official extension or vue-tsc version

2.1.6

VSCode version

-

Vue version

2.7.16

TypeScript version

5.4.5

System Info

No response

package.json dependencies

No response

Steps to reproduce

Editing vue file randomly makes internal state go wrong and break some features like for example "Extend selection".

What is expected?

Features works as expected no matter how much documented is edited.

What is actually happening?

After certain edits (here I'm executing a macro to create specific edits), the "expand selection" command starts selecting random things.

https://github.com/user-attachments/assets/39aaf8ab-fdac-4d15-8597-4327e32b0dff

Link to minimal reproduction

No response

Any additional comments?

I can't provide a reproduction since it depends on LSP-volar version that I'm working on and also reproduction is not very reliable and timing dependant unless using a macro to execute an edit.

I have actually found the issue in Volar and I will be creating a PR with tests that reproduce the issue.