-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Don't preload completion providers we don't need. #11413
Don't preload completion providers we don't need. #11413
Conversation
5c31333
to
6f2c494
Compare
Tagging @dotnet/roslyn-ide Review this plz. This is an RI blocker. |
We used to build a mapping from names to completion providers in the completion service. Building this mapping required realizing the completion providers. This was bad as it would cause interactive completion providers to be loaded into the normal (non-interactive) completion service. We now only add these items to mapping if we actually create teh completion provider. In order for this to work properly though a lot of tests needed to be fixed up. That's because the tests would create numerous instances of the completion service, and thus we would have some services would have the mapping filled, while others would not. Now we create the service at the start of the test and use it throughout the entirety of the test. |
@@ -15,5 +15,6 @@ | |||
<!-- See above comment under CSharp --> | |||
<Rule Id="RS0003" Action="None" /> | |||
<Rule Id="RS0007" Action="None" /> | |||
<Rule Id="RS0005" Action="None" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "Do not use generic CodeAction.Create to create CodeAction" analyzer is crashing when it analyzed BasicEditorServicesTest. The analyzer isn't of any value to the test code*, and we need to unblock this RI issue, so i'm just disabling it from running here.
*
The analyzer is about not calling CodeAction.Create directly (and instead creating a subclass of DocumentCodeAction). That not relevant in test code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi @mavasani
test vsi please |
👍 |
Adding @mattwar |
👍 |
No description provided.