Skip to content

Commit

Permalink
microsoft#530 Fix MEF errors on Jade files
Browse files Browse the repository at this point in the history
  • Loading branch information
billti committed Oct 29, 2015
1 parent fb5c884 commit f01825c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions Nodejs/Product/Nodejs/ClassifierProviderMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ namespace Microsoft.NodejsTools {
/// Just used for our MEF import to get the metadata in a strongly
/// typed way.
/// </summary>
sealed class ClassifierProviderMetadata {
public readonly IEnumerable<string> ContentTypes;

public ClassifierProviderMetadata(IDictionary<string, object> values) {
ContentTypes = (IEnumerable<string>)values["ContentTypes"];
}
public interface IContentTypeMetadata {
IEnumerable<string> ContentTypes { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public JadeClassifierProvider(IClassificationTypeRegistryService registryService
ITextBufferFactoryService bufferFact,
IContentTypeRegistryService contentTypeService,
[ImportMany(typeof(ITaggerProvider))]Lazy<ITaggerProvider, TaggerProviderMetadata>[] taggerProviders,
[ImportMany(typeof(IClassifierProvider))]Lazy<IClassifierProvider, ClassifierProviderMetadata>[] classifierProviders) {
[ImportMany(typeof(IClassifierProvider))]Lazy<IClassifierProvider, IContentTypeMetadata>[] classifierProviders) {
ClassificationRegistryService = registryService;
BufferFactoryService = bufferFact;
JsContentType = contentTypeService.GetContentType(NodejsConstants.JavaScript);
Expand Down

0 comments on commit f01825c

Please sign in to comment.