Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1814: Undo history getting deleted when file changes #1820

Merged
merged 1 commit into from
Jun 10, 2017

Conversation

Chillee
Copy link
Member

@Chillee Chillee commented Jun 10, 2017

So I'm currently fixing the issue by simply getting rid of the offending code. So pretty much what happens when you remove that code is that when the file changes on disk, an undo simply reverts back the disk file change first, which I think is perfectly fine behavior.

@Chillee
Copy link
Member Author

Chillee commented Jun 10, 2017

I'm going to merge this. I tried it out and I didn't see any immediate breaking changes, while it fixes the big issue we're having right now.

@Chillee Chillee merged commit e8db0e7 into VSCodeVim:master Jun 10, 2017
@Chillee
Copy link
Member Author

Chillee commented Jun 11, 2017

Actually, people actually seem to be bugged by that behavior.

#680

I'll take another look as to how we can revert it back to the old behavior.

@tomellwood
Copy link

What's happening with this? Isn't the expected behaviour to delete the undo history after an external file change, i.e. checking out a new git branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants