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

Commit b7fcf23

Browse files
committed
Name Guids for RepositorySettings / Remotes
These are used to find the Remotes section on the RepositorySettings page.
1 parent 13ba3f2 commit b7fcf23

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ public class TeamExplorerServices : ITeamExplorerServices
1919
{
2020
readonly IGitHubServiceProvider serviceProvider;
2121

22+
readonly static Guid repositorySettingsPageId = new Guid("96903923-97e0-474a-9346-31a3ba28e6ff");
23+
readonly static Guid remotesSectionId = new Guid("2e31f317-7144-4316-8aae-a796e4be1fd4");
24+
2225
/// <summary>
2326
/// This MEF export requires specific versions of TeamFoundation. ITeamExplorerNotificationManager is declared here so
2427
/// that instances of this type cannot be created if the TeamFoundation dlls are not available
@@ -66,8 +69,8 @@ public void ShowPublishSection()
6669
public async Task ShowRepositorySettingsRemotesAsync()
6770
{
6871
var te = serviceProvider.TryGetService<ITeamExplorer>();
69-
var page = await NavigateToPageAsync(te, new Guid("96903923-97e0-474a-9346-31a3ba28e6ff"));
70-
var remotes = page?.GetSection(new Guid("2e31f317-7144-4316-8aae-a796e4be1fd4"));
72+
var page = await NavigateToPageAsync(te, repositorySettingsPageId);
73+
var remotes = page?.GetSection(remotesSectionId);
7174
BringIntoView(remotes);
7275
}
7376

0 commit comments

Comments
 (0)