Bug 16942 - Undo "rename class" doesn't undo the renaming of the file
Summary: Undo "rename class" doesn't undo the renaming of the file
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Linux
: Normal enhancement
Target Milestone: master
Assignee: Mike Krüger
Depends on:
Reported: 2013-12-23 06:09 UTC by Andres G. Aragoneses
Modified: 2014-06-17 03:44 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Andres G. Aragoneses 2013-12-23 06:09:51 UTC
Steps to reproduce:

1. Rename class Foo to Bar (it will rename Foo.cs to Bar.cs as well).
2. Do CTRL+Z (Undo).

Current results:
Bar class is renamed back to Foo, but it remains in Bar.cs.

Expected results:
Bar class is renamed back to Foo, and file is renamed back from Foo.cs to Bar.cs.
Comment 1 Mike Krüger 2014-01-02 04:08:35 UTC
Atm we don't have the undo for such operations.

(Doesn't apply to solution wide refactorings alone - search & replace in project has the same problem)
Comment 2 Mike Krüger 2014-01-31 01:37:50 UTC
We've spoken internally about such feature - atm we decided against a complex undo - version control is the 'feature' to undo complex operations.
Comment 3 Akhilesh kumar 2014-02-10 10:11:15 UTC
As per comment 2, this issue WONTFIX.

Hence closing this issue, marking it as verified.
Comment 4 Andres G. Aragoneses 2014-06-17 03:44:50 UTC
Bug 20604 is a duplicate of this.