-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Support file operations (create, rename, delete) in cross file undo #91383
Comments
create separate files for text and file operation
I have enabled undo for rename operations. What's still missing
|
To verify:
Note the comment above with means two undos, one for textual and for file operations, are needed. This is temporary! |
Yeah, that's expected. You need another undo inside the foo.ts files. That should delete it. The issue is that there are two operations that aren't linked together: a textual operation spanning two files, and a file create operation. Because both aren't "connected" undoing in x.ts only undos the textual operation, unding in foo.ts will undo the file operation. What puzzles me is how you got the notification about foo.ts being modified on disk? |
One thing is that I have the prettier extension installed. All of my "Format On *" options are turned off, but I noticed that if I type function foo() {} The function in the moved file is function foo() { } // <- with a space Which looks like formatting happened at some point. I will remove the verified tag and let someone else take a shot at this. |
re #91248
This is a feature request (or request for complete feature) so that things like "Java-class rename" or "TS extract to new file" refactorings can be undone safely
The text was updated successfully, but these errors were encountered: