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

Commit 1eeb954

Browse files
authored
Merge pull request #572 from StanleyGoldman/enhancement/gist-creation-notification
Adding "Gist Created" Notification
2 parents 6d8c105 + 6c532e0 commit 1eeb954

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
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
@@ -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)