mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
use var args and spread for editor command extra arguments all the way (#169532)
(actually) fixes https://github.com/microsoft/vscode/issues/167564
This commit is contained in:
@@ -452,7 +452,7 @@ export abstract class EditorAction2 extends Action2 {
|
||||
return editor.invokeWithinContext((editorAccessor) => {
|
||||
const kbService = editorAccessor.get(IContextKeyService);
|
||||
if (kbService.contextMatchesRules(withNullAsUndefined(this.desc.precondition))) {
|
||||
return this.runEditorCommand(editorAccessor, editor!, args);
|
||||
return this.runEditorCommand(editorAccessor, editor!, ...args);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user