Bug 2378 - [newresolver] Resolve action inserts namespace in the wrong place
Summary: [newresolver] Resolve action inserts namespace in the wrong place
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2011-12-06 19:49 UTC by Bojan Rajkovic [MSFT]
Modified: 2011-12-11 04:06 UTC (History)
1 user (show)

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

Sample project (2.56 KB, application/zip)
2011-12-06 19:49 UTC, Bojan Rajkovic [MSFT]

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 Bojan Rajkovic [MSFT] 2011-12-06 19:49:12 UTC
Description of Problem:

When resolving an unresolved namespace, the resolution is inserted at the wrong spot—it is inserted at the head of the file, with no newline to separate it from the rest of the using declarations.

Steps to reproduce the problem:
1. Open the attached project.
2. Try to resolve the IComparer reference in MyClass.cs by right-clicking and selecting "System.Collections.Generic."

Actual Results:

The using declaration is inserted in the wrong spot, as seen in http://screencast.com/t/MjYbuPEniSy.

Expected Results:

The using declaration is inserted after the existing using declarations, on a new line.

How often does this happen? 

Every time.

Additional Information:

MonoDevelop Beta 2.9.1, OS X 10.7.2.
Comment 1 Bojan Rajkovic [MSFT] 2011-12-06 19:49:40 UTC
Created attachment 1006 [details]
Sample project

Attaching sample project.
Comment 2 Mike Krüger 2011-12-11 04:06:44 UTC