question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Undo replaces file content

See original GitHub issue

This a BUG REPORT

How to reproduce it:

  1. Open document A
  2. Open document B
  3. Type :wq (or just close and save file)
  4. Open B again
  5. You can do some changes or do not (most annoying if you do)
  6. Press u

What happened: Content of document B will be replaced on content of A

What did you expect to happen: Nothing

Environment:

  • Extension (VsCodeVim) version: 0.11.4
  • VSCode version: 1.22.2
  • OS version: Arch Linux

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
doudoucommented, Apr 18, 2018

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

  1. Open document A
  2. CTRL+S
  3. Open document B
  4. modify B
  5. :wq
  6. Open B again
  7. Press u
0reactions
Chilleecommented, Apr 23, 2018

This particular issue is fixed in https://github.com/VSCodeVim/Vim/pull/2547

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Recover Overwritten Word Document & Excel File?
How do I undo an overwritten file? · Navigate to the folder that contained the file. · In the Home tab, click History....
Read more >
【Fixed 2023】5 Ways to Recover Overwritten Files from ...
Method 1: How to Undo an Overwritten File Replaced from the Previous Versions? Method 2: Recover Overwritten Files on Windows 10 By Previous...
Read more >
undo an accidental file replace - Microsoft Community
i accidentally replaced a powerpoint file. i need to do the replace and get my old file back. how do i do this?...
Read more >
How to Recover Overwritten Files - 12 Possible Methods (2022)
To revert a “protected” file to a previous state, right-click on it and choose properties. From there, move to the “Previous versions” tab...
Read more >
How to Recover Overwritten Files in Windows 10/8/7 Easily
1. Right-click the file and choose "Properties". · 2. Open the "Previous Version" tab. · 3. Select the latest version and click "Restore"...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found