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

Add test to ensure that a CompletionService can be acquired #12201

Merged
merged 2 commits into from
Jun 24, 2016

Conversation

DustinCampbell
Copy link
Member

Issue #11841 found that, due to a MEF bug, the Features assemblies could not properly be included in a MEF composition. This was worked around by combining [ExtensionOrder] attributes where multiple attributes had been specified. This change adds a tests for C# and VB to ensure that a CompletionService can be acquired from an AdhocWorkspace that is created with MefHostServices that include the Features assemblies.

I verified that these tests fail without the workaound described above, and pass with the workaround in place.

cc @mattwar, @weltkante, @aelij, @dotnet/roslyn-ide

Issue dotnet#11841 found that, due to a MEF bug, the Features assemblies could not properly be included in a MEF composition. This was worked around by combining [ExtensionOrder] attributes where multiple attributes had been specified. This change adds a tests for C# and VB to ensure that a CompletionService can be acquired from an AdhocWorkspace that is created with MefHostServices that include the Features assemblies.

I verified that these tests fail without the workaound described above, and pass with the workaround in place.
@mattwar
Copy link
Contributor

mattwar commented Jun 24, 2016

👍

@DustinCampbell DustinCampbell merged commit a9ad83c into dotnet:master Jun 24, 2016
@jasonmalinowski
Copy link
Member

Thanks for adding the test! 👍

@DustinCampbell DustinCampbell deleted the add-composition-test branch August 21, 2017 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants