ソースを参照

Fixes #174 - Editor commands not working

main
Eric Amodio 7年前
コミット
d3191e65d8
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      src/commands/common.ts

+ 1
- 1
src/commands/common.ts ファイルの表示

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

読み込み中…
キャンセル
保存