revive command args using the arg processor logic, #1431

This commit is contained in:
Johannes Rieken
2019-07-24 15:20:15 +02:00
parent a031118b38
commit b4e3cf3332

View File

@@ -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> {