Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Feb 6, 2019

What this PR does

IGitActionsExt is proffered by SccProviderPackage, but isn't advertised. To ensure that getting IGitActionsExt doesn't return null, we first request the IGitExt which is advertised. This forces SccProviderPackage to load and proffer IGitActionsExt.

How to test

Due to issues installing MEF components when testing using F5, I'd recomend installing this VSIX using DogfoodVsix.

  1. Open Visual Studio 2019 Preview 3
  2. Select Tools > Options... and set Current source control plug-in to None.
    image
  3. Close and relaunch Visual Studio
  4. Clone or check out code > GitHub
  5. Select and Clone a repository
  6. The repository should clone

To do

Unfortunately Team Explorer / GitHub for Visual Studio doesn't notice that a GitHub repository has been loaded and the GitHub section doesn't appear on the Team Explorer - Home page.

image

At least the clone works and the banner will appear next time the solution is loaded or the current branch changes. I don't think this is a ship blocker. I'll work on a fix in another PR.

Fixes #2218

IGitActionsExt is proffered by SccProviderPackage, but isn't
advertised. To ensure that getting IGitActionsExt doesn't return null,
we first request the SccService which is advertised. This forces
SccProviderPackage to load and proffer IGitActionsExt.
Force SccProviderPackage to load by getting IGitExt instead of the
internal SccService.
@jcansdale jcansdale merged commit 27e599f into master Feb 8, 2019
@jcansdale jcansdale deleted the fixes/2218-clone-on-first-launch branch February 8, 2019 14:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clone from VS 2019 Clone dialog doesnt work on First Launch

4 participants