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

Don't preload completion providers we don't need. #11413

Merged
merged 7 commits into from
May 19, 2016

Conversation

CyrusNajmabadi
Copy link
Member

No description provided.

@CyrusNajmabadi
Copy link
Member Author

Tagging @dotnet/roslyn-ide Review this plz. This is an RI blocker.

@CyrusNajmabadi
Copy link
Member Author

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" />
Copy link
Member Author

@CyrusNajmabadi CyrusNajmabadi May 19, 2016

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

fyi @mavasani

@CyrusNajmabadi
Copy link
Member Author

test vsi please

@basoundr
Copy link
Contributor

👍

@CyrusNajmabadi
Copy link
Member Author

Adding @mattwar

@mattwar
Copy link
Contributor

mattwar commented May 19, 2016

👍

@CyrusNajmabadi CyrusNajmabadi merged commit 5734bdc into dotnet:master May 19, 2016
@CyrusNajmabadi CyrusNajmabadi deleted the delayLoadCompletion branch May 19, 2016 20:28
@CyrusNajmabadi CyrusNajmabadi restored the delayLoadCompletion branch May 30, 2016 21:03
@CyrusNajmabadi CyrusNajmabadi deleted the delayLoadCompletion branch January 25, 2020 00:30
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