瀏覽代碼

Adds clipboard copy sha to commit files quick pick list

Adds clipboard copy message to commit files quick pick list
main
Eric Amodio 7 年之前
父節點
當前提交
66d11c37e2
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. +10
    -0
      src/commands/quickPicks.ts

+ 10
- 0
src/commands/quickPicks.ts 查看文件

@ -94,6 +94,16 @@ export class CommitFilesQuickPick {
items.splice(0, 0, new OpenCommitFilesCommandQuickPickItem(commit, fileNames));
items.splice(1, 0, new CommandQuickPickItem({
label: `$(clippy) Copy Commit Sha to Clipboard`,
description: `\u00a0 \u2014 \u00a0\u00a0 $(git-commit) ${commit.sha}`
}, Commands.CopyShaToClipboard, [uri, commit.sha]));
items.splice(2, 0, new CommandQuickPickItem({
label: `$(clippy) Copy Commit Message to Clipboard`,
description: `\u00a0 \u2014 \u00a0\u00a0 $(git-commit) ${commit.message}`
}, Commands.CopyMessageToClipboard, [uri, commit.sha, commit.message]));
if (goBackCommand) {
items.splice(0, 0, goBackCommand);
}

Loading…
取消
儲存