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

Commit 3f2e0dc

Browse files
Gist Creation Notification
1 parent 6d8c105 commit 3f2e0dc

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

src/GitHub.App/ViewModels/GistCreationViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using GitHub.Extensions;
99
using GitHub.Models;
1010
using GitHub.Services;
11+
using Microsoft.VisualStudio.Shell;
1112
using NLog;
1213
using NullGuard;
1314
using Octokit;

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
@@ -150,6 +150,9 @@
150150
<data name="CancelLink" xml:space="preserve">
151151
<value>Cancel</value>
152152
</data>
153+
<data name="gistCreatedMessage" xml:space="preserve">
154+
<value>Gist created</value>
155+
</data>
153156
<data name="gistCreationFailedMessage" xml:space="preserve">
154157
<value>Failed to create gist</value>
155158
</data>

src/GitHub.VisualStudio/UI/Views/Controls/GistCreationControl.xaml.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public GistCreationControl(
4545
{
4646
var browser = serviceProvider.GetExportedValue<IVisualStudioBrowser>();
4747
browser?.OpenUrl(new Uri(gist.HtmlUrl));
48+
49+
var ns = serviceProvider.GetExportedValue<IStatusBarNotificationService>();
50+
ns?.ShowMessage(UI.Resources.gistCreatedMessage);
51+
4852
NotifyDone();
4953
});
5054

0 commit comments

Comments
 (0)