Explorar el Código

Fixes #174 - Editor commands not working

main
Eric Amodio hace 7 años
padre
commit
d3191e65d8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/commands/common.ts

+ 1
- 1
src/commands/common.ts Ver fichero

@ -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);
}

Cargando…
Cancelar
Guardar