Skip to content

Commit

Permalink
revive command args using the arg processor logic, #1431
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jul 24, 2019
1 parent a031118 commit b4e3cf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vs/workbench/api/common/extHostCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ export class ExtHostCommands implements ExtHostCommandsShape {
}

$handleDidExecuteCommand(command: ICommandEvent): void {
this._onDidExecuteCommand.fire({ command: command.commandId, arguments: command.args });
this._onDidExecuteCommand.fire({
command: command.commandId,
arguments: command.args.map(arg => this._argumentProcessors.reduce((r, p) => p.processArgument(r), arg))
});
}

executeCommand<T>(id: string, ...args: any[]): Promise<T> {
Expand Down

0 comments on commit b4e3cf3

Please sign in to comment.