From f01825c1b1fec4b6d98c114b2a7e90dee1e24614 Mon Sep 17 00:00:00 2001 From: Bill Ticehurst Date: Thu, 29 Oct 2015 15:45:03 -0700 Subject: [PATCH] #530 Fix MEF errors on Jade files --- Nodejs/Product/Nodejs/ClassifierProviderMetadata.cs | 8 ++------ .../Nodejs/Jade/Classifier/JadeClassifierProvider.cs | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Nodejs/Product/Nodejs/ClassifierProviderMetadata.cs b/Nodejs/Product/Nodejs/ClassifierProviderMetadata.cs index 679e1471e..a0ba0d936 100644 --- a/Nodejs/Product/Nodejs/ClassifierProviderMetadata.cs +++ b/Nodejs/Product/Nodejs/ClassifierProviderMetadata.cs @@ -22,11 +22,7 @@ namespace Microsoft.NodejsTools { /// Just used for our MEF import to get the metadata in a strongly /// typed way. /// - sealed class ClassifierProviderMetadata { - public readonly IEnumerable ContentTypes; - - public ClassifierProviderMetadata(IDictionary values) { - ContentTypes = (IEnumerable)values["ContentTypes"]; - } + public interface IContentTypeMetadata { + IEnumerable ContentTypes { get; } } } diff --git a/Nodejs/Product/Nodejs/Jade/Classifier/JadeClassifierProvider.cs b/Nodejs/Product/Nodejs/Jade/Classifier/JadeClassifierProvider.cs index 3038d504f..8a5733d79 100644 --- a/Nodejs/Product/Nodejs/Jade/Classifier/JadeClassifierProvider.cs +++ b/Nodejs/Product/Nodejs/Jade/Classifier/JadeClassifierProvider.cs @@ -38,7 +38,7 @@ public JadeClassifierProvider(IClassificationTypeRegistryService registryService ITextBufferFactoryService bufferFact, IContentTypeRegistryService contentTypeService, [ImportMany(typeof(ITaggerProvider))]Lazy[] taggerProviders, - [ImportMany(typeof(IClassifierProvider))]Lazy[] classifierProviders) { + [ImportMany(typeof(IClassifierProvider))]Lazy[] classifierProviders) { ClassificationRegistryService = registryService; BufferFactoryService = bufferFact; JsContentType = contentTypeService.GetContentType(NodejsConstants.JavaScript);