@codingame/monaco-vscode-task-service-override 33.0.9 → 34.0.1
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 +37 -26
- 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/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
|
@@ -170,7 +170,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
170
170
|
this._hasReconnected = false;
|
|
171
171
|
this._terminalTabActions = [{
|
|
172
172
|
id: RerunForActiveTerminalCommandId,
|
|
173
|
-
label: ( localize(
|
|
173
|
+
label: ( localize(13852, "Rerun Task")),
|
|
174
174
|
icon: rerunTaskIcon
|
|
175
175
|
}];
|
|
176
176
|
this._taskStartTimes = ( new Map());
|
|
@@ -250,7 +250,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
250
250
|
} else {
|
|
251
251
|
this._log(( error.toString()));
|
|
252
252
|
throw ( new TaskError(Severity.Error, ( localize(
|
|
253
|
-
|
|
253
|
+
13853,
|
|
254
254
|
"A unknown error has occurred while executing a task. See task output log for details."
|
|
255
255
|
)), TaskErrors.UnknownError));
|
|
256
256
|
}
|
|
@@ -298,7 +298,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
298
298
|
});
|
|
299
299
|
const openOutput = "Show Output";
|
|
300
300
|
this._notificationService.prompt(Severity.Warning, ( localize(
|
|
301
|
-
|
|
301
|
+
13854,
|
|
302
302
|
"There are issues with task \"{0}\". See the output for more details.",
|
|
303
303
|
task._label
|
|
304
304
|
)), [{
|
|
@@ -421,19 +421,17 @@ class TerminalTaskSystem extends Disposable {
|
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
return ( new Promise((resolve, reject) => {
|
|
424
|
-
const onDisposedListener = terminal.onDisposed(terminal => {
|
|
425
|
-
this._fireTaskEvent(TaskEvent.terminated(task, terminal.instanceId, terminal.exitReason));
|
|
426
|
-
onDisposedListener.dispose();
|
|
427
|
-
});
|
|
428
424
|
const onExit = terminal.onExit(() => {
|
|
429
|
-
const
|
|
425
|
+
const terminatedTask = activeTerminal.task;
|
|
430
426
|
try {
|
|
431
427
|
onExit.dispose();
|
|
432
|
-
this._fireTaskEvent(
|
|
428
|
+
this._fireTaskEvent(
|
|
429
|
+
TaskEvent.terminated(terminatedTask, terminal.instanceId, terminal.exitReason)
|
|
430
|
+
);
|
|
433
431
|
} catch (error) {}
|
|
434
432
|
resolve({
|
|
435
433
|
success: true,
|
|
436
|
-
task:
|
|
434
|
+
task: terminatedTask
|
|
437
435
|
});
|
|
438
436
|
});
|
|
439
437
|
terminal.dispose();
|
|
@@ -466,7 +464,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
466
464
|
return Promise.all(promises);
|
|
467
465
|
}
|
|
468
466
|
_showDependencyCycleMessage(task) {
|
|
469
|
-
this._log(( localize(
|
|
467
|
+
this._log(( localize(13855, "There is a dependency cycle. See task \"{0}\".", task._label)));
|
|
470
468
|
this._showOutput();
|
|
471
469
|
}
|
|
472
470
|
_executeTask(
|
|
@@ -529,7 +527,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
529
527
|
}
|
|
530
528
|
} else {
|
|
531
529
|
this._log(( localize(
|
|
532
|
-
|
|
530
|
+
13856,
|
|
533
531
|
"Couldn't resolve dependent task '{0}' in workspace folder '{1}'",
|
|
534
532
|
isString(dependency.task) ? dependency.task : JSON.stringify(dependency.task, undefined, 0),
|
|
535
533
|
(dependency.uri.toString())
|
|
@@ -558,7 +556,9 @@ class TerminalTaskSystem extends Disposable {
|
|
|
558
556
|
};
|
|
559
557
|
});
|
|
560
558
|
}).finally(() => {
|
|
561
|
-
|
|
559
|
+
if (this._activeTasks[mapKey] === activeTask) {
|
|
560
|
+
delete this._activeTasks[mapKey];
|
|
561
|
+
}
|
|
562
562
|
});
|
|
563
563
|
const lastInstance = this._getInstances(task).pop();
|
|
564
564
|
const count = lastInstance?.count ?? {
|
|
@@ -883,7 +883,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
883
883
|
));
|
|
884
884
|
if ((problemMatchers.length > 0) && !watchingProblemMatcher.isWatching()) {
|
|
885
885
|
this._appendOutput(( localize(
|
|
886
|
-
|
|
886
|
+
13857,
|
|
887
887
|
"Task {0} is a background task but uses a problem matcher without a background pattern",
|
|
888
888
|
task._label
|
|
889
889
|
)));
|
|
@@ -966,6 +966,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
966
966
|
});
|
|
967
967
|
}
|
|
968
968
|
promise = ( new Promise((resolve, reject) => {
|
|
969
|
+
const boundTerminal = terminal;
|
|
969
970
|
const onExit = terminal.onExit(terminalLaunchResult => {
|
|
970
971
|
const exitCode = typeof terminalLaunchResult === "number" ? terminalLaunchResult : terminalLaunchResult?.code;
|
|
971
972
|
onData?.dispose();
|
|
@@ -974,7 +975,10 @@ class TerminalTaskSystem extends Disposable {
|
|
|
974
975
|
if (this._busyTasks[mapKey]) {
|
|
975
976
|
delete this._busyTasks[mapKey];
|
|
976
977
|
}
|
|
977
|
-
this.
|
|
978
|
+
const cur = this._activeTasks[key];
|
|
979
|
+
if (cur && cur.terminal === boundTerminal) {
|
|
980
|
+
this._removeFromActiveTasks(task);
|
|
981
|
+
}
|
|
978
982
|
this._fireTaskEvent(TaskEvent.changed());
|
|
979
983
|
if (terminalLaunchResult !== undefined) {
|
|
980
984
|
switch (task.command.presentation.panel) {
|
|
@@ -1087,11 +1091,15 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1087
1091
|
startStopProblemMatcher.processLine(line);
|
|
1088
1092
|
});
|
|
1089
1093
|
promise = ( new Promise((resolve, reject) => {
|
|
1094
|
+
const boundTerminal = terminal;
|
|
1090
1095
|
const onExit = terminal.onExit(terminalLaunchResult => {
|
|
1091
1096
|
const exitCode = typeof terminalLaunchResult === "number" ? terminalLaunchResult : terminalLaunchResult?.code;
|
|
1092
1097
|
onExit.dispose();
|
|
1093
1098
|
const key = task.getMapKey();
|
|
1094
|
-
this.
|
|
1099
|
+
const cur = this._activeTasks[key];
|
|
1100
|
+
if (cur && cur.terminal === boundTerminal) {
|
|
1101
|
+
this._removeFromActiveTasks(task);
|
|
1102
|
+
}
|
|
1095
1103
|
this._fireTaskEvent(TaskEvent.changed());
|
|
1096
1104
|
if (terminalLaunchResult !== undefined) {
|
|
1097
1105
|
switch (task.command.presentation.panel) {
|
|
@@ -1326,11 +1334,11 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1326
1334
|
if (task.command.presentation && task.command.presentation.echo) {
|
|
1327
1335
|
if (needsFolderQualification && workspaceFolder) {
|
|
1328
1336
|
const folder = cwd && typeof cwd === "object" && Object.hasOwn(cwd, "path") ? basename(cwd.path) : workspaceFolder.name;
|
|
1329
|
-
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(
|
|
1337
|
+
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(13858, "Executing task in folder {0}: {1}", folder, commandLine)), {
|
|
1330
1338
|
excludeLeadingNewLine: true
|
|
1331
1339
|
}) + this.getTaskShellIntegrationOutputSequence(commandLineInfo);
|
|
1332
1340
|
} else {
|
|
1333
|
-
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(
|
|
1341
|
+
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(13859, "Executing task: {0}", commandLine)), {
|
|
1334
1342
|
excludeLeadingNewLine: true
|
|
1335
1343
|
}) + this.getTaskShellIntegrationOutputSequence(commandLineInfo);
|
|
1336
1344
|
}
|
|
@@ -1367,7 +1375,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1367
1375
|
};
|
|
1368
1376
|
if (needsFolderQualification && workspaceFolder) {
|
|
1369
1377
|
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(
|
|
1370
|
-
|
|
1378
|
+
13858,
|
|
1371
1379
|
"Executing task in folder {0}: {1}",
|
|
1372
1380
|
workspaceFolder.name,
|
|
1373
1381
|
`${shellLaunchConfig.executable} ${getArgsToEcho(shellLaunchConfig.args)}`
|
|
@@ -1376,7 +1384,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1376
1384
|
}) + this.getTaskShellIntegrationOutputSequence(undefined);
|
|
1377
1385
|
} else {
|
|
1378
1386
|
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(( localize(
|
|
1379
|
-
|
|
1387
|
+
13860,
|
|
1380
1388
|
"Executing task: {0}",
|
|
1381
1389
|
`${shellLaunchConfig.executable} ${getArgsToEcho(shellLaunchConfig.args)}`
|
|
1382
1390
|
)), {
|
|
@@ -1508,7 +1516,10 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1508
1516
|
delete this._sameTaskTerminals[terminalData.lastTask];
|
|
1509
1517
|
this._idleTaskTerminals.delete(terminalData.lastTask);
|
|
1510
1518
|
const mapKey = terminalData.lastTask;
|
|
1511
|
-
this.
|
|
1519
|
+
const cur = this._activeTasks[mapKey];
|
|
1520
|
+
if (cur && cur.terminal === terminal) {
|
|
1521
|
+
this._removeFromActiveTasks(mapKey);
|
|
1522
|
+
}
|
|
1512
1523
|
if (this._busyTasks[mapKey]) {
|
|
1513
1524
|
delete this._busyTasks[mapKey];
|
|
1514
1525
|
}
|
|
@@ -1529,7 +1540,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1529
1540
|
customPtyImplementation: (id, cols, rows) => ( new TerminalProcessExtHostProxy(id, cols, rows, this._terminalService)),
|
|
1530
1541
|
waitOnExit,
|
|
1531
1542
|
name: this._createTerminalName(task),
|
|
1532
|
-
initialText: task.command.presentation && task.command.presentation.echo ? formatMessageForTerminal(( localize(
|
|
1543
|
+
initialText: task.command.presentation && task.command.presentation.echo ? formatMessageForTerminal(( localize(13861, "Executing task: {0}", task._label)), {
|
|
1533
1544
|
excludeLeadingNewLine: true
|
|
1534
1545
|
}) : undefined,
|
|
1535
1546
|
isFeatureTerminal: true,
|
|
@@ -1552,7 +1563,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1552
1563
|
presentationOptions
|
|
1553
1564
|
);
|
|
1554
1565
|
if (launchConfigs === undefined) {
|
|
1555
|
-
return [undefined, ( new TaskError(Severity.Error, ( localize(
|
|
1566
|
+
return [undefined, ( new TaskError(Severity.Error, ( localize(13862, "Can't execute a shell command on an UNC drive using cmd.exe.")), TaskErrors.UnknownError))];
|
|
1556
1567
|
}
|
|
1557
1568
|
}
|
|
1558
1569
|
const prefersSameTerminal = presentationOptions.panel === PanelKind.Dedicated;
|
|
@@ -1860,7 +1871,7 @@ class TerminalTaskSystem extends Disposable {
|
|
|
1860
1871
|
}
|
|
1861
1872
|
if (!matcher) {
|
|
1862
1873
|
this._appendOutput(( localize(
|
|
1863
|
-
|
|
1874
|
+
13863,
|
|
1864
1875
|
"Problem matcher {0} can't be resolved. The matcher will be ignored"
|
|
1865
1876
|
)));
|
|
1866
1877
|
continue;
|
|
@@ -1988,9 +1999,9 @@ function getWaitOnExitValue(presentationOptions, configurationProperties) {
|
|
|
1988
1999
|
if ((presentationOptions.close === undefined) || (presentationOptions.close === false)) {
|
|
1989
2000
|
if ((presentationOptions.reveal !== RevealKind.Never) || !configurationProperties.isBackground || (presentationOptions.close === false)) {
|
|
1990
2001
|
if (presentationOptions.panel === PanelKind.New) {
|
|
1991
|
-
return taskShellIntegrationWaitOnExitSequence(( localize(
|
|
2002
|
+
return taskShellIntegrationWaitOnExitSequence(( localize(13864, "Press any key to close the terminal.")));
|
|
1992
2003
|
} else if (presentationOptions.showReuseMessage) {
|
|
1993
|
-
return taskShellIntegrationWaitOnExitSequence(( localize(
|
|
2004
|
+
return taskShellIntegrationWaitOnExitSequence(( localize(13865, "Terminal will be reused by tasks, press any key to close it.")));
|
|
1994
2005
|
} else {
|
|
1995
2006
|
return true;
|
|
1996
2007
|
}
|
|
@@ -10,12 +10,12 @@ const schema = {
|
|
|
10
10
|
},
|
|
11
11
|
options: {
|
|
12
12
|
type: "object",
|
|
13
|
-
description: ( localize(
|
|
13
|
+
description: ( localize(13867, "Additional command options")),
|
|
14
14
|
properties: {
|
|
15
15
|
cwd: {
|
|
16
16
|
type: "string",
|
|
17
17
|
description: ( localize(
|
|
18
|
-
|
|
18
|
+
13868,
|
|
19
19
|
"The current working directory of the executed program or script. If omitted Code's current workspace root is used."
|
|
20
20
|
))
|
|
21
21
|
},
|
|
@@ -25,7 +25,7 @@ const schema = {
|
|
|
25
25
|
type: "string"
|
|
26
26
|
},
|
|
27
27
|
description: ( localize(
|
|
28
|
-
|
|
28
|
+
13869,
|
|
29
29
|
"The environment of the executed program or shell. If omitted the parent process' environment is used."
|
|
30
30
|
))
|
|
31
31
|
}
|
|
@@ -38,7 +38,7 @@ const schema = {
|
|
|
38
38
|
oneOf: [{
|
|
39
39
|
type: "string",
|
|
40
40
|
errorMessage: ( localize(
|
|
41
|
-
|
|
41
|
+
13870,
|
|
42
42
|
"Unrecognized problem matcher. Is the extension that contributes this problem matcher installed?"
|
|
43
43
|
))
|
|
44
44
|
}, Schemas.LegacyProblemMatcher, {
|
|
@@ -47,7 +47,7 @@ const schema = {
|
|
|
47
47
|
anyOf: [{
|
|
48
48
|
type: "string",
|
|
49
49
|
errorMessage: ( localize(
|
|
50
|
-
|
|
50
|
+
13870,
|
|
51
51
|
"Unrecognized problem matcher. Is the extension that contributes this problem matcher installed?"
|
|
52
52
|
))
|
|
53
53
|
}, Schemas.LegacyProblemMatcher]
|
|
@@ -57,15 +57,15 @@ const schema = {
|
|
|
57
57
|
shellConfiguration: {
|
|
58
58
|
type: "object",
|
|
59
59
|
additionalProperties: false,
|
|
60
|
-
description: ( localize(
|
|
60
|
+
description: ( localize(13871, "Configures the shell to be used.")),
|
|
61
61
|
properties: {
|
|
62
62
|
executable: {
|
|
63
63
|
type: "string",
|
|
64
|
-
description: ( localize(
|
|
64
|
+
description: ( localize(13872, "The shell to be used."))
|
|
65
65
|
},
|
|
66
66
|
args: {
|
|
67
67
|
type: "array",
|
|
68
|
-
description: ( localize(
|
|
68
|
+
description: ( localize(13873, "The shell arguments.")),
|
|
69
69
|
items: {
|
|
70
70
|
type: "string"
|
|
71
71
|
}
|
|
@@ -79,13 +79,13 @@ const schema = {
|
|
|
79
79
|
command: {
|
|
80
80
|
type: "string",
|
|
81
81
|
description: ( localize(
|
|
82
|
-
|
|
82
|
+
13874,
|
|
83
83
|
"The command to be executed. Can be an external program or a shell command."
|
|
84
84
|
))
|
|
85
85
|
},
|
|
86
86
|
args: {
|
|
87
87
|
type: "array",
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(13875, "Arguments passed to the command when this task is invoked.")),
|
|
89
89
|
items: {
|
|
90
90
|
type: "string"
|
|
91
91
|
}
|
|
@@ -102,18 +102,18 @@ const schema = {
|
|
|
102
102
|
properties: {
|
|
103
103
|
taskName: {
|
|
104
104
|
type: "string",
|
|
105
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(13876, "The task's name"))
|
|
106
106
|
},
|
|
107
107
|
command: {
|
|
108
108
|
type: "string",
|
|
109
109
|
description: ( localize(
|
|
110
|
-
|
|
110
|
+
13874,
|
|
111
111
|
"The command to be executed. Can be an external program or a shell command."
|
|
112
112
|
))
|
|
113
113
|
},
|
|
114
114
|
args: {
|
|
115
115
|
type: "array",
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(13875, "Arguments passed to the command when this task is invoked.")),
|
|
117
117
|
items: {
|
|
118
118
|
type: "string"
|
|
119
119
|
}
|
|
@@ -124,13 +124,13 @@ const schema = {
|
|
|
124
124
|
windows: {
|
|
125
125
|
anyOf: [{
|
|
126
126
|
$ref: "#/definitions/commandConfiguration",
|
|
127
|
-
description: ( localize(
|
|
127
|
+
description: ( localize(13877, "Windows specific command configuration"))
|
|
128
128
|
}, {
|
|
129
129
|
properties: {
|
|
130
130
|
problemMatcher: {
|
|
131
131
|
$ref: "#/definitions/problemMatcherType",
|
|
132
132
|
description: ( localize(
|
|
133
|
-
|
|
133
|
+
13878,
|
|
134
134
|
"The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers."
|
|
135
135
|
))
|
|
136
136
|
}
|
|
@@ -140,13 +140,13 @@ const schema = {
|
|
|
140
140
|
osx: {
|
|
141
141
|
anyOf: [{
|
|
142
142
|
$ref: "#/definitions/commandConfiguration",
|
|
143
|
-
description: ( localize(
|
|
143
|
+
description: ( localize(13879, "Mac specific command configuration"))
|
|
144
144
|
}, {
|
|
145
145
|
properties: {
|
|
146
146
|
problemMatcher: {
|
|
147
147
|
$ref: "#/definitions/problemMatcherType",
|
|
148
148
|
description: ( localize(
|
|
149
|
-
|
|
149
|
+
13878,
|
|
150
150
|
"The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers."
|
|
151
151
|
))
|
|
152
152
|
}
|
|
@@ -156,13 +156,13 @@ const schema = {
|
|
|
156
156
|
linux: {
|
|
157
157
|
anyOf: [{
|
|
158
158
|
$ref: "#/definitions/commandConfiguration",
|
|
159
|
-
description: ( localize(
|
|
159
|
+
description: ( localize(13880, "Linux specific command configuration"))
|
|
160
160
|
}, {
|
|
161
161
|
properties: {
|
|
162
162
|
problemMatcher: {
|
|
163
163
|
$ref: "#/definitions/problemMatcherType",
|
|
164
164
|
description: ( localize(
|
|
165
|
-
|
|
165
|
+
13878,
|
|
166
166
|
"The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers."
|
|
167
167
|
))
|
|
168
168
|
}
|
|
@@ -172,7 +172,7 @@ const schema = {
|
|
|
172
172
|
suppressTaskName: {
|
|
173
173
|
type: "boolean",
|
|
174
174
|
description: ( localize(
|
|
175
|
-
|
|
175
|
+
13881,
|
|
176
176
|
"Controls whether the task name is added as an argument to the command. If omitted the globally defined value is used."
|
|
177
177
|
)),
|
|
178
178
|
default: true
|
|
@@ -180,23 +180,23 @@ const schema = {
|
|
|
180
180
|
showOutput: {
|
|
181
181
|
$ref: "#/definitions/showOutputType",
|
|
182
182
|
description: ( localize(
|
|
183
|
-
|
|
183
|
+
13882,
|
|
184
184
|
"Controls whether the output of the running task is shown or not. If omitted the globally defined value is used."
|
|
185
185
|
))
|
|
186
186
|
},
|
|
187
187
|
echoCommand: {
|
|
188
188
|
type: "boolean",
|
|
189
189
|
description: ( localize(
|
|
190
|
-
|
|
190
|
+
13883,
|
|
191
191
|
"Controls whether the executed command is echoed to the output. Default is false."
|
|
192
192
|
)),
|
|
193
193
|
default: true
|
|
194
194
|
},
|
|
195
195
|
isWatching: {
|
|
196
196
|
type: "boolean",
|
|
197
|
-
deprecationMessage: ( localize(
|
|
197
|
+
deprecationMessage: ( localize(13884, "Deprecated. Use isBackground instead.")),
|
|
198
198
|
description: ( localize(
|
|
199
|
-
|
|
199
|
+
13885,
|
|
200
200
|
"Whether the executed task is kept alive and is watching the file system."
|
|
201
201
|
)),
|
|
202
202
|
default: true
|
|
@@ -204,7 +204,7 @@ const schema = {
|
|
|
204
204
|
isBackground: {
|
|
205
205
|
type: "boolean",
|
|
206
206
|
description: ( localize(
|
|
207
|
-
|
|
207
|
+
13886,
|
|
208
208
|
"Whether the executed task is kept alive and is running in the background."
|
|
209
209
|
)),
|
|
210
210
|
default: true
|
|
@@ -212,25 +212,25 @@ const schema = {
|
|
|
212
212
|
promptOnClose: {
|
|
213
213
|
type: "boolean",
|
|
214
214
|
description: ( localize(
|
|
215
|
-
|
|
215
|
+
13887,
|
|
216
216
|
"Whether the user is prompted when VS Code closes with a running task."
|
|
217
217
|
)),
|
|
218
218
|
default: false
|
|
219
219
|
},
|
|
220
220
|
isBuildCommand: {
|
|
221
221
|
type: "boolean",
|
|
222
|
-
description: ( localize(
|
|
222
|
+
description: ( localize(13888, "Maps this task to Code's default build command.")),
|
|
223
223
|
default: true
|
|
224
224
|
},
|
|
225
225
|
isTestCommand: {
|
|
226
226
|
type: "boolean",
|
|
227
|
-
description: ( localize(
|
|
227
|
+
description: ( localize(13889, "Maps this task to Code's default test command.")),
|
|
228
228
|
default: true
|
|
229
229
|
},
|
|
230
230
|
problemMatcher: {
|
|
231
231
|
$ref: "#/definitions/problemMatcherType",
|
|
232
232
|
description: ( localize(
|
|
233
|
-
|
|
233
|
+
13878,
|
|
234
234
|
"The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers."
|
|
235
235
|
))
|
|
236
236
|
}
|
|
@@ -243,13 +243,13 @@ const schema = {
|
|
|
243
243
|
command: {
|
|
244
244
|
type: "string",
|
|
245
245
|
description: ( localize(
|
|
246
|
-
|
|
246
|
+
13874,
|
|
247
247
|
"The command to be executed. Can be an external program or a shell command."
|
|
248
248
|
))
|
|
249
249
|
},
|
|
250
250
|
args: {
|
|
251
251
|
type: "array",
|
|
252
|
-
description: ( localize(
|
|
252
|
+
description: ( localize(13890, "Additional arguments passed to the command.")),
|
|
253
253
|
items: {
|
|
254
254
|
type: "string"
|
|
255
255
|
}
|
|
@@ -260,15 +260,15 @@ const schema = {
|
|
|
260
260
|
showOutput: {
|
|
261
261
|
$ref: "#/definitions/showOutputType",
|
|
262
262
|
description: ( localize(
|
|
263
|
-
|
|
263
|
+
13891,
|
|
264
264
|
"Controls whether the output of the running task is shown or not. If omitted 'always' is used."
|
|
265
265
|
))
|
|
266
266
|
},
|
|
267
267
|
isWatching: {
|
|
268
268
|
type: "boolean",
|
|
269
|
-
deprecationMessage: ( localize(
|
|
269
|
+
deprecationMessage: ( localize(13892, "Deprecated. Use isBackground instead.")),
|
|
270
270
|
description: ( localize(
|
|
271
|
-
|
|
271
|
+
13893,
|
|
272
272
|
"Whether the executed task is kept alive and is watching the file system."
|
|
273
273
|
)),
|
|
274
274
|
default: true
|
|
@@ -276,7 +276,7 @@ const schema = {
|
|
|
276
276
|
isBackground: {
|
|
277
277
|
type: "boolean",
|
|
278
278
|
description: ( localize(
|
|
279
|
-
|
|
279
|
+
13894,
|
|
280
280
|
"Whether the executed task is kept alive and is running in the background."
|
|
281
281
|
)),
|
|
282
282
|
default: true
|
|
@@ -284,7 +284,7 @@ const schema = {
|
|
|
284
284
|
promptOnClose: {
|
|
285
285
|
type: "boolean",
|
|
286
286
|
description: ( localize(
|
|
287
|
-
|
|
287
|
+
13895,
|
|
288
288
|
"Whether the user is prompted when VS Code closes with a running background task."
|
|
289
289
|
)),
|
|
290
290
|
default: false
|
|
@@ -292,7 +292,7 @@ const schema = {
|
|
|
292
292
|
echoCommand: {
|
|
293
293
|
type: "boolean",
|
|
294
294
|
description: ( localize(
|
|
295
|
-
|
|
295
|
+
13883,
|
|
296
296
|
"Controls whether the executed command is echoed to the output. Default is false."
|
|
297
297
|
)),
|
|
298
298
|
default: true
|
|
@@ -300,26 +300,26 @@ const schema = {
|
|
|
300
300
|
suppressTaskName: {
|
|
301
301
|
type: "boolean",
|
|
302
302
|
description: ( localize(
|
|
303
|
-
|
|
303
|
+
13896,
|
|
304
304
|
"Controls whether the task name is added as an argument to the command. Default is false."
|
|
305
305
|
)),
|
|
306
306
|
default: true
|
|
307
307
|
},
|
|
308
308
|
taskSelector: {
|
|
309
309
|
type: "string",
|
|
310
|
-
description: ( localize(
|
|
310
|
+
description: ( localize(13897, "Prefix to indicate that an argument is task."))
|
|
311
311
|
},
|
|
312
312
|
problemMatcher: {
|
|
313
313
|
$ref: "#/definitions/problemMatcherType",
|
|
314
314
|
description: ( localize(
|
|
315
|
-
|
|
315
|
+
13898,
|
|
316
316
|
"The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers."
|
|
317
317
|
))
|
|
318
318
|
},
|
|
319
319
|
tasks: {
|
|
320
320
|
type: "array",
|
|
321
321
|
description: ( localize(
|
|
322
|
-
|
|
322
|
+
13899,
|
|
323
323
|
"The task configurations. Usually these are enrichments of task already defined in the external task runner."
|
|
324
324
|
)),
|
|
325
325
|
items: {
|
|
@@ -13,32 +13,32 @@ const schema = {
|
|
|
13
13
|
version: {
|
|
14
14
|
type: "string",
|
|
15
15
|
enum: ["0.1.0"],
|
|
16
|
-
deprecationMessage: ( localize(
|
|
17
|
-
description: ( localize(
|
|
16
|
+
deprecationMessage: ( localize(13900, "Task version 0.1.0 is deprecated. Please use 2.0.0")),
|
|
17
|
+
description: ( localize(13901, "The config's version number"))
|
|
18
18
|
},
|
|
19
19
|
_runner: {
|
|
20
|
-
deprecationMessage: ( localize(
|
|
20
|
+
deprecationMessage: ( localize(13902, "The runner has graduated. Use the official runner property"))
|
|
21
21
|
},
|
|
22
22
|
runner: {
|
|
23
23
|
type: "string",
|
|
24
24
|
enum: ["process", "terminal"],
|
|
25
25
|
default: "process",
|
|
26
26
|
description: ( localize(
|
|
27
|
-
|
|
27
|
+
13903,
|
|
28
28
|
"Defines whether the task is executed as a process and the output is shown in the output window or inside the terminal."
|
|
29
29
|
))
|
|
30
30
|
},
|
|
31
31
|
windows: {
|
|
32
32
|
$ref: "#/definitions/taskRunnerConfiguration",
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(13904, "Windows specific command configuration"))
|
|
34
34
|
},
|
|
35
35
|
osx: {
|
|
36
36
|
$ref: "#/definitions/taskRunnerConfiguration",
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(13905, "Mac specific command configuration"))
|
|
38
38
|
},
|
|
39
39
|
linux: {
|
|
40
40
|
$ref: "#/definitions/taskRunnerConfiguration",
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(13906, "Linux specific command configuration"))
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}, {
|
|
@@ -50,7 +50,7 @@ const shellCommand = {
|
|
|
50
50
|
type: "boolean",
|
|
51
51
|
default: true,
|
|
52
52
|
description: ( localize(
|
|
53
|
-
|
|
53
|
+
13907,
|
|
54
54
|
"Specifies whether the command is a shell command or an external program. Defaults to false if omitted."
|
|
55
55
|
))
|
|
56
56
|
};
|