Просмотр исходного кода

Fixes remote connect/disconnect repo picker

main
Eric Amodio 4 лет назад
Родитель
Сommit
88ac213a4a
2 измененных файлов: 7 добавлений и 3 удалений
  1. +6
    -2
      src/commands/remoteProviders.ts
  2. +1
    -1
      src/quickpicks/repositoryPicker.ts

+ 6
- 2
src/commands/remoteProviders.ts Просмотреть файл

@ -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 Просмотреть файл

@ -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> {

Загрузка…
Отмена
Сохранить