[Monodevelop-patches-list] r1975 - in trunk/MonoDevelop/Core/src/Main/Base: . Services/ParserService

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Wed Oct 6 22:51:03 EDT 2004


Author: tberman
Date: 2004-10-06 22:51:03 -0400 (Wed, 06 Oct 2004)
New Revision: 1975

Modified:
   trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
   trunk/MonoDevelop/Core/src/Main/Base/Services/ParserService/CodeCompletionDatabase.cs
Log:
fix a small bug with the namespace being added multiple times to the list.

this was causing 'System' to show up twice in a using completion list if you
had referenced System.dll. (One from mscorlib.dll, and one from System.dll)


Modified: trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/ChangeLog	2004-10-05 01:47:46 UTC (rev 1974)
+++ trunk/MonoDevelop/Core/src/Main/Base/ChangeLog	2004-10-07 02:51:03 UTC (rev 1975)
@@ -1,3 +1,8 @@
+2004-10-06  Todd Berman  <tberman at off.net>
+
+	* Services/ParserService/CodeCompletionDatabase.cs: Check to see if
+	the namespace is already in the list before adding.
+
 2004-09-26  Todd Berman  <tberman at off.net>
 
 	* Gui/Components/SdMenu.cs: this should fix i18n for menus

Modified: trunk/MonoDevelop/Core/src/Main/Base/Services/ParserService/CodeCompletionDatabase.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Services/ParserService/CodeCompletionDatabase.cs	2004-10-05 01:47:46 UTC (rev 1974)
+++ trunk/MonoDevelop/Core/src/Main/Base/Services/ParserService/CodeCompletionDatabase.cs	2004-10-07 02:51:03 UTC (rev 1975)
@@ -554,7 +554,7 @@
 				if (tns == null) return;
 				
 				foreach (DictionaryEntry en in tns.Contents) {
-					if (en.Value is NamespaceEntry)
+					if (en.Value is NamespaceEntry && !list.Contains (en.Key))
 						list.Add (en.Key);
 				}
 			}




More information about the Monodevelop-patches-list mailing list