@codingame/monaco-vscode-task-service-override 30.0.1 → 31.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.js +15 -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 +87 -87
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +70 -70
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +20 -20
- package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +4 -4
|
@@ -307,7 +307,7 @@ var CommandOptions;
|
|
|
307
307
|
result.cwd = options.cwd;
|
|
308
308
|
} else {
|
|
309
309
|
context.taskLoadIssues.push(( localize(
|
|
310
|
-
|
|
310
|
+
13426,
|
|
311
311
|
"Warning: options.cwd must be of type string. Ignoring value {0}\n",
|
|
312
312
|
options.cwd
|
|
313
313
|
)));
|
|
@@ -574,7 +574,7 @@ var CommandConfiguration;
|
|
|
574
574
|
result.args.push(converted);
|
|
575
575
|
} else {
|
|
576
576
|
context.taskLoadIssues.push(( localize(
|
|
577
|
-
|
|
577
|
+
13427,
|
|
578
578
|
"Error: command argument must either be a string or a quoted string. Provided value is:\n{0}",
|
|
579
579
|
arg ? JSON.stringify(arg, undefined, 4) : "undefined"
|
|
580
580
|
)));
|
|
@@ -587,7 +587,7 @@ var CommandConfiguration;
|
|
|
587
587
|
result.options.shell = ShellConfiguration.from(config.isShellCommand, context);
|
|
588
588
|
if (context.engine !== ExecutionEngine$1.Terminal) {
|
|
589
589
|
context.taskLoadIssues.push(( localize(
|
|
590
|
-
|
|
590
|
+
13428,
|
|
591
591
|
"Warning: shell configuration is only supported when executing tasks in the terminal."
|
|
592
592
|
)));
|
|
593
593
|
}
|
|
@@ -705,7 +705,7 @@ var ProblemMatcherConverter;
|
|
|
705
705
|
result[namedProblemMatcher.name] = namedProblemMatcher;
|
|
706
706
|
} else {
|
|
707
707
|
context.problemReporter.error(( localize(
|
|
708
|
-
|
|
708
|
+
13429,
|
|
709
709
|
"Error: Problem Matcher in declare scope must have a name:\n{0}\n",
|
|
710
710
|
JSON.stringify(value, undefined, 4)
|
|
711
711
|
)));
|
|
@@ -748,7 +748,7 @@ var ProblemMatcherConverter;
|
|
|
748
748
|
const kind = getProblemMatcherKind(config);
|
|
749
749
|
if (kind === ProblemMatcherKind.Unknown) {
|
|
750
750
|
const error = ( localize(
|
|
751
|
-
|
|
751
|
+
13430,
|
|
752
752
|
"Warning: the defined problem matcher is unknown. Supported types are string | ProblemMatcher | Array<string | ProblemMatcher>.\n{0}\n",
|
|
753
753
|
JSON.stringify(config, null, 4)
|
|
754
754
|
));
|
|
@@ -799,7 +799,7 @@ var ProblemMatcherConverter;
|
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
801
|
return {
|
|
802
|
-
errors: [( localize(
|
|
802
|
+
errors: [( localize(13431, "Error: Invalid problemMatcher reference: {0}\n", value))]
|
|
803
803
|
};
|
|
804
804
|
} else {
|
|
805
805
|
const json = value;
|
|
@@ -911,7 +911,7 @@ var ConfigurationProperties;
|
|
|
911
911
|
}, {
|
|
912
912
|
property: "hide"
|
|
913
913
|
}, {
|
|
914
|
-
property: "
|
|
914
|
+
property: "inAgents"
|
|
915
915
|
}];
|
|
916
916
|
function from(external, context, includeCommandOptions, source, properties) {
|
|
917
917
|
if (!external) {
|
|
@@ -936,7 +936,7 @@ var ConfigurationProperties;
|
|
|
936
936
|
}
|
|
937
937
|
result.icon = external.icon;
|
|
938
938
|
result.hide = external.hide;
|
|
939
|
-
result.
|
|
939
|
+
result.inAgents = external.inAgents;
|
|
940
940
|
if (external.isBackground !== undefined) {
|
|
941
941
|
result.isBackground = !!external.isBackground;
|
|
942
942
|
}
|
|
@@ -999,7 +999,7 @@ var ConfiguringTask;
|
|
|
999
999
|
const customize = external.customize;
|
|
1000
1000
|
if (!type && !customize) {
|
|
1001
1001
|
context.problemReporter.error(( localize(
|
|
1002
|
-
|
|
1002
|
+
13432,
|
|
1003
1003
|
"Error: tasks configuration must have a type property. The configuration will be ignored.\n{0}\n",
|
|
1004
1004
|
JSON.stringify(external, null, 4)
|
|
1005
1005
|
)));
|
|
@@ -1008,7 +1008,7 @@ var ConfiguringTask;
|
|
|
1008
1008
|
const typeDeclaration = type ? registry?.get?.(type) || TaskDefinitionRegistry.get(type) : undefined;
|
|
1009
1009
|
if (!typeDeclaration) {
|
|
1010
1010
|
const message = ( localize(
|
|
1011
|
-
|
|
1011
|
+
13433,
|
|
1012
1012
|
"Error: there is no registered task type '{0}'. Did you miss installing an extension that provides a corresponding task provider?",
|
|
1013
1013
|
type
|
|
1014
1014
|
));
|
|
@@ -1050,7 +1050,7 @@ var ConfiguringTask;
|
|
|
1050
1050
|
}
|
|
1051
1051
|
if (identifier === undefined) {
|
|
1052
1052
|
context.problemReporter.error(( localize(
|
|
1053
|
-
|
|
1053
|
+
13434,
|
|
1054
1054
|
"Error: the task configuration '{0}' is missing the required property 'type'. The task configuration will be ignored.",
|
|
1055
1055
|
JSON.stringify(external, undefined, 0)
|
|
1056
1056
|
)));
|
|
@@ -1059,7 +1059,7 @@ var ConfiguringTask;
|
|
|
1059
1059
|
const taskIdentifier = TaskDefinition.createTaskIdentifier(identifier, context.problemReporter);
|
|
1060
1060
|
if (taskIdentifier === undefined) {
|
|
1061
1061
|
context.problemReporter.error(( localize(
|
|
1062
|
-
|
|
1062
|
+
13435,
|
|
1063
1063
|
"Error: the task configuration '{0}' is using an unknown type. The task configuration will be ignored.",
|
|
1064
1064
|
JSON.stringify(external, undefined, 0)
|
|
1065
1065
|
)));
|
|
@@ -1110,7 +1110,7 @@ var ConfiguringTask;
|
|
|
1110
1110
|
RunOptions.fromConfiguration(external.runOptions),
|
|
1111
1111
|
{
|
|
1112
1112
|
hide: external.hide,
|
|
1113
|
-
|
|
1113
|
+
inAgents: external.inAgents
|
|
1114
1114
|
}
|
|
1115
1115
|
);
|
|
1116
1116
|
const configuration = ConfigurationProperties.from(external, context, true, source, typeDeclaration.properties);
|
|
@@ -1152,7 +1152,7 @@ var CustomTask;
|
|
|
1152
1152
|
}
|
|
1153
1153
|
if (type !== CUSTOMIZED_TASK_TYPE && type !== "shell" && type !== "process") {
|
|
1154
1154
|
context.problemReporter.error(( localize(
|
|
1155
|
-
|
|
1155
|
+
13436,
|
|
1156
1156
|
"Error: tasks is not declared as a custom task. The configuration will be ignored.\n{0}\n",
|
|
1157
1157
|
JSON.stringify(external, null, 4)
|
|
1158
1158
|
)));
|
|
@@ -1164,7 +1164,7 @@ var CustomTask;
|
|
|
1164
1164
|
}
|
|
1165
1165
|
if (!taskName) {
|
|
1166
1166
|
context.problemReporter.error(( localize(
|
|
1167
|
-
|
|
1167
|
+
13437,
|
|
1168
1168
|
"Error: a task must provide a label property. The task will be ignored.\n{0}\n",
|
|
1169
1169
|
JSON.stringify(external, null, 4)
|
|
1170
1170
|
)));
|
|
@@ -1291,7 +1291,7 @@ var CustomTask;
|
|
|
1291
1291
|
identifier: configuredProps.configurationProperties.identifier || contributedTask.configurationProperties.identifier,
|
|
1292
1292
|
icon: configuredProps.configurationProperties.icon,
|
|
1293
1293
|
hide: configuredProps.configurationProperties.hide,
|
|
1294
|
-
|
|
1294
|
+
inAgents: configuredProps.configurationProperties.inAgents
|
|
1295
1295
|
});
|
|
1296
1296
|
result.addTaskLoadMessages(configuredProps.taskLoadMessages);
|
|
1297
1297
|
const resultConfigProps = result.configurationProperties;
|
|
@@ -1377,7 +1377,7 @@ var TaskParser;
|
|
|
1377
1377
|
}
|
|
1378
1378
|
if (typeNotSupported) {
|
|
1379
1379
|
context.problemReporter.info(( localize(
|
|
1380
|
-
|
|
1380
|
+
13438,
|
|
1381
1381
|
"Warning: {0} tasks are unavailable in the current environment.\n",
|
|
1382
1382
|
external.type
|
|
1383
1383
|
)));
|
|
@@ -1391,7 +1391,7 @@ var TaskParser;
|
|
|
1391
1391
|
if (schema2_0_0) {
|
|
1392
1392
|
if ((customTask.command === undefined || customTask.command.name === undefined) && (customTask.configurationProperties.dependsOn === undefined || customTask.configurationProperties.dependsOn.length === 0)) {
|
|
1393
1393
|
context.problemReporter.error(( localize(
|
|
1394
|
-
|
|
1394
|
+
13439,
|
|
1395
1395
|
"Error: the task '{0}' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:\n{1}",
|
|
1396
1396
|
customTask.configurationProperties.name,
|
|
1397
1397
|
JSON.stringify(external, undefined, 4)
|
|
@@ -1401,7 +1401,7 @@ var TaskParser;
|
|
|
1401
1401
|
} else {
|
|
1402
1402
|
if (customTask.command === undefined || customTask.command.name === undefined) {
|
|
1403
1403
|
context.problemReporter.warn(( localize(
|
|
1404
|
-
|
|
1404
|
+
13440,
|
|
1405
1405
|
"Error: the task '{0}' doesn't define a command. The task will be ignored. Its definition is:\n{1}",
|
|
1406
1406
|
customTask.configurationProperties.name,
|
|
1407
1407
|
JSON.stringify(external, undefined, 4)
|
|
@@ -1707,7 +1707,7 @@ class ConfigurationParser {
|
|
|
1707
1707
|
taskContent.push(JSON.stringify(task, null, 4));
|
|
1708
1708
|
}
|
|
1709
1709
|
context.problemReporter.error(( localize(
|
|
1710
|
-
|
|
1710
|
+
13441,
|
|
1711
1711
|
"Task version 2.0.0 doesn't support global OS specific tasks. Convert them to a task with a OS specific command. Affected tasks are:\n{0}",
|
|
1712
1712
|
taskContent.join("\n")
|
|
1713
1713
|
)));
|
|
@@ -6,7 +6,7 @@ const dotnetBuild = {
|
|
|
6
6
|
label: ".NET Core",
|
|
7
7
|
sort: "NET Core",
|
|
8
8
|
autoDetect: false,
|
|
9
|
-
description: ( localize(
|
|
9
|
+
description: ( localize(13454, "Executes .NET Core build command")),
|
|
10
10
|
content: [
|
|
11
11
|
"{",
|
|
12
12
|
"\t// See https://go.microsoft.com/fwlink/?LinkId=733558",
|
|
@@ -38,7 +38,7 @@ const msbuild = {
|
|
|
38
38
|
id: "msbuild",
|
|
39
39
|
label: "MSBuild",
|
|
40
40
|
autoDetect: false,
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(13455, "Executes the build target")),
|
|
42
42
|
content: [
|
|
43
43
|
"{",
|
|
44
44
|
"\t// See https://go.microsoft.com/fwlink/?LinkId=733558",
|
|
@@ -72,7 +72,7 @@ const command = {
|
|
|
72
72
|
id: "externalCommand",
|
|
73
73
|
label: "Others",
|
|
74
74
|
autoDetect: false,
|
|
75
|
-
description: ( localize(
|
|
75
|
+
description: ( localize(13456, "Example to run an arbitrary external command")),
|
|
76
76
|
content: [
|
|
77
77
|
"{",
|
|
78
78
|
"\t// See https://go.microsoft.com/fwlink/?LinkId=733558",
|
|
@@ -93,7 +93,7 @@ const maven = {
|
|
|
93
93
|
label: "maven",
|
|
94
94
|
sort: "MVN",
|
|
95
95
|
autoDetect: false,
|
|
96
|
-
description: ( localize(
|
|
96
|
+
description: ( localize(13457, "Executes common maven commands")),
|
|
97
97
|
content: [
|
|
98
98
|
"{",
|
|
99
99
|
"\t// See https://go.microsoft.com/fwlink/?LinkId=733558",
|