Skip to content

Commit cb821de

Browse files
committed
fix problem serverity match
1 parent 80f9e17 commit cb821de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ProblemMatcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ function parseLogLines(file: File): string[] {
4848

4949
function toVscServerity(str_: string): vscode.DiagnosticSeverity {
5050
const str = str_.toLowerCase();
51-
if (str.startsWith('err') || str.startsWith('fatal')) {
51+
if (str.startsWith('err') || str.startsWith('fatal') || str.includes('error')) {
5252
return vscode.DiagnosticSeverity.Error;
53-
} else if (str.startsWith('warn')) {
53+
} else if (str.startsWith('warn') || str.includes('warning')) {
5454
return vscode.DiagnosticSeverity.Warning;
5555
} else {
5656
return vscode.DiagnosticSeverity.Information;

0 commit comments

Comments
 (0)