Skip to content

Commit

Permalink
fix-9205: Fill task options explicitly if problemMatchers set
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Kukushkin <[email protected]>
Co-authored-by: Vladimir Fedotov <[email protected]>
Originally-proposed-by: Vladimir Fedotov <[email protected]>
  • Loading branch information
kostmetallist and vnfedotov committed Oct 4, 2021
1 parent 23e09c2 commit 4d1df9c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/task/src/browser/task-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 4d1df9c

Please sign in to comment.