@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
|
@@ -32,25 +32,25 @@ const shellCommand = {
|
|
|
32
32
|
type: "boolean",
|
|
33
33
|
default: true,
|
|
34
34
|
description: ( localize(
|
|
35
|
-
|
|
35
|
+
13141,
|
|
36
36
|
"Specifies whether the command is a shell command or an external program. Defaults to false if omitted."
|
|
37
37
|
))
|
|
38
38
|
}, {
|
|
39
39
|
$ref: "#/definitions/shellConfiguration"
|
|
40
40
|
}],
|
|
41
41
|
deprecationMessage: ( localize(
|
|
42
|
-
|
|
42
|
+
13142,
|
|
43
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."
|
|
44
44
|
))
|
|
45
45
|
};
|
|
46
46
|
const hide = {
|
|
47
47
|
type: "boolean",
|
|
48
|
-
description: ( localize(
|
|
48
|
+
description: ( localize(13143, "Hide this task from the run task quick pick")),
|
|
49
49
|
default: true
|
|
50
50
|
};
|
|
51
51
|
const inSessions = {
|
|
52
52
|
type: "boolean",
|
|
53
|
-
description: ( localize(
|
|
53
|
+
description: ( localize(13144, "Show this task in the Agent Sessions run action dropdown")),
|
|
54
54
|
default: false
|
|
55
55
|
};
|
|
56
56
|
const taskIdentifier = {
|
|
@@ -59,17 +59,17 @@ const taskIdentifier = {
|
|
|
59
59
|
properties: {
|
|
60
60
|
type: {
|
|
61
61
|
type: "string",
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(13145, "The task identifier."))
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
const dependsOn = {
|
|
67
67
|
anyOf: [{
|
|
68
68
|
type: "string",
|
|
69
|
-
description: ( localize(
|
|
69
|
+
description: ( localize(13146, "Another task this task depends on."))
|
|
70
70
|
}, taskIdentifier, {
|
|
71
71
|
type: "array",
|
|
72
|
-
description: ( localize(
|
|
72
|
+
description: ( localize(13147, "The other tasks this task depends on.")),
|
|
73
73
|
items: {
|
|
74
74
|
anyOf: [{
|
|
75
75
|
type: "string"
|
|
@@ -77,39 +77,39 @@ const dependsOn = {
|
|
|
77
77
|
}
|
|
78
78
|
}],
|
|
79
79
|
description: ( localize(
|
|
80
|
-
|
|
80
|
+
13148,
|
|
81
81
|
"Either a string representing another task or an array of other tasks that this task depends on."
|
|
82
82
|
))
|
|
83
83
|
};
|
|
84
84
|
const dependsOrder = {
|
|
85
85
|
type: "string",
|
|
86
86
|
enum: ["parallel", "sequence"],
|
|
87
|
-
enumDescriptions: [( localize(
|
|
87
|
+
enumDescriptions: [( localize(13149, "Run all dependsOn tasks in parallel.")), ( localize(13150, "Run all dependsOn tasks in sequence."))],
|
|
88
88
|
default: "parallel",
|
|
89
89
|
description: ( localize(
|
|
90
|
-
|
|
90
|
+
13151,
|
|
91
91
|
"Determines the order of the dependsOn tasks for this task. Note that this property is not recursive."
|
|
92
92
|
))
|
|
93
93
|
};
|
|
94
94
|
const detail = {
|
|
95
95
|
type: "string",
|
|
96
96
|
description: ( localize(
|
|
97
|
-
|
|
97
|
+
13152,
|
|
98
98
|
"An optional description of a task that shows in the Run Task quick pick as a detail."
|
|
99
99
|
))
|
|
100
100
|
};
|
|
101
101
|
const icon = {
|
|
102
102
|
type: "object",
|
|
103
|
-
description: ( localize(
|
|
103
|
+
description: ( localize(13153, "An optional icon for the task")),
|
|
104
104
|
properties: {
|
|
105
105
|
id: {
|
|
106
|
-
description: ( localize(
|
|
106
|
+
description: ( localize(13154, "An optional codicon ID to use")),
|
|
107
107
|
type: ["string", "null"],
|
|
108
108
|
enum: Array.from(getAllCodicons(), icon => icon.id),
|
|
109
109
|
markdownEnumDescriptions: Array.from(getAllCodicons(), icon => `$(${icon.id})`)
|
|
110
110
|
},
|
|
111
111
|
color: {
|
|
112
|
-
description: ( localize(
|
|
112
|
+
description: ( localize(13155, "An optional color of the icon")),
|
|
113
113
|
type: ["string", "null"],
|
|
114
114
|
enum: [
|
|
115
115
|
"terminal.ansiBlack",
|
|
@@ -135,7 +135,7 @@ const presentation = {
|
|
|
135
135
|
clear: false
|
|
136
136
|
},
|
|
137
137
|
description: ( localize(
|
|
138
|
-
|
|
138
|
+
13156,
|
|
139
139
|
"Configures the panel that is used to present the task's output and reads its input."
|
|
140
140
|
)),
|
|
141
141
|
additionalProperties: false,
|
|
@@ -144,7 +144,7 @@ const presentation = {
|
|
|
144
144
|
type: "boolean",
|
|
145
145
|
default: true,
|
|
146
146
|
description: ( localize(
|
|
147
|
-
|
|
147
|
+
13157,
|
|
148
148
|
"Controls whether the executed command is echoed to the panel. Default is true."
|
|
149
149
|
))
|
|
150
150
|
},
|
|
@@ -152,30 +152,30 @@ const presentation = {
|
|
|
152
152
|
type: "boolean",
|
|
153
153
|
default: false,
|
|
154
154
|
description: ( localize(
|
|
155
|
-
|
|
155
|
+
13158,
|
|
156
156
|
"Controls whether the panel takes focus. Default is false. If set to true the panel is revealed as well."
|
|
157
157
|
))
|
|
158
158
|
},
|
|
159
159
|
revealProblems: {
|
|
160
160
|
type: "string",
|
|
161
161
|
enum: ["always", "onProblem", "never"],
|
|
162
|
-
enumDescriptions: [( localize(
|
|
162
|
+
enumDescriptions: [( localize(13159, "Always reveals the problems panel when this task is executed.")), ( localize(13160, "Only reveals the problems panel if a problem is found.")), ( localize(13161, "Never reveals the problems panel when this task is executed."))],
|
|
163
163
|
default: "never",
|
|
164
164
|
description: ( localize(
|
|
165
|
-
|
|
165
|
+
13162,
|
|
166
166
|
"Controls whether the problems panel is revealed when running this task or not. Takes precedence over option \"reveal\". Default is \"never\"."
|
|
167
167
|
))
|
|
168
168
|
},
|
|
169
169
|
reveal: {
|
|
170
170
|
type: "string",
|
|
171
171
|
enum: ["always", "silent", "never"],
|
|
172
|
-
enumDescriptions: [( localize(
|
|
173
|
-
|
|
172
|
+
enumDescriptions: [( localize(13163, "Always reveals the terminal when this task is executed.")), ( localize(
|
|
173
|
+
13164,
|
|
174
174
|
"Only reveals the terminal if the task exits with an error or the problem matcher finds an error."
|
|
175
|
-
)), ( localize(
|
|
175
|
+
)), ( localize(13165, "Never reveals the terminal when this task is executed."))],
|
|
176
176
|
default: "always",
|
|
177
177
|
description: ( localize(
|
|
178
|
-
|
|
178
|
+
13166,
|
|
179
179
|
"Controls whether the terminal running the task is revealed or not. May be overridden by option \"revealProblems\". Default is \"always\"."
|
|
180
180
|
))
|
|
181
181
|
},
|
|
@@ -184,7 +184,7 @@ const presentation = {
|
|
|
184
184
|
enum: ["shared", "dedicated", "new"],
|
|
185
185
|
default: "shared",
|
|
186
186
|
description: ( localize(
|
|
187
|
-
|
|
187
|
+
13167,
|
|
188
188
|
"Controls if the panel is shared between tasks, dedicated to this task or a new one is created on every run."
|
|
189
189
|
))
|
|
190
190
|
},
|
|
@@ -192,7 +192,7 @@ const presentation = {
|
|
|
192
192
|
type: "boolean",
|
|
193
193
|
default: true,
|
|
194
194
|
description: ( localize(
|
|
195
|
-
|
|
195
|
+
13168,
|
|
196
196
|
"Controls whether to show the `Terminal will be reused by tasks, press any key to close it` message."
|
|
197
197
|
))
|
|
198
198
|
},
|
|
@@ -200,21 +200,21 @@ const presentation = {
|
|
|
200
200
|
type: "boolean",
|
|
201
201
|
default: false,
|
|
202
202
|
description: ( localize(
|
|
203
|
-
|
|
203
|
+
13169,
|
|
204
204
|
"Controls whether the terminal is cleared before executing the task."
|
|
205
205
|
))
|
|
206
206
|
},
|
|
207
207
|
group: {
|
|
208
208
|
type: "string",
|
|
209
209
|
description: ( localize(
|
|
210
|
-
|
|
210
|
+
13170,
|
|
211
211
|
"Controls whether the task is executed in a specific terminal group using split panes."
|
|
212
212
|
))
|
|
213
213
|
},
|
|
214
214
|
close: {
|
|
215
215
|
type: "boolean",
|
|
216
216
|
description: ( localize(
|
|
217
|
-
|
|
217
|
+
13171,
|
|
218
218
|
"Controls whether the terminal the task runs in is closed when the task exits."
|
|
219
219
|
))
|
|
220
220
|
},
|
|
@@ -222,25 +222,25 @@ const presentation = {
|
|
|
222
222
|
type: "boolean",
|
|
223
223
|
default: false,
|
|
224
224
|
description: ( localize(
|
|
225
|
-
|
|
225
|
+
13172,
|
|
226
226
|
"Controls whether to preserve the task name in the terminal after task completion."
|
|
227
227
|
))
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
const terminal = deepClone(presentation);
|
|
232
|
-
terminal.deprecationMessage = ( localize(
|
|
232
|
+
terminal.deprecationMessage = ( localize(13173, "The terminal property is deprecated. Use presentation instead"));
|
|
233
233
|
const groupStrings = {
|
|
234
234
|
type: "string",
|
|
235
235
|
enum: ["build", "test", "none"],
|
|
236
236
|
enumDescriptions: [( localize(
|
|
237
|
-
|
|
237
|
+
13174,
|
|
238
238
|
"Marks the task as a build task accessible through the 'Run Build Task' command."
|
|
239
239
|
)), ( localize(
|
|
240
|
-
|
|
240
|
+
13175,
|
|
241
241
|
"Marks the task as a test task accessible through the 'Run Test Task' command."
|
|
242
|
-
)), ( localize(
|
|
243
|
-
description: ( localize(
|
|
242
|
+
)), ( localize(13176, "Assigns the task to no group"))],
|
|
243
|
+
description: ( localize(13177, "The task's execution group."))
|
|
244
244
|
};
|
|
245
245
|
const group = {
|
|
246
246
|
oneOf: [groupStrings, {
|
|
@@ -251,7 +251,7 @@ const group = {
|
|
|
251
251
|
type: ["boolean", "string"],
|
|
252
252
|
default: false,
|
|
253
253
|
description: ( localize(
|
|
254
|
-
|
|
254
|
+
13178,
|
|
255
255
|
"Defines if this task is the default task in the group, or a glob to match the file which should trigger this task."
|
|
256
256
|
))
|
|
257
257
|
}
|
|
@@ -262,16 +262,16 @@ const group = {
|
|
|
262
262
|
kind: "build",
|
|
263
263
|
isDefault: true
|
|
264
264
|
},
|
|
265
|
-
description: ( localize(
|
|
265
|
+
description: ( localize(13179, "Marks the task as the default build task."))
|
|
266
266
|
}, {
|
|
267
267
|
body: {
|
|
268
268
|
kind: "test",
|
|
269
269
|
isDefault: true
|
|
270
270
|
},
|
|
271
|
-
description: ( localize(
|
|
271
|
+
description: ( localize(13180, "Marks the task as the default test task."))
|
|
272
272
|
}],
|
|
273
273
|
description: ( localize(
|
|
274
|
-
|
|
274
|
+
13181,
|
|
275
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."
|
|
276
276
|
))
|
|
277
277
|
};
|
|
@@ -280,7 +280,7 @@ const taskType = {
|
|
|
280
280
|
enum: ["shell"],
|
|
281
281
|
default: "process",
|
|
282
282
|
description: ( localize(
|
|
283
|
-
|
|
283
|
+
13182,
|
|
284
284
|
"Defines whether the task is run as a process or as a command inside a shell."
|
|
285
285
|
))
|
|
286
286
|
};
|
|
@@ -294,7 +294,7 @@ const command = {
|
|
|
294
294
|
type: "string"
|
|
295
295
|
},
|
|
296
296
|
description: ( localize(
|
|
297
|
-
|
|
297
|
+
13183,
|
|
298
298
|
"The shell command to be executed. Array items will be joined using a space character"
|
|
299
299
|
))
|
|
300
300
|
}]
|
|
@@ -311,32 +311,32 @@ const command = {
|
|
|
311
311
|
type: "string"
|
|
312
312
|
},
|
|
313
313
|
description: ( localize(
|
|
314
|
-
|
|
314
|
+
13183,
|
|
315
315
|
"The shell command to be executed. Array items will be joined using a space character"
|
|
316
316
|
))
|
|
317
317
|
}],
|
|
318
|
-
description: ( localize(
|
|
318
|
+
description: ( localize(13184, "The actual command value"))
|
|
319
319
|
},
|
|
320
320
|
quoting: {
|
|
321
321
|
type: "string",
|
|
322
322
|
enum: ["escape", "strong", "weak"],
|
|
323
323
|
enumDescriptions: [( localize(
|
|
324
|
-
|
|
324
|
+
13185,
|
|
325
325
|
"Escapes characters using the shell's escape character (e.g. ` under PowerShell and \\ under bash)."
|
|
326
326
|
)), ( localize(
|
|
327
|
-
|
|
327
|
+
13186,
|
|
328
328
|
"Quotes the argument using the shell's strong quote character (e.g. ' under PowerShell and bash)."
|
|
329
329
|
)), ( localize(
|
|
330
|
-
|
|
330
|
+
13187,
|
|
331
331
|
"Quotes the argument using the shell's weak quote character (e.g. \" under PowerShell and bash)."
|
|
332
332
|
))],
|
|
333
333
|
default: "strong",
|
|
334
|
-
description: ( localize(
|
|
334
|
+
description: ( localize(13188, "How the command value should be quoted."))
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
}],
|
|
338
338
|
description: ( localize(
|
|
339
|
-
|
|
339
|
+
13189,
|
|
340
340
|
"The command to be executed. Can be an external program or a shell command."
|
|
341
341
|
))
|
|
342
342
|
};
|
|
@@ -351,46 +351,46 @@ const args = {
|
|
|
351
351
|
properties: {
|
|
352
352
|
value: {
|
|
353
353
|
type: "string",
|
|
354
|
-
description: ( localize(
|
|
354
|
+
description: ( localize(13190, "The actual argument value"))
|
|
355
355
|
},
|
|
356
356
|
quoting: {
|
|
357
357
|
type: "string",
|
|
358
358
|
enum: ["escape", "strong", "weak"],
|
|
359
359
|
enumDescriptions: [( localize(
|
|
360
|
-
|
|
360
|
+
13185,
|
|
361
361
|
"Escapes characters using the shell's escape character (e.g. ` under PowerShell and \\ under bash)."
|
|
362
362
|
)), ( localize(
|
|
363
|
-
|
|
363
|
+
13186,
|
|
364
364
|
"Quotes the argument using the shell's strong quote character (e.g. ' under PowerShell and bash)."
|
|
365
365
|
)), ( localize(
|
|
366
|
-
|
|
366
|
+
13187,
|
|
367
367
|
"Quotes the argument using the shell's weak quote character (e.g. \" under PowerShell and bash)."
|
|
368
368
|
))],
|
|
369
369
|
default: "strong",
|
|
370
|
-
description: ( localize(
|
|
370
|
+
description: ( localize(13191, "How the argument value should be quoted."))
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
}]
|
|
374
374
|
},
|
|
375
|
-
description: ( localize(
|
|
375
|
+
description: ( localize(13192, "Arguments passed to the command when this task is invoked."))
|
|
376
376
|
};
|
|
377
377
|
const label = {
|
|
378
378
|
type: "string",
|
|
379
|
-
description: ( localize(
|
|
379
|
+
description: ( localize(13193, "The task's user interface label"))
|
|
380
380
|
};
|
|
381
381
|
const version = {
|
|
382
382
|
type: "string",
|
|
383
383
|
enum: ["2.0.0"],
|
|
384
|
-
description: ( localize(
|
|
384
|
+
description: ( localize(13194, "The config's version number."))
|
|
385
385
|
};
|
|
386
386
|
const identifier = {
|
|
387
387
|
type: "string",
|
|
388
388
|
description: ( localize(
|
|
389
|
-
|
|
389
|
+
13195,
|
|
390
390
|
"A user defined identifier to reference the task in launch.json or a dependsOn clause."
|
|
391
391
|
)),
|
|
392
392
|
deprecationMessage: ( localize(
|
|
393
|
-
|
|
393
|
+
13196,
|
|
394
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."
|
|
395
395
|
))
|
|
396
396
|
};
|
|
@@ -400,14 +400,14 @@ const runOptions = {
|
|
|
400
400
|
properties: {
|
|
401
401
|
reevaluateOnRerun: {
|
|
402
402
|
type: "boolean",
|
|
403
|
-
description: ( localize(
|
|
403
|
+
description: ( localize(13197, "Whether to reevaluate task variables on rerun.")),
|
|
404
404
|
default: true
|
|
405
405
|
},
|
|
406
406
|
runOn: {
|
|
407
407
|
type: "string",
|
|
408
408
|
enum: ["default", "folderOpen", "worktreeCreated"],
|
|
409
409
|
description: ( localize(
|
|
410
|
-
|
|
410
|
+
13198,
|
|
411
411
|
"Configures when the task should be run. If set to folderOpen, then the task will be run automatically when the folder is opened. If set to worktreeCreated, then the task will be run automatically when an Agent Session worktree is created."
|
|
412
412
|
)),
|
|
413
413
|
default: "default"
|
|
@@ -415,7 +415,7 @@ const runOptions = {
|
|
|
415
415
|
instanceLimit: {
|
|
416
416
|
type: "number",
|
|
417
417
|
description: ( localize(
|
|
418
|
-
|
|
418
|
+
13199,
|
|
419
419
|
"The number of instances of the task that are allowed to run simultaneously."
|
|
420
420
|
)),
|
|
421
421
|
default: 1
|
|
@@ -423,12 +423,12 @@ const runOptions = {
|
|
|
423
423
|
instancePolicy: {
|
|
424
424
|
type: "string",
|
|
425
425
|
enum: ["terminateNewest", "terminateOldest", "prompt", "warn", "silent"],
|
|
426
|
-
enumDescriptions: [( localize(
|
|
427
|
-
description: ( localize(
|
|
426
|
+
enumDescriptions: [( localize(13200, "Terminates the newest instance.")), ( localize(13201, "Terminates the oldest instance.")), ( localize(13202, "Asks which instance to terminate.")), ( localize(13203, "Does nothing but warns that the instance limit has been reached.")), ( localize(13204, "Does nothing."))],
|
|
427
|
+
description: ( localize(13205, "Policy to apply when instance limit is reached.")),
|
|
428
428
|
default: "prompt"
|
|
429
429
|
}
|
|
430
430
|
},
|
|
431
|
-
description: ( localize(
|
|
431
|
+
description: ( localize(13206, "The task's run related options"))
|
|
432
432
|
};
|
|
433
433
|
const commonSchemaDefinitions = schema$1.definitions;
|
|
434
434
|
const options = deepClone(commonSchemaDefinitions.options);
|
|
@@ -440,13 +440,13 @@ const taskConfiguration = {
|
|
|
440
440
|
properties: {
|
|
441
441
|
label: {
|
|
442
442
|
type: "string",
|
|
443
|
-
description: ( localize(
|
|
443
|
+
description: ( localize(13207, "The task's label"))
|
|
444
444
|
},
|
|
445
445
|
taskName: {
|
|
446
446
|
type: "string",
|
|
447
|
-
description: ( localize(
|
|
447
|
+
description: ( localize(13208, "The task's name")),
|
|
448
448
|
deprecationMessage: ( localize(
|
|
449
|
-
|
|
449
|
+
13209,
|
|
450
450
|
"The task's name property is deprecated. Use the label property instead."
|
|
451
451
|
))
|
|
452
452
|
},
|
|
@@ -455,7 +455,7 @@ const taskConfiguration = {
|
|
|
455
455
|
isBackground: {
|
|
456
456
|
type: "boolean",
|
|
457
457
|
description: ( localize(
|
|
458
|
-
|
|
458
|
+
13210,
|
|
459
459
|
"Whether the executed task is kept alive and is running in the background."
|
|
460
460
|
)),
|
|
461
461
|
default: true
|
|
@@ -463,7 +463,7 @@ const taskConfiguration = {
|
|
|
463
463
|
promptOnClose: {
|
|
464
464
|
type: "boolean",
|
|
465
465
|
description: ( localize(
|
|
466
|
-
|
|
466
|
+
13211,
|
|
467
467
|
"Whether the user is prompted when VS Code closes with a running task."
|
|
468
468
|
)),
|
|
469
469
|
default: false
|
|
@@ -476,7 +476,7 @@ const taskConfiguration = {
|
|
|
476
476
|
problemMatcher: {
|
|
477
477
|
$ref: "#/definitions/problemMatcherType",
|
|
478
478
|
description: ( localize(
|
|
479
|
-
|
|
479
|
+
13212,
|
|
480
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."
|
|
481
481
|
))
|
|
482
482
|
},
|
|
@@ -501,7 +501,7 @@ function updateTaskDefinitions() {
|
|
|
501
501
|
const schemaProperties = schema.properties;
|
|
502
502
|
schemaProperties.type = {
|
|
503
503
|
type: "string",
|
|
504
|
-
description: ( localize(
|
|
504
|
+
description: ( localize(13213, "The task type to customize")),
|
|
505
505
|
enum: [taskType.taskType]
|
|
506
506
|
};
|
|
507
507
|
if (taskType.required) {
|
|
@@ -524,7 +524,7 @@ const customize = deepClone(taskConfiguration);
|
|
|
524
524
|
customize.properties.customize = {
|
|
525
525
|
type: "string",
|
|
526
526
|
deprecationMessage: ( localize(
|
|
527
|
-
|
|
527
|
+
13214,
|
|
528
528
|
"The customize property is deprecated. See the 1.14 release notes on how to migrate to the new task customization approach"
|
|
529
529
|
))
|
|
530
530
|
};
|
|
@@ -554,7 +554,7 @@ taskDescriptionProperties.group = deepClone(group);
|
|
|
554
554
|
taskDescriptionProperties.runOptions = deepClone(runOptions);
|
|
555
555
|
taskDescriptionProperties.detail = detail;
|
|
556
556
|
taskDescriptionProperties.taskName.deprecationMessage = ( localize(
|
|
557
|
-
|
|
557
|
+
13209,
|
|
558
558
|
"The task's name property is deprecated. Use the label property instead."
|
|
559
559
|
));
|
|
560
560
|
const processTask = deepClone(taskDescription);
|
|
@@ -565,23 +565,23 @@ taskDescription.default = {
|
|
|
565
565
|
problemMatcher: []
|
|
566
566
|
};
|
|
567
567
|
definitions.showOutputType.deprecationMessage = ( localize(
|
|
568
|
-
|
|
568
|
+
13215,
|
|
569
569
|
"The property showOutput is deprecated. Use the reveal property inside the presentation property instead. See also the 1.14 release notes."
|
|
570
570
|
));
|
|
571
571
|
taskDescriptionProperties.echoCommand.deprecationMessage = ( localize(
|
|
572
|
-
|
|
572
|
+
13216,
|
|
573
573
|
"The property echoCommand is deprecated. Use the echo property inside the presentation property instead. See also the 1.14 release notes."
|
|
574
574
|
));
|
|
575
575
|
taskDescriptionProperties.suppressTaskName.deprecationMessage = ( localize(
|
|
576
|
-
|
|
576
|
+
13217,
|
|
577
577
|
"The property suppressTaskName is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes."
|
|
578
578
|
));
|
|
579
579
|
taskDescriptionProperties.isBuildCommand.deprecationMessage = ( localize(
|
|
580
|
-
|
|
580
|
+
13218,
|
|
581
581
|
"The property isBuildCommand is deprecated. Use the group property instead. See also the 1.14 release notes."
|
|
582
582
|
));
|
|
583
583
|
taskDescriptionProperties.isTestCommand.deprecationMessage = ( localize(
|
|
584
|
-
|
|
584
|
+
13219,
|
|
585
585
|
"The property isTestCommand is deprecated. Use the group property instead. See also the 1.14 release notes."
|
|
586
586
|
));
|
|
587
587
|
processTask.properties.type = {
|
|
@@ -589,7 +589,7 @@ processTask.properties.type = {
|
|
|
589
589
|
enum: ["process"],
|
|
590
590
|
default: "process",
|
|
591
591
|
description: ( localize(
|
|
592
|
-
|
|
592
|
+
13182,
|
|
593
593
|
"Defines whether the task is run as a process or as a command inside a shell."
|
|
594
594
|
))
|
|
595
595
|
};
|
|
@@ -615,11 +615,11 @@ definitionsTaskRunnerConfigurationProperties.type = deepClone(taskType);
|
|
|
615
615
|
definitionsTaskRunnerConfigurationProperties.group = deepClone(group);
|
|
616
616
|
definitionsTaskRunnerConfigurationProperties.presentation = deepClone(presentation);
|
|
617
617
|
definitionsTaskRunnerConfigurationProperties.suppressTaskName.deprecationMessage = ( localize(
|
|
618
|
-
|
|
618
|
+
13217,
|
|
619
619
|
"The property suppressTaskName is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes."
|
|
620
620
|
));
|
|
621
621
|
definitionsTaskRunnerConfigurationProperties.taskSelector.deprecationMessage = ( localize(
|
|
622
|
-
|
|
622
|
+
13220,
|
|
623
623
|
"The property taskSelector is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes."
|
|
624
624
|
));
|
|
625
625
|
const osSpecificTaskRunnerConfiguration = deepClone(definitions.taskRunnerConfiguration);
|
|
@@ -636,15 +636,15 @@ const schema = {
|
|
|
636
636
|
version: deepClone(version),
|
|
637
637
|
windows: {
|
|
638
638
|
"$ref": "#/definitions/osSpecificTaskRunnerConfiguration",
|
|
639
|
-
"description": ( localize(
|
|
639
|
+
"description": ( localize(13221, "Windows specific command configuration"))
|
|
640
640
|
},
|
|
641
641
|
osx: {
|
|
642
642
|
"$ref": "#/definitions/osSpecificTaskRunnerConfiguration",
|
|
643
|
-
"description": ( localize(
|
|
643
|
+
"description": ( localize(13222, "Mac specific command configuration"))
|
|
644
644
|
},
|
|
645
645
|
linux: {
|
|
646
646
|
"$ref": "#/definitions/osSpecificTaskRunnerConfiguration",
|
|
647
|
-
"description": ( localize(
|
|
647
|
+
"description": ( localize(13223, "Linux specific command configuration"))
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
}, {
|
|
@@ -13,6 +13,7 @@ export declare enum ProblemCollectorEventKind {
|
|
|
13
13
|
}
|
|
14
14
|
export interface IProblemCollectorEvent {
|
|
15
15
|
kind: ProblemCollectorEventKind;
|
|
16
|
+
capturedVariables?: ReadonlyMap<string, string>;
|
|
16
17
|
}
|
|
17
18
|
export interface IProblemMatcher {
|
|
18
19
|
processLine(line: string): void;
|
|
@@ -14,9 +14,10 @@ var ProblemCollectorEventKind;
|
|
|
14
14
|
})(ProblemCollectorEventKind || (ProblemCollectorEventKind = {}));
|
|
15
15
|
var IProblemCollectorEvent;
|
|
16
16
|
(function(IProblemCollectorEvent) {
|
|
17
|
-
function create(kind) {
|
|
17
|
+
function create(kind, capturedVariables) {
|
|
18
18
|
return ( Object.freeze({
|
|
19
|
-
kind
|
|
19
|
+
kind,
|
|
20
|
+
capturedVariables
|
|
20
21
|
}));
|
|
21
22
|
}
|
|
22
23
|
IProblemCollectorEvent.create = create;
|
|
@@ -482,8 +483,9 @@ class WatchingProblemCollector extends AbstractProblemCollector {
|
|
|
482
483
|
}
|
|
483
484
|
if (this._activeBackgroundMatchers.delete(background.key)) {
|
|
484
485
|
this.resetCurrentResource();
|
|
486
|
+
const capturedVariables = matches.groups ? ( new Map(Object.entries(matches.groups))) : undefined;
|
|
485
487
|
this._onDidStateChange.fire(
|
|
486
|
-
IProblemCollectorEvent.create(ProblemCollectorEventKind.BackgroundProcessingEnds)
|
|
488
|
+
IProblemCollectorEvent.create(ProblemCollectorEventKind.BackgroundProcessingEnds, capturedVariables)
|
|
487
489
|
);
|
|
488
490
|
result = true;
|
|
489
491
|
this.lines.push(line);
|