Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#530 Fix MEF errors on Jade files #573

Merged
merged 2 commits into from
Oct 30, 2015
Merged

#530 Fix MEF errors on Jade files #573

merged 2 commits into from
Oct 30, 2015

Conversation

billti
Copy link
Member

@billti billti commented Oct 29, 2015

Fixes #530. Not sure what changed in Update1, but apparently this is the MEF pattern to follow, and most importantly - it works. (At least in VS2015 Update1. Still to validate on earlier builds, but this is a common pattern for a while).

@@ -38,7 +38,7 @@ internal sealed class JadeClassifierProvider : IClassifierProvider {
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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: how about IClassifierProviderMetadata to keep the naming consistent?

@mousetraps
Copy link
Contributor

left a minor comment, but 👍

billti added a commit that referenced this pull request Oct 30, 2015
@billti billti merged commit 1b3c01f into master Oct 30, 2015
@billti billti deleted the JadeMefError branch October 30, 2015 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants