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

Commit 8186791

Browse files
author
Dan Schulte
committed
Change GitHub.TeamFoundation.16 version of TeamExplorerServices to use IGitActionsExt2.InitializeOrPushRepositoryToGitService()
1 parent 4b2ce02 commit 8186791

7 files changed

+3
-4
lines changed
7.05 KB
Binary file not shown.
-7.45 KB
Binary file not shown.
98.3 KB
Binary file not shown.
-6.77 KB
Binary file not shown.
351 KB
Binary file not shown.
375 KB
Binary file not shown.

src/GitHub.TeamFoundation.14/Services/TeamExplorerServices.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using EnvDTE;
1010
using GitHub.VisualStudio.TeamExplorer.Sync;
1111
using Microsoft.TeamFoundation.Controls;
12+
using Microsoft.VisualStudio.TeamFoundation.Git.Extensibility;
1213
using ReactiveUI;
1314

1415
namespace GitHub.Services
@@ -66,10 +67,8 @@ public void ShowHomePage()
6667

6768
public void ShowPublishSection()
6869
{
69-
var te = serviceProvider.TryGetService<ITeamExplorer>();
70-
var page = te.NavigateToPage(new Guid(TeamExplorerPageIds.GitCommits), null);
71-
var publish = page?.GetSection(new Guid(GitHubPublishSection.GitHubPublishSectionId)) as GitHubPublishSection;
72-
publish?.Connect();
70+
IGitActionsExt2 gitActionsExt = serviceProvider.TryGetService<IGitActionsExt2>();
71+
gitActionsExt?.InitializeOrPushRepositoryToGitService();
7372
}
7473

7574
public async Task ShowRepositorySettingsRemotesAsync()

0 commit comments

Comments
 (0)