Parcourir la source

Fixes #174 - Editor commands not working

main
Eric Amodio il y a 7 ans
Parent
révision
d3191e65d8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      src/commands/common.ts

+ 1
- 1
src/commands/common.ts Voir le fichier

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

Chargement…
Annuler
Enregistrer