From 793fc0295c0f94ffedace68d63c14c8d19c4e2a8 Mon Sep 17 00:00:00 2001 From: Gabriel DeBacker Date: Mon, 22 Jul 2019 06:58:16 -0700 Subject: [PATCH] Use correct resolved TDO and task for custom execution --- src/vs/workbench/api/node/extHostTask.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/api/node/extHostTask.ts b/src/vs/workbench/api/node/extHostTask.ts index 4d97792f198..55160a13a8c 100644 --- a/src/vs/workbench/api/node/extHostTask.ts +++ b/src/vs/workbench/api/node/extHostTask.ts @@ -744,11 +744,11 @@ export class ExtHostTask implements ExtHostTaskShape { } if (CustomExecutionDTO.is(resolvedTaskDTO.execution)) { - await this.addCustomExecution(taskDTO, task); + await this.addCustomExecution(resolvedTaskDTO, resolvedTask); } if (CustomExecution2DTO.is(resolvedTaskDTO.execution)) { - await this.addCustomExecution2(taskDTO, task); + await this.addCustomExecution2(resolvedTaskDTO, resolvedTask); } return resolvedTaskDTO;