Changes behavior of copyShaToClipboard

Copies the sha of the most recent commit to the repository if there is no active editor
This commit is contained in:
Eric Amodio
2017-02-17 22:22:21 -05:00
parent d8d221a624
commit 46039dbf24
2 changed files with 23 additions and 13 deletions

View File

@@ -79,7 +79,7 @@ export async function activate(context: ExtensionContext) {
context.subscriptions.push(activeLineController);
context.subscriptions.push(new CopyMessageToClipboardCommand(git, repoPath));
context.subscriptions.push(new CopyShaToClipboardCommand(git));
context.subscriptions.push(new CopyShaToClipboardCommand(git, repoPath));
context.subscriptions.push(new DiffWithWorkingCommand(git));
context.subscriptions.push(new DiffLineWithWorkingCommand(git));
context.subscriptions.push(new DiffWithPreviousCommand(git));