From 4d1df9cefad285c2be77f5730e941c1f43af5250 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Fri, 24 Sep 2021 13:27:43 +0300 Subject: [PATCH] fix-9205: Fill task options explicitly if problemMatchers set Signed-off-by: Konstantin Kukushkin Co-authored-by: Vladimir Fedotov Originally-proposed-by: Vladimir Fedotov --- packages/task/src/browser/task-service.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/task/src/browser/task-service.ts b/packages/task/src/browser/task-service.ts index d52c6b4defa7a..4336a15e10ac2 100644 --- a/packages/task/src/browser/task-service.ts +++ b/packages/task/src/browser/task-service.ts @@ -735,6 +735,15 @@ export class TaskService implements TaskConfigurationClient { console.debug('got lock'); try { + // resolve problemMatchers + if (!option && task.problemMatcher) { + const customizationObject: TaskCustomization = { type: task.taskType, problemMatcher: task.problemMatcher }; + const resolvedMatchers = await this.resolveProblemMatchers(task, customizationObject); + option = { + customization: { ...customizationObject, ...{ problemMatcher: resolvedMatchers } } + }; + } + const runningTasksInfo: TaskInfo[] = await this.getRunningTasks(); // check if the task is active const matchedRunningTaskInfo = runningTasksInfo.find(taskInfo => {