Browse Source

Fixes remote connect/disconnect repo picker

main
Eric Amodio 4 years ago
parent
commit
88ac213a4a
2 changed files with 7 additions and 3 deletions
  1. +6
    -2
      src/commands/remoteProviders.ts
  2. +1
    -1
      src/quickpicks/repositoryPicker.ts

+ 6
- 2
src/commands/remoteProviders.ts View File

@ -60,7 +60,11 @@ export class ConnectRemoteProviderCommand extends Command {
[repo, remote] = Iterables.first(repos);
repoPath = repo.path;
} else {
const pick = await RepositoryPicker.show('', '', [...repos.keys()]);
const pick = await RepositoryPicker.show(
undefined,
'Choose which repository to connect to the remote provider',
[...repos.keys()],
);
if (pick?.item == null) return undefined;
repoPath = pick.repoPath;
@ -145,8 +149,8 @@ export class DisconnectRemoteProviderCommand extends Command {
repoPath = repo.path;
} else {
const pick = await RepositoryPicker.show(
'Choose which repository to disconnect the remote on',
undefined,
'Choose which repository to disconnect from the remote provider',
[...repos.keys()],
);
if (pick?.item == null) return undefined;

+ 1
- 1
src/quickpicks/repositoryPicker.ts View File

@ -7,7 +7,7 @@ import { Iterables } from '../system';
export namespace RepositoryPicker {
export async function show(
title: string,
title: string | undefined,
placeholder: string = 'Choose a repository',
repositories?: Repository[],
): Promise<RepositoryQuickPickItem | undefined> {

Loading…
Cancel
Save