[svn] r6125: vs-plugin: . NemerleLanguage.cs NemerleProject.cs

NoiseEHC svnadmin at nemerle.org
Wed Feb 15 17:30:41 CET 2006


Log:
fixed .n file registration

Author: NoiseEHC
Date: Wed Feb 15 17:30:39 2006
New Revision: 6125

Modified:
   vs-plugin/   (props changed)
   vs-plugin/NemerleLanguage.cs
   vs-plugin/NemerleProject.cs

Modified: vs-plugin/NemerleLanguage.cs
==============================================================================
--- vs-plugin/NemerleLanguage.cs	(original)
+++ vs-plugin/NemerleLanguage.cs	Wed Feb 15 17:30:39 2006
@@ -3,8 +3,6 @@
 using Microsoft.VisualStudio.TextManager.Interop;
 using NC = Nemerle.Compiler;
 
-//TODO: if you open a single .n file (not a project) then there is no syntax highlight
-
 namespace NemerleProject
 {
 	[System.Runtime.InteropServices.Guid("0F15B13F-4C95-405f-97A5-7E0E341C4FD3")]

Modified: vs-plugin/NemerleProject.cs
==============================================================================
--- vs-plugin/NemerleProject.cs	(original)
+++ vs-plugin/NemerleProject.cs	Wed Feb 15 17:30:39 2006
@@ -21,6 +21,8 @@
     [ProvideMenuResource(1000, 1)]
     [PackageRegistration(UseManagedResourcesOnly = true)]
 
+	// We need ProvideService because without it the standalone .n files do not get syntax highlight.
+	[ProvideService(typeof(NemerleLanguage), ServiceName = "Nemerle")]
 	[ProvideLanguageService(typeof(NemerleLanguage), "Nemerle", 100, CodeSense = true)]
 	[ProvideLanguageExtension(typeof(NemerleLanguage), ".n")]
 



More information about the svn mailing list