Refactors quick pick lists

This commit is contained in:
Eric Amodio
2017-02-28 01:58:14 -05:00
parent 41fd06e491
commit 3c8fe9efb8
14 changed files with 452 additions and 466 deletions

View File

@@ -3,8 +3,7 @@ import { commands, TextEditor, Uri, window } from 'vscode';
import { ActiveEditorCommand, Commands } from '../commands';
import GitProvider, { GitCommit, GitUri } from '../gitProvider';
import { Logger } from '../logger';
import { CommandQuickPickItem } from './quickPickItems';
import { RepoCommitsQuickPick } from './quickPicks';
import { CommandQuickPickItem, RepoHistoryQuickPick } from '../quickPicks/repoHistory';
export default class ShowQuickRepoHistoryCommand extends ActiveEditorCommand {
@@ -41,7 +40,7 @@ export default class ShowQuickRepoHistoryCommand extends ActiveEditorCommand {
const log = await this.git.getLogForRepo(repoPath, undefined, maxCount);
if (!log) return window.showWarningMessage(`Unable to show repository history`);
const pick = await RepoCommitsQuickPick.show(log, uri, maxCount, this.git.config.advanced.maxQuickHistory, goBackCommand);
const pick = await RepoHistoryQuickPick.show(log, uri, maxCount, this.git.config.advanced.maxQuickHistory, goBackCommand);
if (!pick) return undefined;
if (pick instanceof CommandQuickPickItem) {