[MonoDevelop] Little Task list feature (patch)

Pawel Rozanski tokugawa@afn.no-ip.org
Fri, 09 Apr 2004 02:42:17 +0200


This is a multi-part message in MIME format.
--------------070802030302020401000004
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello,
   C# uses a CompilerError.ErrorNumber so it looks in task list like:
   "error description(CS0165)"

   But many langugaes don't have "error number", like Nemerle ;)
   So my errors looks like:
   "error description()"

   Ugly. This patch fixes that.

Pawel

--------------070802030302020401000004
Content-Type: text/plain;
 name="MonoDevelop-r1401-TaskDescription-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="MonoDevelop-r1401-TaskDescription-patch"

diff -Naur MonoDevelop-r1401-Nemerle/src/Main/Base/Services/Tasks/Task.cs MonoDevelop/src/Main/Base/Services/Tasks/Task.cs
--- MonoDevelop-r1401-Nemerle/src/Main/Base/Services/Tasks/Task.cs	2004-03-20 01:20:23.000000000 +0100
+++ MonoDevelop/src/Main/Base/Services/Tasks/Task.cs	2004-04-09 02:24:51.537591672 +0200
@@ -94,7 +94,9 @@
 			type        = error.IsWarning ? TaskType.Warning : TaskType.Error;
 			column      = error.Column - 1;
 			line        = error.Line - 1;
-			description = error.ErrorText + "(" + error.ErrorNumber + ")";
+			description = error.ErrorText;
+			if (error.ErrorNumber != String.Empty)
+				description += "(" + error.ErrorNumber + ")";
 			fileName    = error.FileName;
 		}
 		

--------------070802030302020401000004--