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

Commit 8c727c4

Browse files
committed
Merge branch 'shana/54-create-message' into shana/fixes
Conflicts: src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubConnectSection.cs
2 parents 4bdd3f9 + 221550f commit 8c727c4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubConnectSection.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using System.ComponentModel;
1818
using ReactiveUI;
1919
using GitHub.Exports;
20+
using System.Globalization;
2021

2122
namespace GitHub.VisualStudio.TeamExplorer.Connect
2223
{
@@ -195,10 +196,16 @@ async void UpdateRepositoryList(object sender, NotifyCollectionChangedEventArgs
195196
{
196197
var newrepo = e.NewItems.Cast<ISimpleRepositoryModel>().First();
197198
SelectedRepository = newrepo;
199+
if (isCreating)
200+
{
201+
var vsservices = ServiceProvider.GetExportedValue<IVSServices>();
202+
vsservices.ClearNotifications();
203+
vsservices.ShowMessage(string.Format(CultureInfo.CurrentUICulture, "[{0}]({1}) has been successfully created.", newrepo.Name, newrepo.CloneUrl));
204+
}
198205
// if we've cloned a repo but the user didn't open a project in it,
199206
// then update the newly-cloned repo icon because we're not going to
200207
// switch to the TE home page
201-
if (isCloning && !OpenRepository())
208+
if ((isCloning && !OpenRepository()) || isCreating)
202209
{
203210
var repo = await ApiFactory.Create(newrepo.CloneUrl).GetRepository();
204211
newrepo.SetIcon(repo.Private, repo.Fork);

0 commit comments

Comments
 (0)