提交 935d366c 编写于 作者: D Dirk Baeumer

Fixes 61513: Regression: problem matcher in extension not showing up

上级 4f85aa2b
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册