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

Show proper message when repo is created #59

Closed
wants to merge 25 commits into from

Conversation

shana
Copy link
Contributor

@shana shana commented Aug 27, 2015

Fixes #54

This PR relies on shana/list-git-repos

Adds a list view showing the list of repositories
that VS knows about and that are associated with
the github connection (i.e., the remote url corresponds
to the github connection section information)
Conflicts:
	src/GitHub.Exports/Primitives/UriString.cs
	src/GitHub.Exports/Services/Services.cs
	src/GitHub.VisualStudio/Base/TeamExplorerItemBase.cs
The repository list is loaded from the registry into ConnectionManager.
Don't save it in the cache for now, so it doesn't break compatibility
with the existing cache files and we don't really need to cache it right
now. Let's see how it works just loading directly from the registry for
now.
Offering to open a solution or project is the only way to switch the
context to the new repo. Since it's likely that that's what the user
wants to do anyway (why clone a repo otherwise), let's do that.
The previous logic wouldn't work if there is no active repo in VS
Also fix some issues with refreshing the repo list multiple times and
tracking when local repository list for changes
Make only the repo name bold when active. Change the repo path color to
white when hovering or selecting so it's more visible. Set the
background to selected when selecting with the mouse (different from
just hovering).
Keep the path color white/black when it's the current repo, it's easier
to see.
if (isCreating)
{
vsservices.ClearNotifications();
vsservices.ShowMessage(string.Format(CultureInfo.CurrentUICulture, "[{0}]({1} has been successfully created.", SelectedRepository.Name, SelectedRepository.CloneUrl));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only piece of code in this PR, everything else comes from #32

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, you can target one PR towards another PR's branch. That way only this one commit would show up. 😄

@shana shana closed this Aug 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants