Bug 383 - Code indention broken in files with more than one namespace
Summary: Code indention broken in files with more than one namespace
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 2.6 RC 1
Hardware: PC Linux
: --- major
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-08-24 14:45 UTC by Nikita Tsukanov
Modified: 2011-08-29 10:26 UTC (History)
1 user (show)

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


Attachments
Config files and a video that illustrates the bug (438.64 KB, application/x-gzip)
2011-08-24 14:45 UTC, Nikita Tsukanov
Details


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:
Status:
RESOLVED FIXED

Description Nikita Tsukanov 2011-08-24 14:45:45 UTC
Created attachment 180 [details]
Config files and a video that illustrates the bug

If there are two namespaces in a code file and the forced code formatting is enabled it will indent some lines wrong. But it fixes it when saves the document. You can see it in the attached video. 

My ~/.config/MonoMevelop-2.6 is also attached.

Here is the test case from the video:

using System;

namespace Test1
{
	class Foo
	{
		
	}
}
namespace Test2
{
	class Foo
	{
	
		public void Bar ()
		{
			uint x = 1;
			uint y = 2;
			
			uint z = 2;
			

		}
	}
	
}
Comment 1 Mike Krüger 2011-08-29 10:26:14 UTC
fixed in newer builds.