Adds icons to quickpick commands

Adds file history choices to commit quickpick
Adds repo history choice to file history quickpick
Adds commit message to quickpick placeholder in a few places
This commit is contained in:
Eric Amodio
2017-02-15 14:15:33 -05:00
parent 6504b7822c
commit beb6740120
4 changed files with 145 additions and 107 deletions

View File

@@ -5,8 +5,9 @@ import { GitCommit, GitUri } from '../gitProvider';
import * as moment from 'moment';
import * as path from 'path';
export interface BackQuickPickItem extends QuickPickItem {
export interface CommandQuickPickItem extends QuickPickItem {
command: Commands;
args?: any[];
}
export class CommitQuickPickItem implements QuickPickItem {
@@ -22,10 +23,6 @@ export class CommitQuickPickItem implements QuickPickItem {
}
}
export interface CompareQuickPickItem extends QuickPickItem {
command: Commands;
}
export class FileQuickPickItem implements QuickPickItem {
label: string;
@@ -48,7 +45,7 @@ export class ShowAllCommitsQuickPickItem implements QuickPickItem {
detail: string;
constructor(maxItems: number) {
this.label = `\u21BB Show All Commits`;
this.label = `$(sync) Show Full History`;
this.description = `\u2014 Currently only showing the first ${maxItems} commits`;
this.detail = `This may take a while`;
}