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

Auto Indent on Paste results in an extra undo stop #29652

Closed
ramya-rao-a opened this issue Jun 27, 2017 · 1 comment
Closed

Auto Indent on Paste results in an extra undo stop #29652

ramya-rao-a opened this issue Jun 27, 2017 · 1 comment
Labels
editor-autoindent Editor auto indentation issues

Comments

@ramya-rao-a
Copy link
Contributor

Testing #29494

Below, after pasting, I had to do a double Undo to undo the paste

indentonpaste

@vscodebot vscodebot bot added the editor label Jun 27, 2017
@ramya-rao-a ramya-rao-a added the editor-autoindent Editor auto indentation issues label Jun 27, 2017
@rebornix
Copy link
Member

rebornix commented Jun 28, 2017

Thanks! This shares the same reason as #13945 (comment) . Clipboard operations are synchronous and we only listen to the paste event and format/reindent when that happens, no chance for us to remove the undo stop generated by pasting event.

@rebornix rebornix removed their assignment Jun 28, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-autoindent Editor auto indentation issues
Projects
None yet
Development

No branches or pull requests

2 participants