Skip to content

Commit b7c53af

Browse files
authored
EditorActions don't pass on args (microsoft#201315)
1 parent 1689420 commit b7c53af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/editor/browser/widget/codeEditorWidget.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
347347
action.alias,
348348
action.metadata,
349349
action.precondition ?? undefined,
350-
(): Promise<void> => {
350+
(args: unknown): Promise<void> => {
351351
return this._instantiationService.invokeFunction((accessor) => {
352-
return Promise.resolve(action.runEditorCommand(accessor, this, null));
352+
return Promise.resolve(action.runEditorCommand(accessor, this, args));
353353
});
354354
},
355355
this._contextKeyService

0 commit comments

Comments
 (0)