|
@ -29,7 +29,7 @@ export class FileHistoryQuickPick { |
|
|
items.splice(0, 0, new CommandQuickPickItem({ |
|
|
items.splice(0, 0, new CommandQuickPickItem({ |
|
|
label: `$(sync) Show All Commits`, |
|
|
label: `$(sync) Show All Commits`, |
|
|
description: `\u00a0 \u2014 \u00a0\u00a0 this may take a while` |
|
|
description: `\u00a0 \u2014 \u00a0\u00a0 this may take a while` |
|
|
}, Commands.ShowQuickFileHistory, [Uri.file(uri.fsPath), 0, goBackCommand])); |
|
|
|
|
|
|
|
|
}, Commands.ShowQuickFileHistory, [Uri.file(uri.fsPath), undefined, 0, goBackCommand])); |
|
|
|
|
|
|
|
|
if (nextPageCommand) { |
|
|
if (nextPageCommand) { |
|
|
index++; |
|
|
index++; |
|
@ -40,14 +40,14 @@ export class FileHistoryQuickPick { |
|
|
const npc = new CommandQuickPickItem({ |
|
|
const npc = new CommandQuickPickItem({ |
|
|
label: `$(arrow-right) Show Next Commits`, |
|
|
label: `$(arrow-right) Show Next Commits`, |
|
|
description: `\u00a0 \u2014 \u00a0\u00a0 shows ${log.maxCount} newer commits` |
|
|
description: `\u00a0 \u2014 \u00a0\u00a0 shows ${log.maxCount} newer commits` |
|
|
}, Commands.ShowQuickFileHistory, [uri, log.maxCount, goBackCommand, undefined, nextPageCommand]); |
|
|
|
|
|
|
|
|
}, Commands.ShowQuickFileHistory, [uri, undefined, log.maxCount, goBackCommand, undefined, nextPageCommand]); |
|
|
|
|
|
|
|
|
const last = Iterables.last(log.commits.values()); |
|
|
const last = Iterables.last(log.commits.values()); |
|
|
|
|
|
|
|
|
previousPageCommand = new CommandQuickPickItem({ |
|
|
previousPageCommand = new CommandQuickPickItem({ |
|
|
label: `$(arrow-left) Show Previous Commits`, |
|
|
label: `$(arrow-left) Show Previous Commits`, |
|
|
description: `\u00a0 \u2014 \u00a0\u00a0 shows ${log.maxCount} older commits` |
|
|
description: `\u00a0 \u2014 \u00a0\u00a0 shows ${log.maxCount} older commits` |
|
|
}, Commands.ShowQuickFileHistory, [new GitUri(uri, last), log.maxCount, goBackCommand, undefined, npc]); |
|
|
|
|
|
|
|
|
}, Commands.ShowQuickFileHistory, [new GitUri(uri, last), undefined, log.maxCount, goBackCommand, undefined, npc]); |
|
|
|
|
|
|
|
|
index++; |
|
|
index++; |
|
|
items.splice(0, 0, previousPageCommand); |
|
|
items.splice(0, 0, previousPageCommand); |
|
@ -66,7 +66,7 @@ export class FileHistoryQuickPick { |
|
|
new CommandQuickPickItem({ |
|
|
new CommandQuickPickItem({ |
|
|
label: `go back \u21A9`, |
|
|
label: `go back \u21A9`, |
|
|
description: `\u00a0 \u2014 \u00a0\u00a0 to history of \u00a0$(file-text) ${path.basename(uri.fsPath)}` |
|
|
description: `\u00a0 \u2014 \u00a0\u00a0 to history of \u00a0$(file-text) ${path.basename(uri.fsPath)}` |
|
|
}, Commands.ShowQuickFileHistory, [uri, log.maxCount, undefined, log]) |
|
|
|
|
|
|
|
|
}, Commands.ShowQuickFileHistory, [uri, undefined, log.maxCount, undefined, log]) |
|
|
])); |
|
|
])); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|