Bug 6994 - Issue with type rename when there are multiple types a .cs file
Summary: Issue with type rename when there are multiple types a .cs file
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 3.0.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-09-07 12:42 UTC by t9mike
Modified: 2012-10-25 00:49 UTC (History)
1 user (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 t9mike 2012-09-07 12:42:42 UTC
I occasionally have a single .cs file with multiple types. For example, a number of enums. If I rename a type in this file, the file is renamed.


      enum FooBar
      enum HelloWorld

   Rename HelloWorld -> HiThere
   Misc-Types.cs gets renamed HiThere.cs

I think the file should not be renamed if it does not first match the original type name.
Comment 1 Jeffrey Stedfast 2012-10-24 18:30:02 UTC
Yes, I absolutely agree.
Comment 2 Mike Krüger 2012-10-25 00:49:24 UTC
We've a checkbox in the rename dialog for turning off the file rename.