From d3191e65d802625fe39081381e6479d7447aacc3 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 19 Oct 2017 22:54:20 -0400 Subject: [PATCH] Fixes #174 - Editor commands not working --- src/commands/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/common.ts b/src/commands/common.ts index b41f99a..780da3c 100644 --- a/src/commands/common.ts +++ b/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); }