formulahendry / vscode-auto-rename-tag

Automatically rename paired HTML/XML tag
https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag
MIT License
262 stars 36 forks source link

When you replace the tag (eg. copy the word 'div' and paste over another tag) it messes up undo history #632

Closed Leandro-Albano closed 2 months ago

Leandro-Albano commented 2 months ago

If you copy and paste over another tag the undo history gets weird, it will be able to undo to the previous state of the tag but if you try undo again it "redo" the pasting, basically erasing any history before that.

Imo this is a massive problem that I am even unsure it's happening to anyone else if there are no complains about it. If one did not commit their code before, one might lose a lot of work.

Extension Version: v0.1.10 OS: Mac OS 14.5 (M1) VSCode: 1.91

Leandro-Albano commented 2 months ago

There seems to be several issues already open about this the first one back to 2018 #55