8000 Change GitHub.TeamFoundation.16 version of TeamExplorerServices · Pull Request #2515 · github/VisualStudio · GitHub
[go: up one dir, main page]

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

Change GitHub.TeamFoundation.16 version of TeamExplorerServices #2515

Merged
merged 3 commits into from
May 22, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
8000
Diff view
Diff view
Prev Previous commit
Next Next commit
Add compiler conditions within ShowPublishSection to only use IGitAct…
…ionsExt2 under 16.0
  • Loading branch information
Dan Schulte committed May 19, 2020
commit 348122afbc5f88a4a58279b9c10ca6280f69d298
7 changes: 7 additions & 0 deletions src/GitHub.TeamFoundation.14/Services/TeamExplorerServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,15 @@ public void ShowHomePage()

public void ShowPublishSection()
{
#if TEAMEXPLORER14 || TEAMEXPLORER15
var te = serviceProvider.TryGetService<ITeamExplorer>();
var page = te.NavigateToPage(new Guid(TeamExplorerPageIds.GitCommits), null);
var publish = page?.GetSection(new Guid(GitHubPublishSection.GitHubPublishSectionId)) as GitHubPublishSection;
publish?.Connect();
#else
IGitActionsExt2 gitActionsExt = serviceProvider.TryGetService<IGitActionsExt2>();
gitActionsExt?.InitializeOrPushRepositoryToGitService();
#endif
}

public async Task ShowRepositorySettingsRemotesAsync()
Expand Down
0