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

Fix race condition with switching active text editor. #705

Merged
merged 2 commits into from
Sep 4, 2016

Conversation

johnfn
Copy link
Member

@johnfn johnfn commented Sep 4, 2016

When you ctrl-w h into another editor, the undo history states of the two editors would become intertwined. It could also cause VSCodeVim to crash if they were big enough, because it'd attempt to diff them against each other and take a really long time.

@johnfn
Copy link
Member Author

johnfn commented Sep 4, 2016

(Ping @xconverge just in case you're curious. It's important that we use the TaskQueue as a global locking mechanism to ensure that two updates don't run simultaneously and cause weird issues. I should have noticed this when you submitted your PR, though; it's a bit of a subtle issue!)

@johnfn johnfn merged commit 7cef0f8 into master Sep 4, 2016
@jpoon jpoon deleted the fix-editor-race-condition branch September 4, 2016 19:53
This pull request was closed.
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.

1 participant