@codingame/monaco-vscode-task-service-override 26.2.2 → 28.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.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +146 -150
- package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +8 -8
- package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +48 -48
- 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 +11 -11
- package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +53 -37
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +42 -42
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +14 -10
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +95 -84
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/tasks/common/problemCollectors.js +34 -13
- package/vscode/src/vs/workbench/contrib/tasks/common/taskSystem.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +4 -4
- package/vscode/src/vs/base/common/parsers.d.ts +0 -32
- package/vscode/src/vs/base/common/parsers.js +0 -54
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.d.ts +0 -432
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +0 -1627
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.d.ts +0 -510
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +0 -1790
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
3
|
import { deepClone } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
4
|
-
import { ProblemMatcherRegistry } from '
|
|
4
|
+
import { ProblemMatcherRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/problemMatcher';
|
|
5
5
|
import schema$1 from './jsonSchemaCommon.js';
|
|
6
6
|
|
|
7
7
|
const schema = {
|
|
@@ -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(12819, "Task version 0.1.0 is deprecated. Please use 2.0.0")),
|
|
17
|
+
description: ( localize(12820, "The config's version number"))
|
|
18
18
|
},
|
|
19
19
|
_runner: {
|
|
20
|
-
deprecationMessage: ( localize(
|
|
20
|
+
deprecationMessage: ( localize(12821, "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
|
+
12822,
|
|
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(12823, "Windows specific command configuration"))
|
|
34
34
|
},
|
|
35
35
|
osx: {
|
|
36
36
|
$ref: "#/definitions/taskRunnerConfiguration",
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(12824, "Mac specific command configuration"))
|
|
38
38
|
},
|
|
39
39
|
linux: {
|
|
40
40
|
$ref: "#/definitions/taskRunnerConfiguration",
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(12825, "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
|
+
12826,
|
|
54
54
|
"Specifies whether the command is a shell command or an external program. Defaults to false if omitted."
|
|
55
55
|
))
|
|
56
56
|
};
|
|
@@ -66,7 +66,11 @@ Object.getOwnPropertyNames(definitions).forEach(key => {
|
|
|
66
66
|
});
|
|
67
67
|
function fixReferences(literal) {
|
|
68
68
|
if (Array.isArray(literal)) {
|
|
69
|
-
literal.forEach(
|
|
69
|
+
literal.forEach(element => {
|
|
70
|
+
if (typeof element === "object" && element !== null) {
|
|
71
|
+
fixReferences(element);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
70
74
|
} else if (typeof literal === "object") {
|
|
71
75
|
if (literal["$ref"]) {
|
|
72
76
|
literal["$ref"] = literal["$ref"] + "1";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
3
|
import { deepClone } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
4
4
|
import schema$1 from './jsonSchemaCommon.js';
|
|
5
|
-
import { ProblemMatcherRegistry } from '
|
|
5
|
+
import { ProblemMatcherRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/problemMatcher';
|
|
6
6
|
import { TaskDefinitionRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/tasks/common/taskDefinitionRegistry';
|
|
7
7
|
import { applyDeprecatedVariableMessage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/configurationResolver/common/configurationResolverUtils';
|
|
8
8
|
import { inputsSchema } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/configurationResolver/common/configurationResolverSchema';
|
|
@@ -10,7 +10,11 @@ import { getAllCodicons } from '@codingame/monaco-vscode-api/vscode/vs/base/comm
|
|
|
10
10
|
|
|
11
11
|
function fixReferences(literal) {
|
|
12
12
|
if (Array.isArray(literal)) {
|
|
13
|
-
literal.forEach(
|
|
13
|
+
literal.forEach(element => {
|
|
14
|
+
if (typeof element === "object" && element !== null) {
|
|
15
|
+
fixReferences(element);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
14
18
|
} else if (typeof literal === "object") {
|
|
15
19
|
if (literal["$ref"]) {
|
|
16
20
|
literal["$ref"] = literal["$ref"] + "2";
|
|
@@ -28,39 +32,44 @@ const shellCommand = {
|
|
|
28
32
|
type: "boolean",
|
|
29
33
|
default: true,
|
|
30
34
|
description: ( localize(
|
|
31
|
-
|
|
35
|
+
12827,
|
|
32
36
|
"Specifies whether the command is a shell command or an external program. Defaults to false if omitted."
|
|
33
37
|
))
|
|
34
38
|
}, {
|
|
35
39
|
$ref: "#/definitions/shellConfiguration"
|
|
36
40
|
}],
|
|
37
41
|
deprecationMessage: ( localize(
|
|
38
|
-
|
|
42
|
+
12828,
|
|
39
43
|
"The property isShellCommand is deprecated. Use the type property of the task and the shell property in the options instead. See also the 1.14 release notes."
|
|
40
44
|
))
|
|
41
45
|
};
|
|
42
46
|
const hide = {
|
|
43
47
|
type: "boolean",
|
|
44
|
-
description: ( localize(
|
|
48
|
+
description: ( localize(12829, "Hide this task from the run task quick pick")),
|
|
45
49
|
default: true
|
|
46
50
|
};
|
|
51
|
+
const inSessions = {
|
|
52
|
+
type: "boolean",
|
|
53
|
+
description: ( localize(12830, "Show this task in the Agent Sessions run action dropdown")),
|
|
54
|
+
default: false
|
|
55
|
+
};
|
|
47
56
|
const taskIdentifier = {
|
|
48
57
|
type: "object",
|
|
49
58
|
additionalProperties: true,
|
|
50
59
|
properties: {
|
|
51
60
|
type: {
|
|
52
61
|
type: "string",
|
|
53
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(12831, "The task identifier."))
|
|
54
63
|
}
|
|
55
64
|
}
|
|
56
65
|
};
|
|
57
66
|
const dependsOn = {
|
|
58
67
|
anyOf: [{
|
|
59
68
|
type: "string",
|
|
60
|
-
description: ( localize(
|
|
69
|
+
description: ( localize(12832, "Another task this task depends on."))
|
|
61
70
|
}, taskIdentifier, {
|
|
62
71
|
type: "array",
|
|
63
|
-
description: ( localize(
|
|
72
|
+
description: ( localize(12833, "The other tasks this task depends on.")),
|
|
64
73
|
items: {
|
|
65
74
|
anyOf: [{
|
|
66
75
|
type: "string"
|
|
@@ -68,39 +77,39 @@ const dependsOn = {
|
|
|
68
77
|
}
|
|
69
78
|
}],
|
|
70
79
|
description: ( localize(
|
|
71
|
-
|
|
80
|
+
12834,
|
|
72
81
|
"Either a string representing another task or an array of other tasks that this task depends on."
|
|
73
82
|
))
|
|
74
83
|
};
|
|
75
84
|
const dependsOrder = {
|
|
76
85
|
type: "string",
|
|
77
86
|
enum: ["parallel", "sequence"],
|
|
78
|
-
enumDescriptions: [( localize(
|
|
87
|
+
enumDescriptions: [( localize(12835, "Run all dependsOn tasks in parallel.")), ( localize(12836, "Run all dependsOn tasks in sequence."))],
|
|
79
88
|
default: "parallel",
|
|
80
89
|
description: ( localize(
|
|
81
|
-
|
|
90
|
+
12837,
|
|
82
91
|
"Determines the order of the dependsOn tasks for this task. Note that this property is not recursive."
|
|
83
92
|
))
|
|
84
93
|
};
|
|
85
94
|
const detail = {
|
|
86
95
|
type: "string",
|
|
87
96
|
description: ( localize(
|
|
88
|
-
|
|
97
|
+
12838,
|
|
89
98
|
"An optional description of a task that shows in the Run Task quick pick as a detail."
|
|
90
99
|
))
|
|
91
100
|
};
|
|
92
101
|
const icon = {
|
|
93
102
|
type: "object",
|
|
94
|
-
description: ( localize(
|
|
103
|
+
description: ( localize(12839, "An optional icon for the task")),
|
|
95
104
|
properties: {
|
|
96
105
|
id: {
|
|
97
|
-
description: ( localize(
|
|
106
|
+
description: ( localize(12840, "An optional codicon ID to use")),
|
|
98
107
|
type: ["string", "null"],
|
|
99
108
|
enum: Array.from(getAllCodicons(), icon => icon.id),
|
|
100
109
|
markdownEnumDescriptions: Array.from(getAllCodicons(), icon => `$(${icon.id})`)
|
|
101
110
|
},
|
|
102
111
|
color: {
|
|
103
|
-
description: ( localize(
|
|
112
|
+
description: ( localize(12841, "An optional color of the icon")),
|
|
104
113
|
type: ["string", "null"],
|
|
105
114
|
enum: [
|
|
106
115
|
"terminal.ansiBlack",
|
|
@@ -126,7 +135,7 @@ const presentation = {
|
|
|
126
135
|
clear: false
|
|
127
136
|
},
|
|
128
137
|
description: ( localize(
|
|
129
|
-
|
|
138
|
+
12842,
|
|
130
139
|
"Configures the panel that is used to present the task's output and reads its input."
|
|
131
140
|
)),
|
|
132
141
|
additionalProperties: false,
|
|
@@ -135,7 +144,7 @@ const presentation = {
|
|
|
135
144
|
type: "boolean",
|
|
136
145
|
default: true,
|
|
137
146
|
description: ( localize(
|
|
138
|
-
|
|
147
|
+
12843,
|
|
139
148
|
"Controls whether the executed command is echoed to the panel. Default is true."
|
|
140
149
|
))
|
|
141
150
|
},
|
|
@@ -143,30 +152,30 @@ const presentation = {
|
|
|
143
152
|
type: "boolean",
|
|
144
153
|
default: false,
|
|
145
154
|
description: ( localize(
|
|
146
|
-
|
|
155
|
+
12844,
|
|
147
156
|
"Controls whether the panel takes focus. Default is false. If set to true the panel is revealed as well."
|
|
148
157
|
))
|
|
149
158
|
},
|
|
150
159
|
revealProblems: {
|
|
151
160
|
type: "string",
|
|
152
161
|
enum: ["always", "onProblem", "never"],
|
|
153
|
-
enumDescriptions: [( localize(
|
|
162
|
+
enumDescriptions: [( localize(12845, "Always reveals the problems panel when this task is executed.")), ( localize(12846, "Only reveals the problems panel if a problem is found.")), ( localize(12847, "Never reveals the problems panel when this task is executed."))],
|
|
154
163
|
default: "never",
|
|
155
164
|
description: ( localize(
|
|
156
|
-
|
|
165
|
+
12848,
|
|
157
166
|
"Controls whether the problems panel is revealed when running this task or not. Takes precedence over option \"reveal\". Default is \"never\"."
|
|
158
167
|
))
|
|
159
168
|
},
|
|
160
169
|
reveal: {
|
|
161
170
|
type: "string",
|
|
162
171
|
enum: ["always", "silent", "never"],
|
|
163
|
-
enumDescriptions: [( localize(
|
|
164
|
-
|
|
172
|
+
enumDescriptions: [( localize(12849, "Always reveals the terminal when this task is executed.")), ( localize(
|
|
173
|
+
12850,
|
|
165
174
|
"Only reveals the terminal if the task exits with an error or the problem matcher finds an error."
|
|
166
|
-
)), ( localize(
|
|
175
|
+
)), ( localize(12851, "Never reveals the terminal when this task is executed."))],
|
|
167
176
|
default: "always",
|
|
168
177
|
description: ( localize(
|
|
169
|
-
|
|
178
|
+
12852,
|
|
170
179
|
"Controls whether the terminal running the task is revealed or not. May be overridden by option \"revealProblems\". Default is \"always\"."
|
|
171
180
|
))
|
|
172
181
|
},
|
|
@@ -175,7 +184,7 @@ const presentation = {
|
|
|
175
184
|
enum: ["shared", "dedicated", "new"],
|
|
176
185
|
default: "shared",
|
|
177
186
|
description: ( localize(
|
|
178
|
-
|
|
187
|
+
12853,
|
|
179
188
|
"Controls if the panel is shared between tasks, dedicated to this task or a new one is created on every run."
|
|
180
189
|
))
|
|
181
190
|
},
|
|
@@ -183,7 +192,7 @@ const presentation = {
|
|
|
183
192
|
type: "boolean",
|
|
184
193
|
default: true,
|
|
185
194
|
description: ( localize(
|
|
186
|
-
|
|
195
|
+
12854,
|
|
187
196
|
"Controls whether to show the `Terminal will be reused by tasks, press any key to close it` message."
|
|
188
197
|
))
|
|
189
198
|
},
|
|
@@ -191,21 +200,21 @@ const presentation = {
|
|
|
191
200
|
type: "boolean",
|
|
192
201
|
default: false,
|
|
193
202
|
description: ( localize(
|
|
194
|
-
|
|
203
|
+
12855,
|
|
195
204
|
"Controls whether the terminal is cleared before executing the task."
|
|
196
205
|
))
|
|
197
206
|
},
|
|
198
207
|
group: {
|
|
199
208
|
type: "string",
|
|
200
209
|
description: ( localize(
|
|
201
|
-
|
|
210
|
+
12856,
|
|
202
211
|
"Controls whether the task is executed in a specific terminal group using split panes."
|
|
203
212
|
))
|
|
204
213
|
},
|
|
205
214
|
close: {
|
|
206
215
|
type: "boolean",
|
|
207
216
|
description: ( localize(
|
|
208
|
-
|
|
217
|
+
12857,
|
|
209
218
|
"Controls whether the terminal the task runs in is closed when the task exits."
|
|
210
219
|
))
|
|
211
220
|
},
|
|
@@ -213,25 +222,25 @@ const presentation = {
|
|
|
213
222
|
type: "boolean",
|
|
214
223
|
default: false,
|
|
215
224
|
description: ( localize(
|
|
216
|
-
|
|
225
|
+
12858,
|
|
217
226
|
"Controls whether to preserve the task name in the terminal after task completion."
|
|
218
227
|
))
|
|
219
228
|
}
|
|
220
229
|
}
|
|
221
230
|
};
|
|
222
231
|
const terminal = deepClone(presentation);
|
|
223
|
-
terminal.deprecationMessage = ( localize(
|
|
232
|
+
terminal.deprecationMessage = ( localize(12859, "The terminal property is deprecated. Use presentation instead"));
|
|
224
233
|
const groupStrings = {
|
|
225
234
|
type: "string",
|
|
226
235
|
enum: ["build", "test", "none"],
|
|
227
236
|
enumDescriptions: [( localize(
|
|
228
|
-
|
|
237
|
+
12860,
|
|
229
238
|
"Marks the task as a build task accessible through the 'Run Build Task' command."
|
|
230
239
|
)), ( localize(
|
|
231
|
-
|
|
240
|
+
12861,
|
|
232
241
|
"Marks the task as a test task accessible through the 'Run Test Task' command."
|
|
233
|
-
)), ( localize(
|
|
234
|
-
description: ( localize(
|
|
242
|
+
)), ( localize(12862, "Assigns the task to no group"))],
|
|
243
|
+
description: ( localize(12863, "The task's execution group."))
|
|
235
244
|
};
|
|
236
245
|
const group = {
|
|
237
246
|
oneOf: [groupStrings, {
|
|
@@ -242,7 +251,7 @@ const group = {
|
|
|
242
251
|
type: ["boolean", "string"],
|
|
243
252
|
default: false,
|
|
244
253
|
description: ( localize(
|
|
245
|
-
|
|
254
|
+
12864,
|
|
246
255
|
"Defines if this task is the default task in the group, or a glob to match the file which should trigger this task."
|
|
247
256
|
))
|
|
248
257
|
}
|
|
@@ -253,16 +262,16 @@ const group = {
|
|
|
253
262
|
kind: "build",
|
|
254
263
|
isDefault: true
|
|
255
264
|
},
|
|
256
|
-
description: ( localize(
|
|
265
|
+
description: ( localize(12865, "Marks the task as the default build task."))
|
|
257
266
|
}, {
|
|
258
267
|
body: {
|
|
259
268
|
kind: "test",
|
|
260
269
|
isDefault: true
|
|
261
270
|
},
|
|
262
|
-
description: ( localize(
|
|
271
|
+
description: ( localize(12866, "Marks the task as the default test task."))
|
|
263
272
|
}],
|
|
264
273
|
description: ( localize(
|
|
265
|
-
|
|
274
|
+
12867,
|
|
266
275
|
"Defines to which execution group this task belongs to. It supports \"build\" to add it to the build group and \"test\" to add it to the test group."
|
|
267
276
|
))
|
|
268
277
|
};
|
|
@@ -271,7 +280,7 @@ const taskType = {
|
|
|
271
280
|
enum: ["shell"],
|
|
272
281
|
default: "process",
|
|
273
282
|
description: ( localize(
|
|
274
|
-
|
|
283
|
+
12868,
|
|
275
284
|
"Defines whether the task is run as a process or as a command inside a shell."
|
|
276
285
|
))
|
|
277
286
|
};
|
|
@@ -285,7 +294,7 @@ const command = {
|
|
|
285
294
|
type: "string"
|
|
286
295
|
},
|
|
287
296
|
description: ( localize(
|
|
288
|
-
|
|
297
|
+
12869,
|
|
289
298
|
"The shell command to be executed. Array items will be joined using a space character"
|
|
290
299
|
))
|
|
291
300
|
}]
|
|
@@ -302,32 +311,32 @@ const command = {
|
|
|
302
311
|
type: "string"
|
|
303
312
|
},
|
|
304
313
|
description: ( localize(
|
|
305
|
-
|
|
314
|
+
12869,
|
|
306
315
|
"The shell command to be executed. Array items will be joined using a space character"
|
|
307
316
|
))
|
|
308
317
|
}],
|
|
309
|
-
description: ( localize(
|
|
318
|
+
description: ( localize(12870, "The actual command value"))
|
|
310
319
|
},
|
|
311
320
|
quoting: {
|
|
312
321
|
type: "string",
|
|
313
322
|
enum: ["escape", "strong", "weak"],
|
|
314
323
|
enumDescriptions: [( localize(
|
|
315
|
-
|
|
324
|
+
12871,
|
|
316
325
|
"Escapes characters using the shell's escape character (e.g. ` under PowerShell and \\ under bash)."
|
|
317
326
|
)), ( localize(
|
|
318
|
-
|
|
327
|
+
12872,
|
|
319
328
|
"Quotes the argument using the shell's strong quote character (e.g. ' under PowerShell and bash)."
|
|
320
329
|
)), ( localize(
|
|
321
|
-
|
|
330
|
+
12873,
|
|
322
331
|
"Quotes the argument using the shell's weak quote character (e.g. \" under PowerShell and bash)."
|
|
323
332
|
))],
|
|
324
333
|
default: "strong",
|
|
325
|
-
description: ( localize(
|
|
334
|
+
description: ( localize(12874, "How the command value should be quoted."))
|
|
326
335
|
}
|
|
327
336
|
}
|
|
328
337
|
}],
|
|
329
338
|
description: ( localize(
|
|
330
|
-
|
|
339
|
+
12875,
|
|
331
340
|
"The command to be executed. Can be an external program or a shell command."
|
|
332
341
|
))
|
|
333
342
|
};
|
|
@@ -342,46 +351,46 @@ const args = {
|
|
|
342
351
|
properties: {
|
|
343
352
|
value: {
|
|
344
353
|
type: "string",
|
|
345
|
-
description: ( localize(
|
|
354
|
+
description: ( localize(12876, "The actual argument value"))
|
|
346
355
|
},
|
|
347
356
|
quoting: {
|
|
348
357
|
type: "string",
|
|
349
358
|
enum: ["escape", "strong", "weak"],
|
|
350
359
|
enumDescriptions: [( localize(
|
|
351
|
-
|
|
360
|
+
12871,
|
|
352
361
|
"Escapes characters using the shell's escape character (e.g. ` under PowerShell and \\ under bash)."
|
|
353
362
|
)), ( localize(
|
|
354
|
-
|
|
363
|
+
12872,
|
|
355
364
|
"Quotes the argument using the shell's strong quote character (e.g. ' under PowerShell and bash)."
|
|
356
365
|
)), ( localize(
|
|
357
|
-
|
|
366
|
+
12873,
|
|
358
367
|
"Quotes the argument using the shell's weak quote character (e.g. \" under PowerShell and bash)."
|
|
359
368
|
))],
|
|
360
369
|
default: "strong",
|
|
361
|
-
description: ( localize(
|
|
370
|
+
description: ( localize(12877, "How the argument value should be quoted."))
|
|
362
371
|
}
|
|
363
372
|
}
|
|
364
373
|
}]
|
|
365
374
|
},
|
|
366
|
-
description: ( localize(
|
|
375
|
+
description: ( localize(12878, "Arguments passed to the command when this task is invoked."))
|
|
367
376
|
};
|
|
368
377
|
const label = {
|
|
369
378
|
type: "string",
|
|
370
|
-
description: ( localize(
|
|
379
|
+
description: ( localize(12879, "The task's user interface label"))
|
|
371
380
|
};
|
|
372
381
|
const version = {
|
|
373
382
|
type: "string",
|
|
374
383
|
enum: ["2.0.0"],
|
|
375
|
-
description: ( localize(
|
|
384
|
+
description: ( localize(12880, "The config's version number."))
|
|
376
385
|
};
|
|
377
386
|
const identifier = {
|
|
378
387
|
type: "string",
|
|
379
388
|
description: ( localize(
|
|
380
|
-
|
|
389
|
+
12881,
|
|
381
390
|
"A user defined identifier to reference the task in launch.json or a dependsOn clause."
|
|
382
391
|
)),
|
|
383
392
|
deprecationMessage: ( localize(
|
|
384
|
-
|
|
393
|
+
12882,
|
|
385
394
|
"User defined identifiers are deprecated. For custom task use the name as a reference and for tasks provided by extensions use their defined task identifier."
|
|
386
395
|
))
|
|
387
396
|
};
|
|
@@ -391,14 +400,14 @@ const runOptions = {
|
|
|
391
400
|
properties: {
|
|
392
401
|
reevaluateOnRerun: {
|
|
393
402
|
type: "boolean",
|
|
394
|
-
description: ( localize(
|
|
403
|
+
description: ( localize(12883, "Whether to reevaluate task variables on rerun.")),
|
|
395
404
|
default: true
|
|
396
405
|
},
|
|
397
406
|
runOn: {
|
|
398
407
|
type: "string",
|
|
399
408
|
enum: ["default", "folderOpen"],
|
|
400
409
|
description: ( localize(
|
|
401
|
-
|
|
410
|
+
12884,
|
|
402
411
|
"Configures when the task should be run. If set to folderOpen, then the task will be run automatically when the folder is opened."
|
|
403
412
|
)),
|
|
404
413
|
default: "default"
|
|
@@ -406,7 +415,7 @@ const runOptions = {
|
|
|
406
415
|
instanceLimit: {
|
|
407
416
|
type: "number",
|
|
408
417
|
description: ( localize(
|
|
409
|
-
|
|
418
|
+
12885,
|
|
410
419
|
"The number of instances of the task that are allowed to run simultaneously."
|
|
411
420
|
)),
|
|
412
421
|
default: 1
|
|
@@ -414,12 +423,12 @@ const runOptions = {
|
|
|
414
423
|
instancePolicy: {
|
|
415
424
|
type: "string",
|
|
416
425
|
enum: ["terminateNewest", "terminateOldest", "prompt", "warn", "silent"],
|
|
417
|
-
enumDescriptions: [( localize(
|
|
418
|
-
description: ( localize(
|
|
426
|
+
enumDescriptions: [( localize(12886, "Terminates the newest instance.")), ( localize(12887, "Terminates the oldest instance.")), ( localize(12888, "Asks which instance to terminate.")), ( localize(12889, "Does nothing but warns that the instance limit has been reached.")), ( localize(12890, "Does nothing."))],
|
|
427
|
+
description: ( localize(12891, "Policy to apply when instance limit is reached.")),
|
|
419
428
|
default: "prompt"
|
|
420
429
|
}
|
|
421
430
|
},
|
|
422
|
-
description: ( localize(
|
|
431
|
+
description: ( localize(12892, "The task's run related options"))
|
|
423
432
|
};
|
|
424
433
|
const commonSchemaDefinitions = schema$1.definitions;
|
|
425
434
|
const options = deepClone(commonSchemaDefinitions.options);
|
|
@@ -431,13 +440,13 @@ const taskConfiguration = {
|
|
|
431
440
|
properties: {
|
|
432
441
|
label: {
|
|
433
442
|
type: "string",
|
|
434
|
-
description: ( localize(
|
|
443
|
+
description: ( localize(12893, "The task's label"))
|
|
435
444
|
},
|
|
436
445
|
taskName: {
|
|
437
446
|
type: "string",
|
|
438
|
-
description: ( localize(
|
|
447
|
+
description: ( localize(12894, "The task's name")),
|
|
439
448
|
deprecationMessage: ( localize(
|
|
440
|
-
|
|
449
|
+
12895,
|
|
441
450
|
"The task's name property is deprecated. Use the label property instead."
|
|
442
451
|
))
|
|
443
452
|
},
|
|
@@ -446,7 +455,7 @@ const taskConfiguration = {
|
|
|
446
455
|
isBackground: {
|
|
447
456
|
type: "boolean",
|
|
448
457
|
description: ( localize(
|
|
449
|
-
|
|
458
|
+
12896,
|
|
450
459
|
"Whether the executed task is kept alive and is running in the background."
|
|
451
460
|
)),
|
|
452
461
|
default: true
|
|
@@ -454,7 +463,7 @@ const taskConfiguration = {
|
|
|
454
463
|
promptOnClose: {
|
|
455
464
|
type: "boolean",
|
|
456
465
|
description: ( localize(
|
|
457
|
-
|
|
466
|
+
12897,
|
|
458
467
|
"Whether the user is prompted when VS Code closes with a running task."
|
|
459
468
|
)),
|
|
460
469
|
default: false
|
|
@@ -462,11 +471,12 @@ const taskConfiguration = {
|
|
|
462
471
|
presentation: deepClone(presentation),
|
|
463
472
|
icon: deepClone(icon),
|
|
464
473
|
hide: deepClone(hide),
|
|
474
|
+
inSessions: deepClone(inSessions),
|
|
465
475
|
options: options,
|
|
466
476
|
problemMatcher: {
|
|
467
477
|
$ref: "#/definitions/problemMatcherType",
|
|
468
478
|
description: ( localize(
|
|
469
|
-
|
|
479
|
+
12898,
|
|
470
480
|
"The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers."
|
|
471
481
|
))
|
|
472
482
|
},
|
|
@@ -491,7 +501,7 @@ function updateTaskDefinitions() {
|
|
|
491
501
|
const schemaProperties = schema.properties;
|
|
492
502
|
schemaProperties.type = {
|
|
493
503
|
type: "string",
|
|
494
|
-
description: ( localize(
|
|
504
|
+
description: ( localize(12899, "The task type to customize")),
|
|
495
505
|
enum: [taskType.taskType]
|
|
496
506
|
};
|
|
497
507
|
if (taskType.required) {
|
|
@@ -514,7 +524,7 @@ const customize = deepClone(taskConfiguration);
|
|
|
514
524
|
customize.properties.customize = {
|
|
515
525
|
type: "string",
|
|
516
526
|
deprecationMessage: ( localize(
|
|
517
|
-
|
|
527
|
+
12900,
|
|
518
528
|
"The customize property is deprecated. See the 1.14 release notes on how to migrate to the new task customization approach"
|
|
519
529
|
))
|
|
520
530
|
};
|
|
@@ -533,6 +543,7 @@ taskDescriptionProperties.args = deepClone(args);
|
|
|
533
543
|
taskDescriptionProperties.isShellCommand = deepClone(shellCommand);
|
|
534
544
|
taskDescriptionProperties.dependsOn = dependsOn;
|
|
535
545
|
taskDescriptionProperties.hide = deepClone(hide);
|
|
546
|
+
taskDescriptionProperties.inSessions = deepClone(inSessions);
|
|
536
547
|
taskDescriptionProperties.dependsOrder = dependsOrder;
|
|
537
548
|
taskDescriptionProperties.identifier = deepClone(identifier);
|
|
538
549
|
taskDescriptionProperties.type = deepClone(taskType);
|
|
@@ -543,7 +554,7 @@ taskDescriptionProperties.group = deepClone(group);
|
|
|
543
554
|
taskDescriptionProperties.runOptions = deepClone(runOptions);
|
|
544
555
|
taskDescriptionProperties.detail = detail;
|
|
545
556
|
taskDescriptionProperties.taskName.deprecationMessage = ( localize(
|
|
546
|
-
|
|
557
|
+
12895,
|
|
547
558
|
"The task's name property is deprecated. Use the label property instead."
|
|
548
559
|
));
|
|
549
560
|
const processTask = deepClone(taskDescription);
|
|
@@ -554,23 +565,23 @@ taskDescription.default = {
|
|
|
554
565
|
problemMatcher: []
|
|
555
566
|
};
|
|
556
567
|
definitions.showOutputType.deprecationMessage = ( localize(
|
|
557
|
-
|
|
568
|
+
12901,
|
|
558
569
|
"The property showOutput is deprecated. Use the reveal property inside the presentation property instead. See also the 1.14 release notes."
|
|
559
570
|
));
|
|
560
571
|
taskDescriptionProperties.echoCommand.deprecationMessage = ( localize(
|
|
561
|
-
|
|
572
|
+
12902,
|
|
562
573
|
"The property echoCommand is deprecated. Use the echo property inside the presentation property instead. See also the 1.14 release notes."
|
|
563
574
|
));
|
|
564
575
|
taskDescriptionProperties.suppressTaskName.deprecationMessage = ( localize(
|
|
565
|
-
|
|
576
|
+
12903,
|
|
566
577
|
"The property suppressTaskName is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes."
|
|
567
578
|
));
|
|
568
579
|
taskDescriptionProperties.isBuildCommand.deprecationMessage = ( localize(
|
|
569
|
-
|
|
580
|
+
12904,
|
|
570
581
|
"The property isBuildCommand is deprecated. Use the group property instead. See also the 1.14 release notes."
|
|
571
582
|
));
|
|
572
583
|
taskDescriptionProperties.isTestCommand.deprecationMessage = ( localize(
|
|
573
|
-
|
|
584
|
+
12905,
|
|
574
585
|
"The property isTestCommand is deprecated. Use the group property instead. See also the 1.14 release notes."
|
|
575
586
|
));
|
|
576
587
|
processTask.properties.type = {
|
|
@@ -578,7 +589,7 @@ processTask.properties.type = {
|
|
|
578
589
|
enum: ["process"],
|
|
579
590
|
default: "process",
|
|
580
591
|
description: ( localize(
|
|
581
|
-
|
|
592
|
+
12868,
|
|
582
593
|
"Defines whether the task is run as a process or as a command inside a shell."
|
|
583
594
|
))
|
|
584
595
|
};
|
|
@@ -604,11 +615,11 @@ definitionsTaskRunnerConfigurationProperties.type = deepClone(taskType);
|
|
|
604
615
|
definitionsTaskRunnerConfigurationProperties.group = deepClone(group);
|
|
605
616
|
definitionsTaskRunnerConfigurationProperties.presentation = deepClone(presentation);
|
|
606
617
|
definitionsTaskRunnerConfigurationProperties.suppressTaskName.deprecationMessage = ( localize(
|
|
607
|
-
|
|
618
|
+
12903,
|
|
608
619
|
"The property suppressTaskName is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes."
|
|
609
620
|
));
|
|
610
621
|
definitionsTaskRunnerConfigurationProperties.taskSelector.deprecationMessage = ( localize(
|
|
611
|
-
|
|
622
|
+
12906,
|
|
612
623
|
"The property taskSelector is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes."
|
|
613
624
|
));
|
|
614
625
|
const osSpecificTaskRunnerConfiguration = deepClone(definitions.taskRunnerConfiguration);
|
|
@@ -625,15 +636,15 @@ const schema = {
|
|
|
625
636
|
version: deepClone(version),
|
|
626
637
|
windows: {
|
|
627
638
|
"$ref": "#/definitions/osSpecificTaskRunnerConfiguration",
|
|
628
|
-
"description": ( localize(
|
|
639
|
+
"description": ( localize(12907, "Windows specific command configuration"))
|
|
629
640
|
},
|
|
630
641
|
osx: {
|
|
631
642
|
"$ref": "#/definitions/osSpecificTaskRunnerConfiguration",
|
|
632
|
-
"description": ( localize(
|
|
643
|
+
"description": ( localize(12908, "Mac specific command configuration"))
|
|
633
644
|
},
|
|
634
645
|
linux: {
|
|
635
646
|
"$ref": "#/definitions/osSpecificTaskRunnerConfiguration",
|
|
636
|
-
"description": ( localize(
|
|
647
|
+
"description": ( localize(12909, "Linux specific command configuration"))
|
|
637
648
|
}
|
|
638
649
|
}
|
|
639
650
|
}, {
|