Skip to content

Commit d3191e6

Browse files
committed
Fixes #174 - Editor commands not working
1 parent 225e9e2 commit d3191e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export abstract class EditorCommand extends Disposable {
271271

272272
const subscriptions = [];
273273
for (const cmd of command) {
274-
subscriptions.push(commands.registerCommand(cmd, (editor: TextEditor, edit: TextEditorEdit, ...args: any[]) => this._execute(cmd, editor, edit, ...args), this));
274+
subscriptions.push(commands.registerTextEditorCommand(cmd, (editor: TextEditor, edit: TextEditorEdit, ...args: any[]) => this._execute(cmd, editor, edit, ...args), this));
275275
}
276276
this._disposable = Disposable.from(...subscriptions);
277277
}

0 commit comments

Comments
 (0)