Skip to content

Commit

Permalink
Use clipboard API to copy hash to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyCA committed Jan 30, 2019
1 parent 3e76219 commit 8637132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function registerCommands(context: vscode.ExtensionContext, prManager: Pu
}));

context.subscriptions.push(vscode.commands.registerCommand('pr.copyCommitHash', (e: CommitNode) => {
vscode.window.showInformationMessage(e.sha);
vscode.env.clipboard.writeText(e.sha);
}));

context.subscriptions.push(vscode.commands.registerCommand('pr.openDiffView', (fileChangeNode: GitFileChangeNode | InMemFileChangeNode) => {
Expand Down

0 comments on commit 8637132

Please sign in to comment.