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

Commit f9d90c9

Browse files
committed
Merge pull request #76 from github/shana/54-create-message
Show proper message when repo is created
2 parents 0cd7005 + 221550f commit f9d90c9

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
@@ -16,6 +16,7 @@
1616
using System.Windows.Data;
1717
using System.ComponentModel;
1818
using ReactiveUI;
19+
using System.Globalization;
1920

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

0 commit comments

Comments
 (0)