Git - Remove remote quick pick includes description and icon (#169571)

This commit is contained in:
Ladislau Szomoru authored and GitHub committed 2022-12-19 12:09:34 -08:00
1 parent 1846f69774
commit df3d2c350f
1 file changed
+4 -4
+4 -4
View File
@@ -2697,16 +2697,16 @@ export class CommandCenter {
return;
}
const picks = remotes.map(r => r.name);
const picks: RemoteItem[] = repository.remotes.map(r => new RemoteItem(repository, r));
const placeHolder = l10n.t('Pick a remote to remove');
const remoteName = await window.showQuickPick(picks, { placeHolder });
const remote = await window.showQuickPick(picks, { placeHolder });
if (!remoteName) {
if (!remote) {
return;
}
await repository.removeRemote(remoteName);
await repository.removeRemote(remote.remoteName);
}
private async _sync(repository: Repository, rebase: boolean): Promise<void> {