This a BUG REPORT
How to reproduce it:
:wq (or just close and save file)uWhat happened:
Content of document B will be replaced on content of A
What did you expect to happen:
Nothing
Environment:
This is a longstanding bug (see https://github.com/VSCodeVim/Vim/issues/2007). Thank you SO MUCH for figuring out a way to reproduce it. As you can see, a lot of people tried without success.
For the record, I needed to really open the documents, i.e. either Ctrl+S or double-click the header. Temporarily opening A did not trigger the bug, a.k.a
:wqu@doudou You are right. Thanks :+1:
Awesome! Thanks for the repro. I did some digging a week ago, and I'm pretty sure the commit that caused this issue was https://github.com/VSCodeVim/Vim/issues/1503.
Having a repro so I can make sure both cases still work is great! Hopefully I'll be able to nail down this issue once and for all soon.
oh nice! I ended up just using visual studio undo and redo commands overriding vscode undos because of this random problem. also vscodevim would also "lowerify" all my text so that was awesome -_-
This particular issue is fixed in https://github.com/VSCodeVim/Vim/pull/2547
Most helpful comment
This is a longstanding bug (see https://github.com/VSCodeVim/Vim/issues/2007). Thank you SO MUCH for figuring out a way to reproduce it. As you can see, a lot of people tried without success.
For the record, I needed to really open the documents, i.e. either Ctrl+S or double-click the header. Temporarily opening A did not trigger the bug, a.k.a
:wqu