You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.error(localize('ProblemPatternParser.problemPattern.kindProperty.notFirst','The problem pattern is invalid. The kind property must be provided only in the first element'));
@@ -814,8 +862,12 @@ class ProblemPatternParser extends Parser {
814
862
this.error(localize('ProblemPatternParser.problemPattern.missingRegExp','The problem pattern is missing a regular expression.'));
815
863
returnfalse;
816
864
}
817
-
if(!(file&&message&&(location||line))){
818
-
this.error(localize('ProblemPatternParser.problemPattern.missingProperty','The problem pattern is invalid. It must have at least a file, message and line or location match group.'));
865
+
if(!(file&&message)){
866
+
this.error(localize('ProblemPatternParser.problemPattern.missingProperty','The problem pattern is invalid. It must have at least have a file and a message.'));
this.error(localize('ProblemPatternParser.problemPattern.missingLocation','The problem pattern is invalid. It must either have kind: "file" or have a line or location match group.'));
819
871
returnfalse;
820
872
}
821
873
returntrue;
@@ -880,6 +932,10 @@ export namespace Schemas {
880
932
type: 'string',
881
933
description: localize('ProblemPatternSchema.regexp','The regular expression to find an error, warning or info in the output.')
882
934
},
935
+
kind: {
936
+
type: 'string',
937
+
description: localize('ProblemPatternSchema.kind','whether the pattern matches a location (file and line) or only a file.')
938
+
},
883
939
file: {
884
940
type: 'integer',
885
941
description: localize('ProblemPatternSchema.file','The match group index of the filename. If omitted 1 is used.')
@@ -931,7 +987,7 @@ export namespace Schemas {
931
987
};
932
988
933
989
934
-
exportconstMultLileProblemPattern: IJSONSchema={
990
+
exportconstMultiLineProblemPattern: IJSONSchema={
935
991
type: 'array',
936
992
items: ProblemPattern
937
993
};
@@ -1030,6 +1086,7 @@ class ProblemPatternRegistryImpl implements IProblemPatternRegistry {
description: localize('PatternTypeSchema.name','The name of a contributed or predefined pattern')
1374
1441
},
1375
1442
Schemas.ProblemPattern,
1376
-
Schemas.MultLileProblemPattern
1443
+
Schemas.MultiLineProblemPattern
1377
1444
],
1378
1445
description: localize('PatternTypeSchema.description','A problem pattern or the name of a contributed or predefined problem pattern. Can be omitted if base is specified.')
0 commit comments