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

Wait until solution load before we kick off all our nuget work. #9663

Merged
merged 5 commits into from
May 17, 2016

Conversation

CyrusNajmabadi
Copy link
Member

No description provided.

@CyrusNajmabadi
Copy link
Member Author

Tagging @dotnet/roslyn-ide @jasonmalinowski @heejaechang

@CyrusNajmabadi
Copy link
Member Author

retest vsi please

@@ -161,6 +166,14 @@ private void LoadComponents()

LoadAnalyzerNodeComponents();

// Ensure the nuget package services are initialized after we've loaded
Copy link
Contributor

Choose a reason for hiding this comment

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

new MEF import will be also perf impacting thing for solution open.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah, sorry, git collapsed region and it looked like code belong to initialize.

if possible, importing and running from background thread will be even better.

@heejaechang
Copy link
Contributor

👍

// Start the whole process once we're connected
_installerService.PackageSourcesChanged += OnPackageSourcesChanged;
OnPackageSourcesChanged(this, EventArgs.Empty);
_started = true;
Copy link
Member

Choose a reason for hiding this comment

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

Should this happen before the call to OnPackageSourcesChanged in case anything in that method looks at it?

Copy link
Member Author

Choose a reason for hiding this comment

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

actually, i just realized this isn't even necessary.

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope. Scratch that. Still necessary.

This boolean is just so we know if we've actually done the event hookup. That way we know if we should disconnect on 'Stop' down below. Where it comes here shouldn't really matter.

@Pilchie
Copy link
Member

Pilchie commented Mar 10, 2016

👍

@Pilchie
Copy link
Member

Pilchie commented May 15, 2016

Any reason not to get conflicts dealt with and merge this?

@CyrusNajmabadi
Copy link
Member Author

Yup. I'll take care of this PR.

@CyrusNajmabadi
Copy link
Member Author

test vsi please

@CyrusNajmabadi CyrusNajmabadi changed the title Wait until solutoin load before we kick off all our nuget work. Wait until solution load before we kick off all our nuget work. May 17, 2016
@CyrusNajmabadi CyrusNajmabadi merged commit ad5b1bb into dotnet:master May 17, 2016
@CyrusNajmabadi CyrusNajmabadi deleted the nugetBackoffMaster branch May 17, 2016 01:33
@CyrusNajmabadi CyrusNajmabadi restored the nugetBackoffMaster branch May 30, 2016 21:04
@CyrusNajmabadi CyrusNajmabadi deleted the nugetBackoffMaster branch January 25, 2020 00:36
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