Changes shortcut keys for diff with previous commands

Adds diff with next command
Fixes #45 - Keyboard Shortcut collision with Project Manager
Preps v2.11.2
This commit is contained in:
Eric Amodio
2017-03-10 13:48:01 -05:00
parent 0480477136
commit df838e883a
12 changed files with 127 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
'use strict';
import { commands, Disposable, TextEditor, window } from 'vscode';
import { BuiltInCommands } from './constants';
export class ActiveEditorTracker extends Disposable {
@@ -28,11 +29,11 @@ export class ActiveEditorTracker extends Disposable {
}
async close(): Promise<{}> {
return commands.executeCommand('workbench.action.closeActiveEditor');
return commands.executeCommand(BuiltInCommands.CloseActiveEditor);
}
async next(): Promise<{}> {
return commands.executeCommand('workbench.action.nextEditor');
return commands.executeCommand(BuiltInCommands.NextEditor);
}
async wait(timeout: number = 500): Promise<TextEditor> {