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

Experimental undo/redo handling for notebook multicursor #226545

Merged
merged 4 commits into from
Aug 27, 2024

Conversation

rebornix
Copy link
Member

No description provided.

@rebornix rebornix modified the milestones: September 2024, August 2024 Aug 26, 2024
@rebornix rebornix marked this pull request as ready for review August 26, 2024 23:46
Comment on lines +308 to +310
value.reverse().forEach(async element => {
await element.undo();
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are async, but do they need to happen in series to get executed correctly? Atm this runs all of them in parallel

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@connor4312 they don't need to since they are separate models. Though I would later make them a "transaction" to avoid issues with multiple undo/redo requests.

@rebornix rebornix enabled auto-merge August 27, 2024 00:03
@rebornix rebornix merged commit 422b8e9 into main Aug 27, 2024
6 checks passed
@rebornix rebornix deleted the rebornix/coherent-orangutan branch August 27, 2024 00:11
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants