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

Commit 746abd7

Browse files
committed
Add NavigateToEditorNotCheckedOutInfoMessage resource
1 parent b6c805f commit 746abd7

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/GitHub.VisualStudio.UI/Resources.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GitHub.VisualStudio.UI/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@
404404
<data name="NavigateToEditorStatusMessage" xml:space="preserve">
405405
<value>Press Enter to navigate to Editor</value>
406406
</data>
407+
<data name="NavigateToEditorNotCheckedOutInfoMessage" xml:space="preserve">
408+
<value>Checkout PR branch before navigating to Editor</value>
409+
</data>
407410
<data name="NavigateToEditorNotCheckedOutStatusMessage" xml:space="preserve">
408411
<value>Checkout PR branch and press Enter to navigate to Editor</value>
409412
</data>

src/GitHub.VisualStudio/Views/GitHubPane/PullRequestDetailView.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async Task DoNavigateToEditor(IPullRequestFileNode file)
136136
{
137137
if (!ViewModel.IsCheckedOut)
138138
{
139-
ShowInfoMessage("Checkout PR branch before opening file in solution.");
139+
ShowInfoMessage(UI.Resources.NavigateToEditorNotCheckedOutInfoMessage);
140140
return;
141141
}
142142

0 commit comments

Comments
 (0)