@codingame/monaco-vscode-task-service-override 4.5.0 → 4.5.2
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/index.d.ts +1 -1
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/browser/abstractTaskService.js +348 -593
- package/vscode/src/vs/workbench/contrib/tasks/browser/runAutomaticTasks.js +20 -31
- package/vscode/src/vs/workbench/contrib/tasks/browser/task.contribution.js +73 -214
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskQuickPick.js +37 -94
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskService.js +4 -7
- package/vscode/src/vs/workbench/contrib/tasks/browser/taskTerminalStatus.js +18 -57
- package/vscode/src/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +15 -22
- package/vscode/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.js +178 -170
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.js +67 -130
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v1.js +12 -35
- package/vscode/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.js +138 -257
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +173 -246
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +93 -95
- package/vscode/src/vs/workbench/contrib/tasks/common/taskTemplates.js +5 -20
- package/task.d.ts +0 -5
|
@@ -7,6 +7,7 @@ import { applyDeprecatedVariableMessage } from 'vscode/vscode/vs/workbench/servi
|
|
|
7
7
|
import { inputsSchema } from 'vscode/vscode/vs/workbench/services/configurationResolver/common/configurationResolverSchema';
|
|
8
8
|
import { getAllCodicons } from 'vscode/vscode/vs/base/common/codicons';
|
|
9
9
|
|
|
10
|
+
const _moduleId = "vs/workbench/contrib/tasks/common/jsonSchema_v2";
|
|
10
11
|
function fixReferences(literal) {
|
|
11
12
|
if (Array.isArray(literal)) {
|
|
12
13
|
literal.forEach(fixReferences);
|
|
@@ -29,8 +30,8 @@ const shellCommand = {
|
|
|
29
30
|
type: 'boolean',
|
|
30
31
|
default: true,
|
|
31
32
|
description: ( localizeWithPath(
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
_moduleId,
|
|
34
|
+
0,
|
|
34
35
|
'Specifies whether the command is a shell command or an external program. Defaults to false if omitted.'
|
|
35
36
|
))
|
|
36
37
|
},
|
|
@@ -39,18 +40,14 @@ const shellCommand = {
|
|
|
39
40
|
}
|
|
40
41
|
],
|
|
41
42
|
deprecationMessage: ( localizeWithPath(
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
_moduleId,
|
|
44
|
+
1,
|
|
44
45
|
'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.'
|
|
45
46
|
))
|
|
46
47
|
};
|
|
47
48
|
const hide = {
|
|
48
49
|
type: 'boolean',
|
|
49
|
-
description: ( localizeWithPath(
|
|
50
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
51
|
-
'JsonSchema.hide',
|
|
52
|
-
'Hide this task from the run task quick pick'
|
|
53
|
-
)),
|
|
50
|
+
description: ( localizeWithPath(_moduleId, 2, 'Hide this task from the run task quick pick')),
|
|
54
51
|
default: true
|
|
55
52
|
};
|
|
56
53
|
const taskIdentifier = {
|
|
@@ -59,11 +56,7 @@ const taskIdentifier = {
|
|
|
59
56
|
properties: {
|
|
60
57
|
type: {
|
|
61
58
|
type: 'string',
|
|
62
|
-
description: ( localizeWithPath(
|
|
63
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
64
|
-
'JsonSchema.tasks.dependsOn.identifier',
|
|
65
|
-
'The task identifier.'
|
|
66
|
-
))
|
|
59
|
+
description: ( localizeWithPath(_moduleId, 3, 'The task identifier.'))
|
|
67
60
|
}
|
|
68
61
|
}
|
|
69
62
|
};
|
|
@@ -71,20 +64,12 @@ const dependsOn = {
|
|
|
71
64
|
anyOf: [
|
|
72
65
|
{
|
|
73
66
|
type: 'string',
|
|
74
|
-
description: ( localizeWithPath(
|
|
75
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
76
|
-
'JsonSchema.tasks.dependsOn.string',
|
|
77
|
-
'Another task this task depends on.'
|
|
78
|
-
))
|
|
67
|
+
description: ( localizeWithPath(_moduleId, 4, 'Another task this task depends on.'))
|
|
79
68
|
},
|
|
80
69
|
taskIdentifier,
|
|
81
70
|
{
|
|
82
71
|
type: 'array',
|
|
83
|
-
description: ( localizeWithPath(
|
|
84
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
85
|
-
'JsonSchema.tasks.dependsOn.array',
|
|
86
|
-
'The other tasks this task depends on.'
|
|
87
|
-
)),
|
|
72
|
+
description: ( localizeWithPath(_moduleId, 5, 'The other tasks this task depends on.')),
|
|
88
73
|
items: {
|
|
89
74
|
anyOf: [
|
|
90
75
|
{
|
|
@@ -96,8 +81,8 @@ const dependsOn = {
|
|
|
96
81
|
}
|
|
97
82
|
],
|
|
98
83
|
description: ( localizeWithPath(
|
|
99
|
-
|
|
100
|
-
|
|
84
|
+
_moduleId,
|
|
85
|
+
6,
|
|
101
86
|
'Either a string representing another task or an array of other tasks that this task depends on.'
|
|
102
87
|
))
|
|
103
88
|
};
|
|
@@ -105,56 +90,36 @@ const dependsOrder = {
|
|
|
105
90
|
type: 'string',
|
|
106
91
|
enum: ['parallel', 'sequence'],
|
|
107
92
|
enumDescriptions: [
|
|
108
|
-
( localizeWithPath(
|
|
109
|
-
|
|
110
|
-
'JsonSchema.tasks.dependsOrder.parallel',
|
|
111
|
-
'Run all dependsOn tasks in parallel.'
|
|
112
|
-
)),
|
|
113
|
-
( localizeWithPath(
|
|
114
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
115
|
-
'JsonSchema.tasks.dependsOrder.sequence',
|
|
116
|
-
'Run all dependsOn tasks in sequence.'
|
|
117
|
-
)),
|
|
93
|
+
( localizeWithPath(_moduleId, 7, 'Run all dependsOn tasks in parallel.')),
|
|
94
|
+
( localizeWithPath(_moduleId, 8, 'Run all dependsOn tasks in sequence.')),
|
|
118
95
|
],
|
|
119
96
|
default: 'parallel',
|
|
120
97
|
description: ( localizeWithPath(
|
|
121
|
-
|
|
122
|
-
|
|
98
|
+
_moduleId,
|
|
99
|
+
9,
|
|
123
100
|
'Determines the order of the dependsOn tasks for this task. Note that this property is not recursive.'
|
|
124
101
|
))
|
|
125
102
|
};
|
|
126
103
|
const detail = {
|
|
127
104
|
type: 'string',
|
|
128
105
|
description: ( localizeWithPath(
|
|
129
|
-
|
|
130
|
-
|
|
106
|
+
_moduleId,
|
|
107
|
+
10,
|
|
131
108
|
'An optional description of a task that shows in the Run Task quick pick as a detail.'
|
|
132
109
|
))
|
|
133
110
|
};
|
|
134
111
|
const icon = {
|
|
135
112
|
type: 'object',
|
|
136
|
-
description: ( localizeWithPath(
|
|
137
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
138
|
-
'JsonSchema.tasks.icon',
|
|
139
|
-
'An optional icon for the task'
|
|
140
|
-
)),
|
|
113
|
+
description: ( localizeWithPath(_moduleId, 11, 'An optional icon for the task')),
|
|
141
114
|
properties: {
|
|
142
115
|
id: {
|
|
143
|
-
description: ( localizeWithPath(
|
|
144
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
145
|
-
'JsonSchema.tasks.icon.id',
|
|
146
|
-
'An optional codicon ID to use'
|
|
147
|
-
)),
|
|
116
|
+
description: ( localizeWithPath(_moduleId, 12, 'An optional codicon ID to use')),
|
|
148
117
|
type: ['string', 'null'],
|
|
149
118
|
enum: Array.from(getAllCodicons(), icon => icon.id),
|
|
150
119
|
markdownEnumDescriptions: Array.from(getAllCodicons(), icon => `$(${icon.id})`),
|
|
151
120
|
},
|
|
152
121
|
color: {
|
|
153
|
-
description: ( localizeWithPath(
|
|
154
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
155
|
-
'JsonSchema.tasks.icon.color',
|
|
156
|
-
'An optional color of the icon'
|
|
157
|
-
)),
|
|
122
|
+
description: ( localizeWithPath(_moduleId, 13, 'An optional color of the icon')),
|
|
158
123
|
type: ['string', 'null'],
|
|
159
124
|
enum: [
|
|
160
125
|
'terminal.ansiBlack',
|
|
@@ -180,8 +145,8 @@ const presentation = {
|
|
|
180
145
|
clear: false,
|
|
181
146
|
},
|
|
182
147
|
description: ( localizeWithPath(
|
|
183
|
-
|
|
184
|
-
|
|
148
|
+
_moduleId,
|
|
149
|
+
14,
|
|
185
150
|
'Configures the panel that is used to present the task\'s output and reads its input.'
|
|
186
151
|
)),
|
|
187
152
|
additionalProperties: false,
|
|
@@ -190,8 +155,8 @@ const presentation = {
|
|
|
190
155
|
type: 'boolean',
|
|
191
156
|
default: true,
|
|
192
157
|
description: ( localizeWithPath(
|
|
193
|
-
|
|
194
|
-
|
|
158
|
+
_moduleId,
|
|
159
|
+
15,
|
|
195
160
|
'Controls whether the executed command is echoed to the panel. Default is true.'
|
|
196
161
|
))
|
|
197
162
|
},
|
|
@@ -199,8 +164,8 @@ const presentation = {
|
|
|
199
164
|
type: 'boolean',
|
|
200
165
|
default: false,
|
|
201
166
|
description: ( localizeWithPath(
|
|
202
|
-
|
|
203
|
-
|
|
167
|
+
_moduleId,
|
|
168
|
+
16,
|
|
204
169
|
'Controls whether the panel takes focus. Default is false. If set to true the panel is revealed as well.'
|
|
205
170
|
))
|
|
206
171
|
},
|
|
@@ -209,25 +174,21 @@ const presentation = {
|
|
|
209
174
|
enum: ['always', 'onProblem', 'never'],
|
|
210
175
|
enumDescriptions: [
|
|
211
176
|
( localizeWithPath(
|
|
212
|
-
|
|
213
|
-
|
|
177
|
+
_moduleId,
|
|
178
|
+
17,
|
|
214
179
|
'Always reveals the problems panel when this task is executed.'
|
|
215
180
|
)),
|
|
181
|
+
( localizeWithPath(_moduleId, 18, 'Only reveals the problems panel if a problem is found.')),
|
|
216
182
|
( localizeWithPath(
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
'Only reveals the problems panel if a problem is found.'
|
|
220
|
-
)),
|
|
221
|
-
( localizeWithPath(
|
|
222
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
223
|
-
'JsonSchema.tasks.presentation.revealProblems.never',
|
|
183
|
+
_moduleId,
|
|
184
|
+
19,
|
|
224
185
|
'Never reveals the problems panel when this task is executed.'
|
|
225
186
|
)),
|
|
226
187
|
],
|
|
227
188
|
default: 'never',
|
|
228
189
|
description: ( localizeWithPath(
|
|
229
|
-
|
|
230
|
-
|
|
190
|
+
_moduleId,
|
|
191
|
+
20,
|
|
231
192
|
'Controls whether the problems panel is revealed when running this task or not. Takes precedence over option \"reveal\". Default is \"never\".'
|
|
232
193
|
))
|
|
233
194
|
},
|
|
@@ -235,26 +196,18 @@ const presentation = {
|
|
|
235
196
|
type: 'string',
|
|
236
197
|
enum: ['always', 'silent', 'never'],
|
|
237
198
|
enumDescriptions: [
|
|
199
|
+
( localizeWithPath(_moduleId, 21, 'Always reveals the terminal when this task is executed.')),
|
|
238
200
|
( localizeWithPath(
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
'Always reveals the terminal when this task is executed.'
|
|
242
|
-
)),
|
|
243
|
-
( localizeWithPath(
|
|
244
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
245
|
-
'JsonSchema.tasks.presentation.reveal.silent',
|
|
201
|
+
_moduleId,
|
|
202
|
+
22,
|
|
246
203
|
'Only reveals the terminal if the task exits with an error or the problem matcher finds an error.'
|
|
247
204
|
)),
|
|
248
|
-
( localizeWithPath(
|
|
249
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
250
|
-
'JsonSchema.tasks.presentation.reveal.never',
|
|
251
|
-
'Never reveals the terminal when this task is executed.'
|
|
252
|
-
)),
|
|
205
|
+
( localizeWithPath(_moduleId, 23, 'Never reveals the terminal when this task is executed.')),
|
|
253
206
|
],
|
|
254
207
|
default: 'always',
|
|
255
208
|
description: ( localizeWithPath(
|
|
256
|
-
|
|
257
|
-
|
|
209
|
+
_moduleId,
|
|
210
|
+
24,
|
|
258
211
|
'Controls whether the terminal running the task is revealed or not. May be overridden by option \"revealProblems\". Default is \"always\".'
|
|
259
212
|
))
|
|
260
213
|
},
|
|
@@ -263,8 +216,8 @@ const presentation = {
|
|
|
263
216
|
enum: ['shared', 'dedicated', 'new'],
|
|
264
217
|
default: 'shared',
|
|
265
218
|
description: ( localizeWithPath(
|
|
266
|
-
|
|
267
|
-
|
|
219
|
+
_moduleId,
|
|
220
|
+
25,
|
|
268
221
|
'Controls if the panel is shared between tasks, dedicated to this task or a new one is created on every run.'
|
|
269
222
|
))
|
|
270
223
|
},
|
|
@@ -272,8 +225,8 @@ const presentation = {
|
|
|
272
225
|
type: 'boolean',
|
|
273
226
|
default: true,
|
|
274
227
|
description: ( localizeWithPath(
|
|
275
|
-
|
|
276
|
-
|
|
228
|
+
_moduleId,
|
|
229
|
+
26,
|
|
277
230
|
'Controls whether to show the `Terminal will be reused by tasks, press any key to close it` message.'
|
|
278
231
|
))
|
|
279
232
|
},
|
|
@@ -281,24 +234,24 @@ const presentation = {
|
|
|
281
234
|
type: 'boolean',
|
|
282
235
|
default: false,
|
|
283
236
|
description: ( localizeWithPath(
|
|
284
|
-
|
|
285
|
-
|
|
237
|
+
_moduleId,
|
|
238
|
+
27,
|
|
286
239
|
'Controls whether the terminal is cleared before executing the task.'
|
|
287
240
|
))
|
|
288
241
|
},
|
|
289
242
|
group: {
|
|
290
243
|
type: 'string',
|
|
291
244
|
description: ( localizeWithPath(
|
|
292
|
-
|
|
293
|
-
|
|
245
|
+
_moduleId,
|
|
246
|
+
28,
|
|
294
247
|
'Controls whether the task is executed in a specific terminal group using split panes.'
|
|
295
248
|
))
|
|
296
249
|
},
|
|
297
250
|
close: {
|
|
298
251
|
type: 'boolean',
|
|
299
252
|
description: ( localizeWithPath(
|
|
300
|
-
|
|
301
|
-
|
|
253
|
+
_moduleId,
|
|
254
|
+
29,
|
|
302
255
|
'Controls whether the terminal the task runs in is closed when the task exits.'
|
|
303
256
|
))
|
|
304
257
|
}
|
|
@@ -306,8 +259,8 @@ const presentation = {
|
|
|
306
259
|
};
|
|
307
260
|
const terminal = deepClone(presentation);
|
|
308
261
|
terminal.deprecationMessage = ( localizeWithPath(
|
|
309
|
-
|
|
310
|
-
|
|
262
|
+
_moduleId,
|
|
263
|
+
30,
|
|
311
264
|
'The terminal property is deprecated. Use presentation instead'
|
|
312
265
|
));
|
|
313
266
|
const groupStrings = {
|
|
@@ -319,26 +272,18 @@ const groupStrings = {
|
|
|
319
272
|
],
|
|
320
273
|
enumDescriptions: [
|
|
321
274
|
( localizeWithPath(
|
|
322
|
-
|
|
323
|
-
|
|
275
|
+
_moduleId,
|
|
276
|
+
31,
|
|
324
277
|
'Marks the task as a build task accessible through the \'Run Build Task\' command.'
|
|
325
278
|
)),
|
|
326
279
|
( localizeWithPath(
|
|
327
|
-
|
|
328
|
-
|
|
280
|
+
_moduleId,
|
|
281
|
+
32,
|
|
329
282
|
'Marks the task as a test task accessible through the \'Run Test Task\' command.'
|
|
330
283
|
)),
|
|
331
|
-
( localizeWithPath(
|
|
332
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
333
|
-
'JsonSchema.tasks.group.none',
|
|
334
|
-
'Assigns the task to no group'
|
|
335
|
-
))
|
|
284
|
+
( localizeWithPath(_moduleId, 33, 'Assigns the task to no group'))
|
|
336
285
|
],
|
|
337
|
-
description: ( localizeWithPath(
|
|
338
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
339
|
-
'JsonSchema.tasks.group.kind',
|
|
340
|
-
'The task\'s execution group.'
|
|
341
|
-
))
|
|
286
|
+
description: ( localizeWithPath(_moduleId, 34, 'The task\'s execution group.'))
|
|
342
287
|
};
|
|
343
288
|
const group = {
|
|
344
289
|
oneOf: [
|
|
@@ -351,8 +296,8 @@ const group = {
|
|
|
351
296
|
type: ['boolean', 'string'],
|
|
352
297
|
default: false,
|
|
353
298
|
description: ( localizeWithPath(
|
|
354
|
-
|
|
355
|
-
|
|
299
|
+
_moduleId,
|
|
300
|
+
35,
|
|
356
301
|
'Defines if this task is the default task in the group, or a glob to match the file which should trigger this task.'
|
|
357
302
|
))
|
|
358
303
|
}
|
|
@@ -362,24 +307,16 @@ const group = {
|
|
|
362
307
|
defaultSnippets: [
|
|
363
308
|
{
|
|
364
309
|
body: { kind: 'build', isDefault: true },
|
|
365
|
-
description: ( localizeWithPath(
|
|
366
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
367
|
-
'JsonSchema.tasks.group.defaultBuild',
|
|
368
|
-
'Marks the task as the default build task.'
|
|
369
|
-
))
|
|
310
|
+
description: ( localizeWithPath(_moduleId, 36, 'Marks the task as the default build task.'))
|
|
370
311
|
},
|
|
371
312
|
{
|
|
372
313
|
body: { kind: 'test', isDefault: true },
|
|
373
|
-
description: ( localizeWithPath(
|
|
374
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
375
|
-
'JsonSchema.tasks.group.defaultTest',
|
|
376
|
-
'Marks the task as the default test task.'
|
|
377
|
-
))
|
|
314
|
+
description: ( localizeWithPath(_moduleId, 37, 'Marks the task as the default test task.'))
|
|
378
315
|
}
|
|
379
316
|
],
|
|
380
317
|
description: ( localizeWithPath(
|
|
381
|
-
|
|
382
|
-
|
|
318
|
+
_moduleId,
|
|
319
|
+
38,
|
|
383
320
|
'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.'
|
|
384
321
|
))
|
|
385
322
|
};
|
|
@@ -388,8 +325,8 @@ const taskType = {
|
|
|
388
325
|
enum: ['shell'],
|
|
389
326
|
default: 'process',
|
|
390
327
|
description: ( localizeWithPath(
|
|
391
|
-
|
|
392
|
-
|
|
328
|
+
_moduleId,
|
|
329
|
+
39,
|
|
393
330
|
'Defines whether the task is run as a process or as a command inside a shell.'
|
|
394
331
|
))
|
|
395
332
|
};
|
|
@@ -406,8 +343,8 @@ const command = {
|
|
|
406
343
|
type: 'string'
|
|
407
344
|
},
|
|
408
345
|
description: ( localizeWithPath(
|
|
409
|
-
|
|
410
|
-
|
|
346
|
+
_moduleId,
|
|
347
|
+
40,
|
|
411
348
|
'The shell command to be executed. Array items will be joined using a space character'
|
|
412
349
|
))
|
|
413
350
|
}
|
|
@@ -428,51 +365,43 @@ const command = {
|
|
|
428
365
|
type: 'string'
|
|
429
366
|
},
|
|
430
367
|
description: ( localizeWithPath(
|
|
431
|
-
|
|
432
|
-
|
|
368
|
+
_moduleId,
|
|
369
|
+
40,
|
|
433
370
|
'The shell command to be executed. Array items will be joined using a space character'
|
|
434
371
|
))
|
|
435
372
|
}
|
|
436
373
|
],
|
|
437
|
-
description: ( localizeWithPath(
|
|
438
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
439
|
-
'JsonSchema.command.quotedString.value',
|
|
440
|
-
'The actual command value'
|
|
441
|
-
))
|
|
374
|
+
description: ( localizeWithPath(_moduleId, 41, 'The actual command value'))
|
|
442
375
|
},
|
|
443
376
|
quoting: {
|
|
444
377
|
type: 'string',
|
|
445
378
|
enum: ['escape', 'strong', 'weak'],
|
|
446
379
|
enumDescriptions: [
|
|
447
380
|
( localizeWithPath(
|
|
448
|
-
|
|
449
|
-
|
|
381
|
+
_moduleId,
|
|
382
|
+
42,
|
|
450
383
|
'Escapes characters using the shell\'s escape character (e.g. ` under PowerShell and \\ under bash).'
|
|
451
384
|
)),
|
|
452
385
|
( localizeWithPath(
|
|
453
|
-
|
|
454
|
-
|
|
386
|
+
_moduleId,
|
|
387
|
+
43,
|
|
455
388
|
'Quotes the argument using the shell\'s strong quote character (e.g. \' under PowerShell and bash).'
|
|
456
389
|
)),
|
|
457
390
|
( localizeWithPath(
|
|
458
|
-
|
|
459
|
-
|
|
391
|
+
_moduleId,
|
|
392
|
+
44,
|
|
460
393
|
'Quotes the argument using the shell\'s weak quote character (e.g. " under PowerShell and bash).'
|
|
461
394
|
)),
|
|
462
395
|
],
|
|
463
396
|
default: 'strong',
|
|
464
|
-
description: ( localizeWithPath(
|
|
465
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
466
|
-
'JsonSchema.command.quotesString.quote',
|
|
467
|
-
'How the command value should be quoted.'
|
|
468
|
-
))
|
|
397
|
+
description: ( localizeWithPath(_moduleId, 45, 'How the command value should be quoted.'))
|
|
469
398
|
}
|
|
470
399
|
}
|
|
471
400
|
}
|
|
472
401
|
],
|
|
473
402
|
description: ( localizeWithPath(
|
|
474
|
-
|
|
475
|
-
|
|
403
|
+
_moduleId,
|
|
404
|
+
46,
|
|
476
405
|
'The command to be executed. Can be an external program or a shell command.'
|
|
477
406
|
))
|
|
478
407
|
};
|
|
@@ -489,76 +418,60 @@ const args = {
|
|
|
489
418
|
properties: {
|
|
490
419
|
value: {
|
|
491
420
|
type: 'string',
|
|
492
|
-
description: ( localizeWithPath(
|
|
493
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
494
|
-
'JsonSchema.args.quotedString.value',
|
|
495
|
-
'The actual argument value'
|
|
496
|
-
))
|
|
421
|
+
description: ( localizeWithPath(_moduleId, 47, 'The actual argument value'))
|
|
497
422
|
},
|
|
498
423
|
quoting: {
|
|
499
424
|
type: 'string',
|
|
500
425
|
enum: ['escape', 'strong', 'weak'],
|
|
501
426
|
enumDescriptions: [
|
|
502
427
|
( localizeWithPath(
|
|
503
|
-
|
|
504
|
-
|
|
428
|
+
_moduleId,
|
|
429
|
+
42,
|
|
505
430
|
'Escapes characters using the shell\'s escape character (e.g. ` under PowerShell and \\ under bash).'
|
|
506
431
|
)),
|
|
507
432
|
( localizeWithPath(
|
|
508
|
-
|
|
509
|
-
|
|
433
|
+
_moduleId,
|
|
434
|
+
43,
|
|
510
435
|
'Quotes the argument using the shell\'s strong quote character (e.g. \' under PowerShell and bash).'
|
|
511
436
|
)),
|
|
512
437
|
( localizeWithPath(
|
|
513
|
-
|
|
514
|
-
|
|
438
|
+
_moduleId,
|
|
439
|
+
44,
|
|
515
440
|
'Quotes the argument using the shell\'s weak quote character (e.g. " under PowerShell and bash).'
|
|
516
441
|
)),
|
|
517
442
|
],
|
|
518
443
|
default: 'strong',
|
|
519
|
-
description: ( localizeWithPath(
|
|
520
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
521
|
-
'JsonSchema.args.quotesString.quote',
|
|
522
|
-
'How the argument value should be quoted.'
|
|
523
|
-
))
|
|
444
|
+
description: ( localizeWithPath(_moduleId, 48, 'How the argument value should be quoted.'))
|
|
524
445
|
}
|
|
525
446
|
}
|
|
526
447
|
}
|
|
527
448
|
]
|
|
528
449
|
},
|
|
529
450
|
description: ( localizeWithPath(
|
|
530
|
-
|
|
531
|
-
|
|
451
|
+
_moduleId,
|
|
452
|
+
49,
|
|
532
453
|
'Arguments passed to the command when this task is invoked.'
|
|
533
454
|
))
|
|
534
455
|
};
|
|
535
456
|
const label = {
|
|
536
457
|
type: 'string',
|
|
537
|
-
description: ( localizeWithPath(
|
|
538
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
539
|
-
'JsonSchema.tasks.label',
|
|
540
|
-
"The task's user interface label"
|
|
541
|
-
))
|
|
458
|
+
description: ( localizeWithPath(_moduleId, 50, "The task's user interface label"))
|
|
542
459
|
};
|
|
543
460
|
const version = {
|
|
544
461
|
type: 'string',
|
|
545
462
|
enum: ['2.0.0'],
|
|
546
|
-
description: ( localizeWithPath(
|
|
547
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
548
|
-
'JsonSchema.version',
|
|
549
|
-
'The config\'s version number.'
|
|
550
|
-
))
|
|
463
|
+
description: ( localizeWithPath(_moduleId, 51, 'The config\'s version number.'))
|
|
551
464
|
};
|
|
552
465
|
const identifier = {
|
|
553
466
|
type: 'string',
|
|
554
467
|
description: ( localizeWithPath(
|
|
555
|
-
|
|
556
|
-
|
|
468
|
+
_moduleId,
|
|
469
|
+
52,
|
|
557
470
|
'A user defined identifier to reference the task in launch.json or a dependsOn clause.'
|
|
558
471
|
)),
|
|
559
472
|
deprecationMessage: ( localizeWithPath(
|
|
560
|
-
|
|
561
|
-
|
|
473
|
+
_moduleId,
|
|
474
|
+
53,
|
|
562
475
|
'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.'
|
|
563
476
|
))
|
|
564
477
|
};
|
|
@@ -568,19 +481,15 @@ const runOptions = {
|
|
|
568
481
|
properties: {
|
|
569
482
|
reevaluateOnRerun: {
|
|
570
483
|
type: 'boolean',
|
|
571
|
-
description: ( localizeWithPath(
|
|
572
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
573
|
-
'JsonSchema.tasks.reevaluateOnRerun',
|
|
574
|
-
'Whether to reevaluate task variables on rerun.'
|
|
575
|
-
)),
|
|
484
|
+
description: ( localizeWithPath(_moduleId, 54, 'Whether to reevaluate task variables on rerun.')),
|
|
576
485
|
default: true
|
|
577
486
|
},
|
|
578
487
|
runOn: {
|
|
579
488
|
type: 'string',
|
|
580
489
|
enum: ['default', 'folderOpen'],
|
|
581
490
|
description: ( localizeWithPath(
|
|
582
|
-
|
|
583
|
-
|
|
491
|
+
_moduleId,
|
|
492
|
+
55,
|
|
584
493
|
'Configures when the task should be run. If set to folderOpen, then the task will be run automatically when the folder is opened.'
|
|
585
494
|
)),
|
|
586
495
|
default: 'default'
|
|
@@ -588,18 +497,14 @@ const runOptions = {
|
|
|
588
497
|
instanceLimit: {
|
|
589
498
|
type: 'number',
|
|
590
499
|
description: ( localizeWithPath(
|
|
591
|
-
|
|
592
|
-
|
|
500
|
+
_moduleId,
|
|
501
|
+
56,
|
|
593
502
|
'The number of instances of the task that are allowed to run simultaneously.'
|
|
594
503
|
)),
|
|
595
504
|
default: 1
|
|
596
505
|
},
|
|
597
506
|
},
|
|
598
|
-
description: ( localizeWithPath(
|
|
599
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
600
|
-
'JsonSchema.tasks.runOptions',
|
|
601
|
-
'The task\'s run related options'
|
|
602
|
-
))
|
|
507
|
+
description: ( localizeWithPath(_moduleId, 57, 'The task\'s run related options'))
|
|
603
508
|
};
|
|
604
509
|
const commonSchemaDefinitions = schema$1.definitions;
|
|
605
510
|
const options = deepClone(commonSchemaDefinitions.options);
|
|
@@ -611,22 +516,14 @@ const taskConfiguration = {
|
|
|
611
516
|
properties: {
|
|
612
517
|
label: {
|
|
613
518
|
type: 'string',
|
|
614
|
-
description: ( localizeWithPath(
|
|
615
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
616
|
-
'JsonSchema.tasks.taskLabel',
|
|
617
|
-
"The task's label"
|
|
618
|
-
))
|
|
519
|
+
description: ( localizeWithPath(_moduleId, 58, "The task's label"))
|
|
619
520
|
},
|
|
620
521
|
taskName: {
|
|
621
522
|
type: 'string',
|
|
622
|
-
description: ( localizeWithPath(
|
|
623
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
624
|
-
'JsonSchema.tasks.taskName',
|
|
625
|
-
'The task\'s name'
|
|
626
|
-
)),
|
|
523
|
+
description: ( localizeWithPath(_moduleId, 59, 'The task\'s name')),
|
|
627
524
|
deprecationMessage: ( localizeWithPath(
|
|
628
|
-
|
|
629
|
-
|
|
525
|
+
_moduleId,
|
|
526
|
+
60,
|
|
630
527
|
'The task\'s name property is deprecated. Use the label property instead.'
|
|
631
528
|
))
|
|
632
529
|
},
|
|
@@ -635,8 +532,8 @@ const taskConfiguration = {
|
|
|
635
532
|
isBackground: {
|
|
636
533
|
type: 'boolean',
|
|
637
534
|
description: ( localizeWithPath(
|
|
638
|
-
|
|
639
|
-
|
|
535
|
+
_moduleId,
|
|
536
|
+
61,
|
|
640
537
|
'Whether the executed task is kept alive and is running in the background.'
|
|
641
538
|
)),
|
|
642
539
|
default: true
|
|
@@ -644,8 +541,8 @@ const taskConfiguration = {
|
|
|
644
541
|
promptOnClose: {
|
|
645
542
|
type: 'boolean',
|
|
646
543
|
description: ( localizeWithPath(
|
|
647
|
-
|
|
648
|
-
|
|
544
|
+
_moduleId,
|
|
545
|
+
62,
|
|
649
546
|
'Whether the user is prompted when VS Code closes with a running task.'
|
|
650
547
|
)),
|
|
651
548
|
default: false
|
|
@@ -657,8 +554,8 @@ const taskConfiguration = {
|
|
|
657
554
|
problemMatcher: {
|
|
658
555
|
$ref: '#/definitions/problemMatcherType',
|
|
659
556
|
description: ( localizeWithPath(
|
|
660
|
-
|
|
661
|
-
|
|
557
|
+
_moduleId,
|
|
558
|
+
63,
|
|
662
559
|
'The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers.'
|
|
663
560
|
))
|
|
664
561
|
},
|
|
@@ -683,11 +580,7 @@ function updateTaskDefinitions() {
|
|
|
683
580
|
const schemaProperties = schema.properties;
|
|
684
581
|
schemaProperties.type = {
|
|
685
582
|
type: 'string',
|
|
686
|
-
description: ( localizeWithPath(
|
|
687
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
688
|
-
'JsonSchema.customizations.customizes.type',
|
|
689
|
-
'The task type to customize'
|
|
690
|
-
)),
|
|
583
|
+
description: ( localizeWithPath(_moduleId, 64, 'The task type to customize')),
|
|
691
584
|
enum: [taskType.taskType]
|
|
692
585
|
};
|
|
693
586
|
if (taskType.required) {
|
|
@@ -698,7 +591,7 @@ function updateTaskDefinitions() {
|
|
|
698
591
|
}
|
|
699
592
|
schema.required.push('type');
|
|
700
593
|
if (taskType.properties) {
|
|
701
|
-
for (const key of ( Object.keys(taskType.properties))) {
|
|
594
|
+
for (const key of ( (Object.keys(taskType.properties)))) {
|
|
702
595
|
const property = taskType.properties[key];
|
|
703
596
|
schemaProperties[key] = deepClone(property);
|
|
704
597
|
}
|
|
@@ -711,8 +604,8 @@ const customize = deepClone(taskConfiguration);
|
|
|
711
604
|
customize.properties.customize = {
|
|
712
605
|
type: 'string',
|
|
713
606
|
deprecationMessage: ( localizeWithPath(
|
|
714
|
-
|
|
715
|
-
|
|
607
|
+
_moduleId,
|
|
608
|
+
65,
|
|
716
609
|
'The customize property is deprecated. See the 1.14 release notes on how to migrate to the new task customization approach'
|
|
717
610
|
))
|
|
718
611
|
};
|
|
@@ -741,8 +634,8 @@ taskDescriptionProperties.group = deepClone(group);
|
|
|
741
634
|
taskDescriptionProperties.runOptions = deepClone(runOptions);
|
|
742
635
|
taskDescriptionProperties.detail = detail;
|
|
743
636
|
taskDescriptionProperties.taskName.deprecationMessage = ( localizeWithPath(
|
|
744
|
-
|
|
745
|
-
|
|
637
|
+
_moduleId,
|
|
638
|
+
60,
|
|
746
639
|
'The task\'s name property is deprecated. Use the label property instead.'
|
|
747
640
|
));
|
|
748
641
|
const processTask = deepClone(taskDescription);
|
|
@@ -753,28 +646,28 @@ taskDescription.default = {
|
|
|
753
646
|
problemMatcher: []
|
|
754
647
|
};
|
|
755
648
|
definitions.showOutputType.deprecationMessage = ( localizeWithPath(
|
|
756
|
-
|
|
757
|
-
|
|
649
|
+
_moduleId,
|
|
650
|
+
66,
|
|
758
651
|
'The property showOutput is deprecated. Use the reveal property inside the presentation property instead. See also the 1.14 release notes.'
|
|
759
652
|
));
|
|
760
653
|
taskDescriptionProperties.echoCommand.deprecationMessage = ( localizeWithPath(
|
|
761
|
-
|
|
762
|
-
|
|
654
|
+
_moduleId,
|
|
655
|
+
67,
|
|
763
656
|
'The property echoCommand is deprecated. Use the echo property inside the presentation property instead. See also the 1.14 release notes.'
|
|
764
657
|
));
|
|
765
658
|
taskDescriptionProperties.suppressTaskName.deprecationMessage = ( localizeWithPath(
|
|
766
|
-
|
|
767
|
-
|
|
659
|
+
_moduleId,
|
|
660
|
+
68,
|
|
768
661
|
'The property suppressTaskName is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes.'
|
|
769
662
|
));
|
|
770
663
|
taskDescriptionProperties.isBuildCommand.deprecationMessage = ( localizeWithPath(
|
|
771
|
-
|
|
772
|
-
|
|
664
|
+
_moduleId,
|
|
665
|
+
69,
|
|
773
666
|
'The property isBuildCommand is deprecated. Use the group property instead. See also the 1.14 release notes.'
|
|
774
667
|
));
|
|
775
668
|
taskDescriptionProperties.isTestCommand.deprecationMessage = ( localizeWithPath(
|
|
776
|
-
|
|
777
|
-
|
|
669
|
+
_moduleId,
|
|
670
|
+
70,
|
|
778
671
|
'The property isTestCommand is deprecated. Use the group property instead. See also the 1.14 release notes.'
|
|
779
672
|
));
|
|
780
673
|
processTask.properties.type = {
|
|
@@ -782,8 +675,8 @@ processTask.properties.type = {
|
|
|
782
675
|
enum: ['process'],
|
|
783
676
|
default: 'process',
|
|
784
677
|
description: ( localizeWithPath(
|
|
785
|
-
|
|
786
|
-
|
|
678
|
+
_moduleId,
|
|
679
|
+
39,
|
|
787
680
|
'Defines whether the task is run as a process or as a command inside a shell.'
|
|
788
681
|
))
|
|
789
682
|
};
|
|
@@ -809,13 +702,13 @@ definitionsTaskRunnerConfigurationProperties.type = deepClone(taskType);
|
|
|
809
702
|
definitionsTaskRunnerConfigurationProperties.group = deepClone(group);
|
|
810
703
|
definitionsTaskRunnerConfigurationProperties.presentation = deepClone(presentation);
|
|
811
704
|
definitionsTaskRunnerConfigurationProperties.suppressTaskName.deprecationMessage = ( localizeWithPath(
|
|
812
|
-
|
|
813
|
-
|
|
705
|
+
_moduleId,
|
|
706
|
+
68,
|
|
814
707
|
'The property suppressTaskName is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes.'
|
|
815
708
|
));
|
|
816
709
|
definitionsTaskRunnerConfigurationProperties.taskSelector.deprecationMessage = ( localizeWithPath(
|
|
817
|
-
|
|
818
|
-
|
|
710
|
+
_moduleId,
|
|
711
|
+
71,
|
|
819
712
|
'The property taskSelector is deprecated. Inline the command with its arguments into the task instead. See also the 1.14 release notes.'
|
|
820
713
|
));
|
|
821
714
|
const osSpecificTaskRunnerConfiguration = deepClone(definitions.taskRunnerConfiguration);
|
|
@@ -834,27 +727,15 @@ const schema = {
|
|
|
834
727
|
version: deepClone(version),
|
|
835
728
|
windows: {
|
|
836
729
|
'$ref': '#/definitions/osSpecificTaskRunnerConfiguration',
|
|
837
|
-
'description': ( localizeWithPath(
|
|
838
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
839
|
-
'JsonSchema.windows',
|
|
840
|
-
'Windows specific command configuration'
|
|
841
|
-
))
|
|
730
|
+
'description': ( localizeWithPath(_moduleId, 72, 'Windows specific command configuration'))
|
|
842
731
|
},
|
|
843
732
|
osx: {
|
|
844
733
|
'$ref': '#/definitions/osSpecificTaskRunnerConfiguration',
|
|
845
|
-
'description': ( localizeWithPath(
|
|
846
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
847
|
-
'JsonSchema.mac',
|
|
848
|
-
'Mac specific command configuration'
|
|
849
|
-
))
|
|
734
|
+
'description': ( localizeWithPath(_moduleId, 73, 'Mac specific command configuration'))
|
|
850
735
|
},
|
|
851
736
|
linux: {
|
|
852
737
|
'$ref': '#/definitions/osSpecificTaskRunnerConfiguration',
|
|
853
|
-
'description': ( localizeWithPath(
|
|
854
|
-
'vs/workbench/contrib/tasks/common/jsonSchema_v2',
|
|
855
|
-
'JsonSchema.linux',
|
|
856
|
-
'Linux specific command configuration'
|
|
857
|
-
))
|
|
738
|
+
'description': ( localizeWithPath(_moduleId, 74, 'Linux specific command configuration'))
|
|
858
739
|
}
|
|
859
740
|
}
|
|
860
741
|
},
|
|
@@ -869,7 +750,7 @@ schema.definitions = definitions;
|
|
|
869
750
|
function deprecatedVariableMessage(schemaMap, property) {
|
|
870
751
|
const mapAtProperty = schemaMap[property].properties;
|
|
871
752
|
if (mapAtProperty) {
|
|
872
|
-
( Object.keys(mapAtProperty)).forEach(name => {
|
|
753
|
+
( (Object.keys(mapAtProperty))).forEach(name => {
|
|
873
754
|
deprecatedVariableMessage(mapAtProperty, name);
|
|
874
755
|
});
|
|
875
756
|
}
|
|
@@ -886,7 +767,7 @@ Object.getOwnPropertyNames(definitions).forEach(key => {
|
|
|
886
767
|
fixReferences(schema);
|
|
887
768
|
function updateProblemMatchers() {
|
|
888
769
|
try {
|
|
889
|
-
const matcherIds = ( ( ProblemMatcherRegistry.keys()).map(key => '$' + key));
|
|
770
|
+
const matcherIds = ( (( (ProblemMatcherRegistry.keys())).map(key => '$' + key)));
|
|
890
771
|
definitions.problemMatcherType2.oneOf[0].enum = matcherIds;
|
|
891
772
|
definitions.problemMatcherType2.oneOf[2].items.anyOf[0].enum = matcherIds;
|
|
892
773
|
}
|