Command handlers are invoked with var-args

This commit is contained in:
Alex Dima
2016-05-02 18:59:56 +02:00
parent fb467cc7a6
commit e05566c980
17 changed files with 45 additions and 52 deletions

View File

@@ -157,7 +157,7 @@ export class MainThreadCommands {
}
$executeCommand<T>(id: string, args: any[]): Thenable<T> {
return this._keybindingService.executeCommand(id, args);
return this._keybindingService.executeCommand(id, ...args);
}
$getCommands(): Thenable<string[]> {