@codingame/monaco-vscode-task-service-override 29.1.0 → 30.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +111 -111
- package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +7 -7
- package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +47 -47
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +17 -17
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +10 -10
- package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +27 -15
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +41 -41
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +8 -8
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +83 -83
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +5 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +70 -70
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +16 -16
- package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +4 -4
|
@@ -532,7 +532,7 @@ class ProblemPatternParser extends Parser {
|
|
|
532
532
|
} else if (Config.CheckedProblemPattern.is(value)) {
|
|
533
533
|
return this.createSingleProblemPattern(value);
|
|
534
534
|
} else {
|
|
535
|
-
this.error(( localize(
|
|
535
|
+
this.error(( localize(13224, "The problem pattern is missing a regular expression.")));
|
|
536
536
|
return null;
|
|
537
537
|
}
|
|
538
538
|
}
|
|
@@ -567,14 +567,14 @@ class ProblemPatternParser extends Parser {
|
|
|
567
567
|
if (i < values.length - 1) {
|
|
568
568
|
if (!isUndefined(pattern.loop) && pattern.loop) {
|
|
569
569
|
pattern.loop = false;
|
|
570
|
-
this.error(( localize(
|
|
570
|
+
this.error(( localize(13225, "The loop property is only supported on the last line matcher.")));
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
result.push(pattern);
|
|
574
574
|
}
|
|
575
575
|
if (!result || result.length === 0) {
|
|
576
576
|
this.error(( localize(
|
|
577
|
-
|
|
577
|
+
13226,
|
|
578
578
|
"The problem pattern is invalid. It must contain at least one pattern."
|
|
579
579
|
)));
|
|
580
580
|
return null;
|
|
@@ -635,7 +635,7 @@ class ProblemPatternParser extends Parser {
|
|
|
635
635
|
validateProblemPattern(values) {
|
|
636
636
|
if (!values || values.length === 0) {
|
|
637
637
|
this.error(( localize(
|
|
638
|
-
|
|
638
|
+
13226,
|
|
639
639
|
"The problem pattern is invalid. It must contain at least one pattern."
|
|
640
640
|
)));
|
|
641
641
|
return false;
|
|
@@ -645,7 +645,7 @@ class ProblemPatternParser extends Parser {
|
|
|
645
645
|
values.forEach((pattern, i) => {
|
|
646
646
|
if (i !== 0 && pattern.kind) {
|
|
647
647
|
this.error(( localize(
|
|
648
|
-
|
|
648
|
+
13227,
|
|
649
649
|
"The problem pattern is invalid. The kind property must be provided only in the first element"
|
|
650
650
|
)));
|
|
651
651
|
}
|
|
@@ -656,14 +656,14 @@ class ProblemPatternParser extends Parser {
|
|
|
656
656
|
});
|
|
657
657
|
if (!(file && message)) {
|
|
658
658
|
this.error(( localize(
|
|
659
|
-
|
|
659
|
+
13228,
|
|
660
660
|
"The problem pattern is invalid. It must have at least have a file and a message."
|
|
661
661
|
)));
|
|
662
662
|
return false;
|
|
663
663
|
}
|
|
664
664
|
if (locationKind === ProblemLocationKind.Location && !(location || line)) {
|
|
665
665
|
this.error(( localize(
|
|
666
|
-
|
|
666
|
+
13229,
|
|
667
667
|
"The problem pattern is invalid. It must either have kind: \"file\" or have a line or location match group."
|
|
668
668
|
)));
|
|
669
669
|
return false;
|
|
@@ -675,7 +675,7 @@ class ProblemPatternParser extends Parser {
|
|
|
675
675
|
try {
|
|
676
676
|
result = ( new RegExp(value));
|
|
677
677
|
} catch (err) {
|
|
678
|
-
this.error(( localize(
|
|
678
|
+
this.error(( localize(13230, "Error: The string {0} is not a valid regular expression.\n", value)));
|
|
679
679
|
}
|
|
680
680
|
return result;
|
|
681
681
|
}
|
|
@@ -723,78 +723,78 @@ var Schemas;
|
|
|
723
723
|
regexp: {
|
|
724
724
|
type: "string",
|
|
725
725
|
description: ( localize(
|
|
726
|
-
|
|
726
|
+
13231,
|
|
727
727
|
"The regular expression to find an error, warning or info in the output."
|
|
728
728
|
))
|
|
729
729
|
},
|
|
730
730
|
kind: {
|
|
731
731
|
type: "string",
|
|
732
732
|
description: ( localize(
|
|
733
|
-
|
|
733
|
+
13232,
|
|
734
734
|
"whether the pattern matches a location (file and line) or only a file."
|
|
735
735
|
))
|
|
736
736
|
},
|
|
737
737
|
file: {
|
|
738
738
|
type: "integer",
|
|
739
|
-
description: ( localize(
|
|
739
|
+
description: ( localize(13233, "The match group index of the filename. If omitted 1 is used."))
|
|
740
740
|
},
|
|
741
741
|
location: {
|
|
742
742
|
type: "integer",
|
|
743
743
|
description: ( localize(
|
|
744
|
-
|
|
744
|
+
13234,
|
|
745
745
|
"The match group index of the problem's location. Valid location patterns are: (line), (line,column) and (startLine,startColumn,endLine,endColumn). If omitted (line,column) is assumed."
|
|
746
746
|
))
|
|
747
747
|
},
|
|
748
748
|
line: {
|
|
749
749
|
type: "integer",
|
|
750
|
-
description: ( localize(
|
|
750
|
+
description: ( localize(13235, "The match group index of the problem's line. Defaults to 2"))
|
|
751
751
|
},
|
|
752
752
|
column: {
|
|
753
753
|
type: "integer",
|
|
754
754
|
description: ( localize(
|
|
755
|
-
|
|
755
|
+
13236,
|
|
756
756
|
"The match group index of the problem's line character. Defaults to 3"
|
|
757
757
|
))
|
|
758
758
|
},
|
|
759
759
|
endLine: {
|
|
760
760
|
type: "integer",
|
|
761
761
|
description: ( localize(
|
|
762
|
-
|
|
762
|
+
13237,
|
|
763
763
|
"The match group index of the problem's end line. Defaults to undefined"
|
|
764
764
|
))
|
|
765
765
|
},
|
|
766
766
|
endColumn: {
|
|
767
767
|
type: "integer",
|
|
768
768
|
description: ( localize(
|
|
769
|
-
|
|
769
|
+
13238,
|
|
770
770
|
"The match group index of the problem's end line character. Defaults to undefined"
|
|
771
771
|
))
|
|
772
772
|
},
|
|
773
773
|
severity: {
|
|
774
774
|
type: "integer",
|
|
775
775
|
description: ( localize(
|
|
776
|
-
|
|
776
|
+
13239,
|
|
777
777
|
"The match group index of the problem's severity. Defaults to undefined"
|
|
778
778
|
))
|
|
779
779
|
},
|
|
780
780
|
code: {
|
|
781
781
|
type: "integer",
|
|
782
782
|
description: ( localize(
|
|
783
|
-
|
|
783
|
+
13240,
|
|
784
784
|
"The match group index of the problem's code. Defaults to undefined"
|
|
785
785
|
))
|
|
786
786
|
},
|
|
787
787
|
message: {
|
|
788
788
|
type: "integer",
|
|
789
789
|
description: ( localize(
|
|
790
|
-
|
|
790
|
+
13241,
|
|
791
791
|
"The match group index of the message. If omitted it defaults to 4 if location is specified. Otherwise it defaults to 5."
|
|
792
792
|
))
|
|
793
793
|
},
|
|
794
794
|
loop: {
|
|
795
795
|
type: "boolean",
|
|
796
796
|
description: ( localize(
|
|
797
|
-
|
|
797
|
+
13242,
|
|
798
798
|
"In a multi line matcher loop indicated whether this pattern is executed in a loop as long as it matches. Can only specified on a last pattern in a multi line pattern."
|
|
799
799
|
))
|
|
800
800
|
}
|
|
@@ -804,7 +804,7 @@ var Schemas;
|
|
|
804
804
|
Schemas.NamedProblemPattern.properties = deepClone(Schemas.NamedProblemPattern.properties) || {};
|
|
805
805
|
Schemas.NamedProblemPattern.properties["name"] = {
|
|
806
806
|
type: "string",
|
|
807
|
-
description: ( localize(
|
|
807
|
+
description: ( localize(13243, "The name of the problem pattern."))
|
|
808
808
|
};
|
|
809
809
|
Schemas.MultiLineProblemPattern = {
|
|
810
810
|
type: "array",
|
|
@@ -816,11 +816,11 @@ var Schemas;
|
|
|
816
816
|
properties: {
|
|
817
817
|
name: {
|
|
818
818
|
type: "string",
|
|
819
|
-
description: ( localize(
|
|
819
|
+
description: ( localize(13244, "The name of the problem multi line problem pattern."))
|
|
820
820
|
},
|
|
821
821
|
patterns: {
|
|
822
822
|
type: "array",
|
|
823
|
-
description: ( localize(
|
|
823
|
+
description: ( localize(13245, "The actual patterns.")),
|
|
824
824
|
items: Schemas.ProblemPattern
|
|
825
825
|
}
|
|
826
826
|
}
|
|
@@ -832,23 +832,23 @@ var Schemas;
|
|
|
832
832
|
regexp: {
|
|
833
833
|
type: "string",
|
|
834
834
|
description: ( localize(
|
|
835
|
-
|
|
835
|
+
13246,
|
|
836
836
|
"The regular expression to detect the begin or end of a background task."
|
|
837
837
|
))
|
|
838
838
|
},
|
|
839
839
|
file: {
|
|
840
840
|
type: "integer",
|
|
841
|
-
description: ( localize(
|
|
841
|
+
description: ( localize(13247, "The match group index of the filename. Can be omitted."))
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
};
|
|
845
845
|
Schemas.PatternType = {
|
|
846
846
|
anyOf: [{
|
|
847
847
|
type: "string",
|
|
848
|
-
description: ( localize(
|
|
848
|
+
description: ( localize(13248, "The name of a contributed or predefined pattern"))
|
|
849
849
|
}, Schemas.ProblemPattern, Schemas.MultiLineProblemPattern],
|
|
850
850
|
description: ( localize(
|
|
851
|
-
|
|
851
|
+
13249,
|
|
852
852
|
"A problem pattern or the name of a contributed or predefined problem pattern. Can be omitted if base is specified."
|
|
853
853
|
))
|
|
854
854
|
};
|
|
@@ -858,19 +858,19 @@ var Schemas;
|
|
|
858
858
|
properties: {
|
|
859
859
|
base: {
|
|
860
860
|
type: "string",
|
|
861
|
-
description: ( localize(
|
|
861
|
+
description: ( localize(13250, "The name of a base problem matcher to use."))
|
|
862
862
|
},
|
|
863
863
|
owner: {
|
|
864
864
|
type: "string",
|
|
865
865
|
description: ( localize(
|
|
866
|
-
|
|
866
|
+
13251,
|
|
867
867
|
"The owner of the problem inside Code. Can be omitted if base is specified. Defaults to 'external' if omitted and base is not specified."
|
|
868
868
|
))
|
|
869
869
|
},
|
|
870
870
|
source: {
|
|
871
871
|
type: "string",
|
|
872
872
|
description: ( localize(
|
|
873
|
-
|
|
873
|
+
13252,
|
|
874
874
|
"A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'."
|
|
875
875
|
))
|
|
876
876
|
},
|
|
@@ -878,7 +878,7 @@ var Schemas;
|
|
|
878
878
|
type: "string",
|
|
879
879
|
enum: ["error", "warning", "info"],
|
|
880
880
|
description: ( localize(
|
|
881
|
-
|
|
881
|
+
13253,
|
|
882
882
|
"The default severity for captures problems. Is used if the pattern doesn't define a match group for severity."
|
|
883
883
|
))
|
|
884
884
|
},
|
|
@@ -886,7 +886,7 @@ var Schemas;
|
|
|
886
886
|
type: "string",
|
|
887
887
|
enum: ["allDocuments", "openDocuments", "closedDocuments"],
|
|
888
888
|
description: ( localize(
|
|
889
|
-
|
|
889
|
+
13254,
|
|
890
890
|
"Controls if a problem reported on a text document is applied only to open, closed or all documents."
|
|
891
891
|
))
|
|
892
892
|
},
|
|
@@ -958,7 +958,7 @@ var Schemas;
|
|
|
958
958
|
}]]
|
|
959
959
|
}],
|
|
960
960
|
description: ( localize(
|
|
961
|
-
|
|
961
|
+
13255,
|
|
962
962
|
"Defines how file names reported in a problem pattern should be interpreted. A relative fileLocation may be an array, where the second element of the array is the path of the relative file location. The search fileLocation mode, performs a deep (and, possibly, heavy) file system search within the directories specified by the include/exclude properties of the second element (or the current workspace directory if not specified)."
|
|
963
963
|
))
|
|
964
964
|
},
|
|
@@ -966,14 +966,14 @@ var Schemas;
|
|
|
966
966
|
type: "object",
|
|
967
967
|
additionalProperties: false,
|
|
968
968
|
description: ( localize(
|
|
969
|
-
|
|
969
|
+
13256,
|
|
970
970
|
"Patterns to track the begin and end of a matcher active on a background task."
|
|
971
971
|
)),
|
|
972
972
|
properties: {
|
|
973
973
|
activeOnStart: {
|
|
974
974
|
type: "boolean",
|
|
975
975
|
description: ( localize(
|
|
976
|
-
|
|
976
|
+
13257,
|
|
977
977
|
"If set to true the background monitor starts in active mode. This is the same as outputting a line that matches beginsPattern when the task starts."
|
|
978
978
|
))
|
|
979
979
|
},
|
|
@@ -982,7 +982,7 @@ var Schemas;
|
|
|
982
982
|
type: "string"
|
|
983
983
|
}, Schemas.WatchingPattern],
|
|
984
984
|
description: ( localize(
|
|
985
|
-
|
|
985
|
+
13258,
|
|
986
986
|
"If matched in the output the start of a background task is signaled."
|
|
987
987
|
))
|
|
988
988
|
},
|
|
@@ -991,7 +991,7 @@ var Schemas;
|
|
|
991
991
|
type: "string"
|
|
992
992
|
}, Schemas.WatchingPattern],
|
|
993
993
|
description: ( localize(
|
|
994
|
-
|
|
994
|
+
13259,
|
|
995
995
|
"If matched in the output the end of a background task is signaled."
|
|
996
996
|
))
|
|
997
997
|
}
|
|
@@ -1000,13 +1000,13 @@ var Schemas;
|
|
|
1000
1000
|
watching: {
|
|
1001
1001
|
type: "object",
|
|
1002
1002
|
additionalProperties: false,
|
|
1003
|
-
deprecationMessage: ( localize(
|
|
1004
|
-
description: ( localize(
|
|
1003
|
+
deprecationMessage: ( localize(13260, "The watching property is deprecated. Use background instead.")),
|
|
1004
|
+
description: ( localize(13261, "Patterns to track the begin and end of a watching matcher.")),
|
|
1005
1005
|
properties: {
|
|
1006
1006
|
activeOnStart: {
|
|
1007
1007
|
type: "boolean",
|
|
1008
1008
|
description: ( localize(
|
|
1009
|
-
|
|
1009
|
+
13262,
|
|
1010
1010
|
"If set to true the watcher starts in active mode. This is the same as outputting a line that matches beginsPattern when the task starts."
|
|
1011
1011
|
))
|
|
1012
1012
|
},
|
|
@@ -1015,7 +1015,7 @@ var Schemas;
|
|
|
1015
1015
|
type: "string"
|
|
1016
1016
|
}, Schemas.WatchingPattern],
|
|
1017
1017
|
description: ( localize(
|
|
1018
|
-
|
|
1018
|
+
13263,
|
|
1019
1019
|
"If matched in the output the start of a watching task is signaled."
|
|
1020
1020
|
))
|
|
1021
1021
|
},
|
|
@@ -1023,7 +1023,7 @@ var Schemas;
|
|
|
1023
1023
|
oneOf: [{
|
|
1024
1024
|
type: "string"
|
|
1025
1025
|
}, Schemas.WatchingPattern],
|
|
1026
|
-
description: ( localize(
|
|
1026
|
+
description: ( localize(13264, "If matched in the output the end of a watching task is signaled."))
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
@@ -1033,17 +1033,17 @@ var Schemas;
|
|
|
1033
1033
|
Schemas.LegacyProblemMatcher.properties = deepClone(Schemas.LegacyProblemMatcher.properties) || {};
|
|
1034
1034
|
Schemas.LegacyProblemMatcher.properties["watchedTaskBeginsRegExp"] = {
|
|
1035
1035
|
type: "string",
|
|
1036
|
-
deprecationMessage: ( localize(
|
|
1036
|
+
deprecationMessage: ( localize(13265, "This property is deprecated. Use the watching property instead.")),
|
|
1037
1037
|
description: ( localize(
|
|
1038
|
-
|
|
1038
|
+
13266,
|
|
1039
1039
|
"A regular expression signaling that a watched tasks begins executing triggered through file watching."
|
|
1040
1040
|
))
|
|
1041
1041
|
};
|
|
1042
1042
|
Schemas.LegacyProblemMatcher.properties["watchedTaskEndsRegExp"] = {
|
|
1043
1043
|
type: "string",
|
|
1044
|
-
deprecationMessage: ( localize(
|
|
1044
|
+
deprecationMessage: ( localize(13267, "This property is deprecated. Use the watching property instead.")),
|
|
1045
1045
|
description: ( localize(
|
|
1046
|
-
|
|
1046
|
+
13268,
|
|
1047
1047
|
"A regular expression signaling that a watched tasks ends executing."
|
|
1048
1048
|
))
|
|
1049
1049
|
};
|
|
@@ -1051,17 +1051,17 @@ var Schemas;
|
|
|
1051
1051
|
Schemas.NamedProblemMatcher.properties = deepClone(Schemas.NamedProblemMatcher.properties) || {};
|
|
1052
1052
|
Schemas.NamedProblemMatcher.properties.name = {
|
|
1053
1053
|
type: "string",
|
|
1054
|
-
description: ( localize(
|
|
1054
|
+
description: ( localize(13269, "The name of the problem matcher used to refer to it."))
|
|
1055
1055
|
};
|
|
1056
1056
|
Schemas.NamedProblemMatcher.properties.label = {
|
|
1057
1057
|
type: "string",
|
|
1058
|
-
description: ( localize(
|
|
1058
|
+
description: ( localize(13270, "A human readable label of the problem matcher."))
|
|
1059
1059
|
};
|
|
1060
1060
|
})(Schemas || (Schemas = {}));
|
|
1061
1061
|
const problemPatternExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
1062
1062
|
extensionPoint: "problemPatterns",
|
|
1063
1063
|
jsonSchema: {
|
|
1064
|
-
description: ( localize(
|
|
1064
|
+
description: ( localize(13271, "Contributes problem patterns")),
|
|
1065
1065
|
type: "array",
|
|
1066
1066
|
items: {
|
|
1067
1067
|
anyOf: [Schemas.NamedProblemPattern, Schemas.NamedMultiLineProblemPattern]
|
|
@@ -1092,7 +1092,7 @@ class ProblemPatternRegistryImpl {
|
|
|
1092
1092
|
if (parser.problemReporter.status.state < ValidationState.Error) {
|
|
1093
1093
|
this.add(result.name, result.patterns);
|
|
1094
1094
|
} else {
|
|
1095
|
-
extension.collector.error(( localize(
|
|
1095
|
+
extension.collector.error(( localize(13272, "Invalid problem pattern. The pattern will be ignored.")));
|
|
1096
1096
|
extension.collector.error(JSON.stringify(pattern, undefined, 4));
|
|
1097
1097
|
}
|
|
1098
1098
|
} else if (Config.NamedProblemPattern.is(pattern)) {
|
|
@@ -1100,7 +1100,7 @@ class ProblemPatternRegistryImpl {
|
|
|
1100
1100
|
if (parser.problemReporter.status.state < ValidationState.Error) {
|
|
1101
1101
|
this.add(pattern.name, result);
|
|
1102
1102
|
} else {
|
|
1103
|
-
extension.collector.error(( localize(
|
|
1103
|
+
extension.collector.error(( localize(13272, "Invalid problem pattern. The pattern will be ignored.")));
|
|
1104
1104
|
extension.collector.error(JSON.stringify(pattern, undefined, 4));
|
|
1105
1105
|
}
|
|
1106
1106
|
}
|
|
@@ -1245,7 +1245,7 @@ class ProblemMatcherParser extends Parser {
|
|
|
1245
1245
|
checkProblemMatcherValid(externalProblemMatcher, problemMatcher) {
|
|
1246
1246
|
if (!problemMatcher) {
|
|
1247
1247
|
this.error(( localize(
|
|
1248
|
-
|
|
1248
|
+
13273,
|
|
1249
1249
|
"Error: the description can't be converted into a problem matcher:\n{0}\n",
|
|
1250
1250
|
JSON.stringify(externalProblemMatcher, null, 4)
|
|
1251
1251
|
)));
|
|
@@ -1253,7 +1253,7 @@ class ProblemMatcherParser extends Parser {
|
|
|
1253
1253
|
}
|
|
1254
1254
|
if (!problemMatcher.pattern) {
|
|
1255
1255
|
this.error(( localize(
|
|
1256
|
-
|
|
1256
|
+
13274,
|
|
1257
1257
|
"Error: the description doesn't define a valid problem pattern:\n{0}\n",
|
|
1258
1258
|
JSON.stringify(externalProblemMatcher, null, 4)
|
|
1259
1259
|
)));
|
|
@@ -1261,7 +1261,7 @@ class ProblemMatcherParser extends Parser {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
if (!problemMatcher.owner) {
|
|
1263
1263
|
this.error(( localize(
|
|
1264
|
-
|
|
1264
|
+
13275,
|
|
1265
1265
|
"Error: the description doesn't define an owner:\n{0}\n",
|
|
1266
1266
|
JSON.stringify(externalProblemMatcher, null, 4)
|
|
1267
1267
|
)));
|
|
@@ -1269,7 +1269,7 @@ class ProblemMatcherParser extends Parser {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
if (isUndefined(problemMatcher.fileLocation)) {
|
|
1271
1271
|
this.error(( localize(
|
|
1272
|
-
|
|
1272
|
+
13276,
|
|
1273
1273
|
"Error: the description doesn't define a file location:\n{0}\n",
|
|
1274
1274
|
JSON.stringify(externalProblemMatcher, null, 4)
|
|
1275
1275
|
)));
|
|
@@ -1327,7 +1327,7 @@ class ProblemMatcherParser extends Parser {
|
|
|
1327
1327
|
let severity = description.severity ? Severity.fromValue(description.severity) : undefined;
|
|
1328
1328
|
if (severity === Severity.Ignore) {
|
|
1329
1329
|
this.info(( localize(
|
|
1330
|
-
|
|
1330
|
+
13277,
|
|
1331
1331
|
"Info: unknown severity {0}. Valid values are error, warning and info.\n",
|
|
1332
1332
|
description.severity
|
|
1333
1333
|
)));
|
|
@@ -1390,7 +1390,7 @@ class ProblemMatcherParser extends Parser {
|
|
|
1390
1390
|
const result = ProblemPatternRegistry.get(variableName.substring(1));
|
|
1391
1391
|
if (!result) {
|
|
1392
1392
|
this.error(( localize(
|
|
1393
|
-
|
|
1393
|
+
13278,
|
|
1394
1394
|
"Error: the pattern with the identifier {0} doesn't exist.",
|
|
1395
1395
|
variableName
|
|
1396
1396
|
)));
|
|
@@ -1398,10 +1398,10 @@ class ProblemMatcherParser extends Parser {
|
|
|
1398
1398
|
return result;
|
|
1399
1399
|
} else {
|
|
1400
1400
|
if (variableName.length === 0) {
|
|
1401
|
-
this.error(( localize(
|
|
1401
|
+
this.error(( localize(13279, "Error: the pattern property refers to an empty identifier.")));
|
|
1402
1402
|
} else {
|
|
1403
1403
|
this.error(( localize(
|
|
1404
|
-
|
|
1404
|
+
13280,
|
|
1405
1405
|
"Error: the pattern property {0} is not a valid pattern variable name.",
|
|
1406
1406
|
variableName
|
|
1407
1407
|
)));
|
|
@@ -1448,7 +1448,7 @@ class ProblemMatcherParser extends Parser {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
if (begins || ends) {
|
|
1450
1450
|
this.error(( localize(
|
|
1451
|
-
|
|
1451
|
+
13281,
|
|
1452
1452
|
"A problem matcher must define both a begin pattern and an end pattern for watching."
|
|
1453
1453
|
)));
|
|
1454
1454
|
}
|
|
@@ -1486,7 +1486,7 @@ class ProblemMatcherParser extends Parser {
|
|
|
1486
1486
|
try {
|
|
1487
1487
|
result = ( new RegExp(value));
|
|
1488
1488
|
} catch (err) {
|
|
1489
|
-
this.error(( localize(
|
|
1489
|
+
this.error(( localize(13282, "Error: The string {0} is not a valid regular expression.\n", value)));
|
|
1490
1490
|
}
|
|
1491
1491
|
return result;
|
|
1492
1492
|
}
|
|
@@ -1495,7 +1495,7 @@ const problemMatchersExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
1495
1495
|
extensionPoint: "problemMatchers",
|
|
1496
1496
|
deps: [problemPatternExtPoint],
|
|
1497
1497
|
jsonSchema: {
|
|
1498
|
-
description: ( localize(
|
|
1498
|
+
description: ( localize(13283, "Contributes problem matchers")),
|
|
1499
1499
|
type: "array",
|
|
1500
1500
|
items: Schemas.NamedProblemMatcher
|
|
1501
1501
|
}
|
|
@@ -1555,7 +1555,7 @@ class ProblemMatcherRegistryImpl {
|
|
|
1555
1555
|
fillDefaults() {
|
|
1556
1556
|
this.add({
|
|
1557
1557
|
name: "msCompile",
|
|
1558
|
-
label: ( localize(
|
|
1558
|
+
label: ( localize(13284, "Microsoft compiler problems")),
|
|
1559
1559
|
owner: "msCompile",
|
|
1560
1560
|
source: "cpp",
|
|
1561
1561
|
applyTo: ApplyToKind.allDocuments,
|
|
@@ -1564,7 +1564,7 @@ class ProblemMatcherRegistryImpl {
|
|
|
1564
1564
|
});
|
|
1565
1565
|
this.add({
|
|
1566
1566
|
name: "lessCompile",
|
|
1567
|
-
label: ( localize(
|
|
1567
|
+
label: ( localize(13285, "Less problems")),
|
|
1568
1568
|
deprecated: true,
|
|
1569
1569
|
owner: "lessCompile",
|
|
1570
1570
|
source: "less",
|
|
@@ -1575,7 +1575,7 @@ class ProblemMatcherRegistryImpl {
|
|
|
1575
1575
|
});
|
|
1576
1576
|
this.add({
|
|
1577
1577
|
name: "gulp-tsc",
|
|
1578
|
-
label: ( localize(
|
|
1578
|
+
label: ( localize(13286, "Gulp TSC Problems")),
|
|
1579
1579
|
owner: "typescript",
|
|
1580
1580
|
source: "ts",
|
|
1581
1581
|
applyTo: ApplyToKind.closedDocuments,
|
|
@@ -1585,7 +1585,7 @@ class ProblemMatcherRegistryImpl {
|
|
|
1585
1585
|
});
|
|
1586
1586
|
this.add({
|
|
1587
1587
|
name: "jshint",
|
|
1588
|
-
label: ( localize(
|
|
1588
|
+
label: ( localize(13287, "JSHint problems")),
|
|
1589
1589
|
owner: "jshint",
|
|
1590
1590
|
source: "jshint",
|
|
1591
1591
|
applyTo: ApplyToKind.allDocuments,
|
|
@@ -1594,7 +1594,7 @@ class ProblemMatcherRegistryImpl {
|
|
|
1594
1594
|
});
|
|
1595
1595
|
this.add({
|
|
1596
1596
|
name: "jshint-stylish",
|
|
1597
|
-
label: ( localize(
|
|
1597
|
+
label: ( localize(13288, "JSHint stylish problems")),
|
|
1598
1598
|
owner: "jshint",
|
|
1599
1599
|
source: "jshint",
|
|
1600
1600
|
applyTo: ApplyToKind.allDocuments,
|
|
@@ -1603,7 +1603,7 @@ class ProblemMatcherRegistryImpl {
|
|
|
1603
1603
|
});
|
|
1604
1604
|
this.add({
|
|
1605
1605
|
name: "eslint-compact",
|
|
1606
|
-
label: ( localize(
|
|
1606
|
+
label: ( localize(13289, "ESLint compact problems")),
|
|
1607
1607
|
owner: "eslint",
|
|
1608
1608
|
source: "eslint",
|
|
1609
1609
|
applyTo: ApplyToKind.allDocuments,
|
|
@@ -1613,7 +1613,7 @@ class ProblemMatcherRegistryImpl {
|
|
|
1613
1613
|
});
|
|
1614
1614
|
this.add({
|
|
1615
1615
|
name: "eslint-stylish",
|
|
1616
|
-
label: ( localize(
|
|
1616
|
+
label: ( localize(13290, "ESLint stylish problems")),
|
|
1617
1617
|
owner: "eslint",
|
|
1618
1618
|
source: "eslint",
|
|
1619
1619
|
applyTo: ApplyToKind.allDocuments,
|
|
@@ -1622,7 +1622,7 @@ class ProblemMatcherRegistryImpl {
|
|
|
1622
1622
|
});
|
|
1623
1623
|
this.add({
|
|
1624
1624
|
name: "go",
|
|
1625
|
-
label: ( localize(
|
|
1625
|
+
label: ( localize(13291, "Go problems")),
|
|
1626
1626
|
owner: "go",
|
|
1627
1627
|
source: "go",
|
|
1628
1628
|
applyTo: ApplyToKind.allDocuments,
|