diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-09-05 18:47:33 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-09-05 18:47:33 +0400 |
commit | e4cd44b03581e34154cf6827b38d3ee2b3e87a2b (patch) | |
tree | 214c359dbebc4f77d8ff14df6b27f65696a7b511 /main/src/addins/MonoDevelop.Refactoring | |
parent | cd2873edd47f6f1b022f6cbf563c38f48e985580 (diff) |
Using references finder from NRefactory.
Diffstat (limited to 'main/src/addins/MonoDevelop.Refactoring')
-rw-r--r-- | main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs index d7f6ce8068..8e7ca4c388 100644 --- a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs +++ b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs @@ -89,6 +89,7 @@ namespace MonoDevelop.Refactoring public static object GetItem (ITypeResolveContext ctx, MonoDevelop.Ide.Gui.Document doc, out ResolveResult resolveResult) { resolveResult = GetResolveResult (doc); + Console.WriteLine (resolveResult); if (resolveResult is LocalResolveResult) return ((LocalResolveResult)resolveResult).Variable; if (resolveResult is MemberResolveResult) @@ -322,7 +323,6 @@ namespace MonoDevelop.Refactoring HashSet<string> possibleNamespaces = new HashSet<string> (); List<string> usedNamespaces = new List<string> (); - Console.WriteLine ("result:" + resolveResult); if (resolveResult is UnknownIdentifierResolveResult) { usedNamespaces = options.GetUsedNamespaces (); var uiResult = resolveResult as UnknownIdentifierResolveResult; @@ -371,7 +371,7 @@ namespace MonoDevelop.Refactoring } if (resolveMenu.CommandInfos.Count > 0) { - ainfo.Add (resolveMenu, null); + ainfo.Insert (0, resolveMenu); added = true; } |