diff --git a/src/vs/workbench/parts/tasks/common/problemMatcher.ts b/src/vs/workbench/parts/tasks/common/problemMatcher.ts index 9c6a0d5c064f2977a8ade500c64dfd7d4ac53c72..eb502913d2dba1449a695e356fd321b7502a8102 100644 --- a/src/vs/workbench/parts/tasks/common/problemMatcher.ts +++ b/src/vs/workbench/parts/tasks/common/problemMatcher.ts @@ -1352,9 +1352,6 @@ export class ProblemMatcherParser extends Parser { } let pattern = description.pattern ? this.createProblemPattern(description.pattern) : undefined; - if (!pattern) { - return null; - } let severity = description.severity ? Severity.fromValue(description.severity) : undefined; if (severity === Severity.Ignore) { @@ -1380,7 +1377,7 @@ export class ProblemMatcherParser extends Parser { if (filePrefix) { result.filePrefix = filePrefix; } - if (description.pattern) { + if (pattern) { result.pattern = pattern; } if (description.severity) { @@ -1391,7 +1388,7 @@ export class ProblemMatcherParser extends Parser { } } } - } else if (fileLocation) { + } else if (fileLocation && pattern) { result = { owner: owner, applyTo: applyTo,