Use correct resolved TDO and task for custom execution

This commit is contained in:
Gabriel DeBacker
2019-07-22 06:58:16 -07:00
parent 18a1030852
commit 793fc0295c

View File

@@ -744,11 +744,11 @@ export class ExtHostTask implements ExtHostTaskShape {
}
if (CustomExecutionDTO.is(resolvedTaskDTO.execution)) {
await this.addCustomExecution(taskDTO, <vscode.Task2>task);
await this.addCustomExecution(resolvedTaskDTO, <vscode.Task2>resolvedTask);
}
if (CustomExecution2DTO.is(resolvedTaskDTO.execution)) {
await this.addCustomExecution2(taskDTO, <vscode.Task2>task);
await this.addCustomExecution2(resolvedTaskDTO, <vscode.Task2>resolvedTask);
}
return resolvedTaskDTO;