Skip to content

Commit

Permalink
Fixes Parsing errors not showing in Problems tab when running "lint w…
Browse files Browse the repository at this point in the history
…hole folder" task (eslint #436)
  • Loading branch information
dbaeumer committed May 11, 2018
1 parent c97cd48 commit 08169a4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/vs/workbench/parts/tasks/common/problemMatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,12 @@ abstract class AbstractLineMatcher implements ILineMatcher {
private fillProperty(data: ProblemData, property: keyof ProblemData, pattern: ProblemPattern, matches: RegExpExecArray, trim: boolean = false): void {
if (Types.isUndefined(data[property]) && !Types.isUndefined(pattern[property]) && pattern[property] < matches.length) {
let value = matches[pattern[property]];
if (trim) {
value = Strings.trim(value);
if (value !== void 0) {
if (trim) {
value = Strings.trim(value);
}
data[property] = value;
}
data[property] = value;
}
}

Expand Down Expand Up @@ -1191,7 +1193,7 @@ class ProblemPatternRegistryImpl implements IProblemPatternRegistry {
file: 1
},
{
regexp: /^\s+(\d+):(\d+)\s+(error|warning|info)\s+(.+?)\s\s+(.*)$/,
regexp: /^\s+(\d+):(\d+)\s+(error|warning|info)\s+(.+?)(?:\s\s+(.*))?$/,
line: 1,
character: 2,
severity: 3,
Expand Down

0 comments on commit 08169a4

Please sign in to comment.