Przeglądaj źródła

Fixes #174 - Editor commands not working

main
Eric Amodio 7 lat temu
rodzic
commit
d3191e65d8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      src/commands/common.ts

+ 1
- 1
src/commands/common.ts Wyświetl plik

@ -271,7 +271,7 @@ export abstract class EditorCommand extends Disposable {
const subscriptions = [];
for (const cmd of command) {
subscriptions.push(commands.registerCommand(cmd, (editor: TextEditor, edit: TextEditorEdit, ...args: any[]) => this._execute(cmd, editor, edit, ...args), this));
subscriptions.push(commands.registerTextEditorCommand(cmd, (editor: TextEditor, edit: TextEditorEdit, ...args: any[]) => this._execute(cmd, editor, edit, ...args), this));
}
this._disposable = Disposable.from(...subscriptions);
}

Ładowanie…
Anuluj
Zapisz