Skip to content

PM UI: add remoteable solution manager service - #3608

Merged
dtivel merged 3 commits into
dev-feature-OE.PMUIfrom
dev-dtivel-oe-pmui-isolutionmanager
Aug 28, 2020
Merged

dtivel merged 3 commits into
dev-feature-OE.PMUIfrom
dev-dtivel-oe-pmui-isolutionmanager

Conversation

@dtivel

@dtivel dtivel commented Aug 25, 2020 •

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#9918
Regression: No

Fix

Details:

  • Add a remoteable solution manager service (INuGetSolutionManagerService). Also add a pass-through wrapper for the service which requeries a proxy which availability changes.
  • Add a remoteable project upgrader service (INuGetSolutionManagerService). While upgrading isn't intended to be remoteable, this work furthers the goal of reducing PM UI's dependency on the non-remoteable IVsSolutionManager.
  • PM UI install/uninstall/update operations are still broken.

In the process of adding tests, I found and fixed some round-tripping bugs in the formatters.

Testing/Validation

Tests Added: Yes
Reason for not adding tests:
Validation:

@rrelyea rrelyea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

NuGetProject nuGetProject;
_projectSystemCache.TryGetNuGetProject(envDTEProject.Name, out nuGetProject);

RemoveVsProjectAdapterFromCache(envDTEProject.FullName);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moving this statement fixed a bug where the NuGetProjectRemoved event would fire with a null NuGetProject. This is because the project would first be removed from the project cache before we'd attempt to get it from the project cache to include in the event args.

@sbanni sbanni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@dtivel
dtivel merged commit 9e2f54f into dev-feature-OE.PMUI Aug 28, 2020
@dtivel
dtivel deleted the dev-dtivel-oe-pmui-isolutionmanager branch August 28, 2020 20:12
dtivel added a commit that referenced this pull request Sep 3, 2020
dtivel added a commit that referenced this pull request Sep 4, 2020
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