felipecaputo/git-project-manager

Disambiguate entries with same remote but different folders

Tyriar opened this issue · 3 comments

I have 2 folders cloned from Microsoft/vscode, they appear as the same entry in the quick pick:

image

They're in ~/dev/vscode and ~/dev/Microsoft/vscode, maybe adding the path from the closest ancestor path to the label would work:

  • vscode (dev)
  • vscode (dev/Microsoft)

I have a similar problem with a couple of local git repositories that do not have any remotes. By default they are displayed in the project picker like this:
selection_065

I found that setting the gitProjectManager.checkRemoteOrigin setting to false makes the project picker display the project path instead of the origin remote URL:
selection_066

I would be nice if paths were displayed when there are projects with identical names or origin URL or when origin git remote is missing.

@Tyriar can we close this with 1.7.0 released today with PR #84 ?

@felipecaputo works great 😃