@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.
@@ -1,6 +1,7 @@
1
1
  import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
2
  import { Schemas } from './problemMatcher.js';
3
3
 
4
+ const _moduleId = "vs/workbench/contrib/tasks/common/jsonSchemaCommon";
4
5
  const schema = {
5
6
  definitions: {
6
7
  showOutputType: {
@@ -9,17 +10,13 @@ const schema = {
9
10
  },
10
11
  options: {
11
12
  type: 'object',
12
- description: ( localizeWithPath(
13
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
14
- 'JsonSchema.options',
15
- 'Additional command options'
16
- )),
13
+ description: ( localizeWithPath(_moduleId, 0, 'Additional command options')),
17
14
  properties: {
18
15
  cwd: {
19
16
  type: 'string',
20
17
  description: ( localizeWithPath(
21
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
22
- 'JsonSchema.options.cwd',
18
+ _moduleId,
19
+ 1,
23
20
  'The current working directory of the executed program or script. If omitted Code\'s current workspace root is used.'
24
21
  ))
25
22
  },
@@ -29,8 +26,8 @@ const schema = {
29
26
  type: 'string'
30
27
  },
31
28
  description: ( localizeWithPath(
32
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
33
- 'JsonSchema.options.env',
29
+ _moduleId,
30
+ 2,
34
31
  'The environment of the executed program or shell. If omitted the parent process\' environment is used.'
35
32
  ))
36
33
  }
@@ -44,8 +41,8 @@ const schema = {
44
41
  {
45
42
  type: 'string',
46
43
  errorMessage: ( localizeWithPath(
47
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
48
- 'JsonSchema.tasks.matcherError',
44
+ _moduleId,
45
+ 3,
49
46
  'Unrecognized problem matcher. Is the extension that contributes this problem matcher installed?'
50
47
  ))
51
48
  },
@@ -57,8 +54,8 @@ const schema = {
57
54
  {
58
55
  type: 'string',
59
56
  errorMessage: ( localizeWithPath(
60
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
61
- 'JsonSchema.tasks.matcherError',
57
+ _moduleId,
58
+ 3,
62
59
  'Unrecognized problem matcher. Is the extension that contributes this problem matcher installed?'
63
60
  ))
64
61
  },
@@ -71,27 +68,15 @@ const schema = {
71
68
  shellConfiguration: {
72
69
  type: 'object',
73
70
  additionalProperties: false,
74
- description: ( localizeWithPath(
75
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
76
- 'JsonSchema.shellConfiguration',
77
- 'Configures the shell to be used.'
78
- )),
71
+ description: ( localizeWithPath(_moduleId, 4, 'Configures the shell to be used.')),
79
72
  properties: {
80
73
  executable: {
81
74
  type: 'string',
82
- description: ( localizeWithPath(
83
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
84
- 'JsonSchema.shell.executable',
85
- 'The shell to be used.'
86
- ))
75
+ description: ( localizeWithPath(_moduleId, 5, 'The shell to be used.'))
87
76
  },
88
77
  args: {
89
78
  type: 'array',
90
- description: ( localizeWithPath(
91
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
92
- 'JsonSchema.shell.args',
93
- 'The shell arguments.'
94
- )),
79
+ description: ( localizeWithPath(_moduleId, 6, 'The shell arguments.')),
95
80
  items: {
96
81
  type: 'string'
97
82
  }
@@ -105,18 +90,14 @@ const schema = {
105
90
  command: {
106
91
  type: 'string',
107
92
  description: ( localizeWithPath(
108
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
109
- 'JsonSchema.command',
93
+ _moduleId,
94
+ 7,
110
95
  'The command to be executed. Can be an external program or a shell command.'
111
96
  ))
112
97
  },
113
98
  args: {
114
99
  type: 'array',
115
- description: ( localizeWithPath(
116
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
117
- 'JsonSchema.tasks.args',
118
- 'Arguments passed to the command when this task is invoked.'
119
- )),
100
+ description: ( localizeWithPath(_moduleId, 8, 'Arguments passed to the command when this task is invoked.')),
120
101
  items: {
121
102
  type: 'string'
122
103
  }
@@ -133,27 +114,19 @@ const schema = {
133
114
  properties: {
134
115
  taskName: {
135
116
  type: 'string',
136
- description: ( localizeWithPath(
137
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
138
- 'JsonSchema.tasks.taskName',
139
- "The task's name"
140
- ))
117
+ description: ( localizeWithPath(_moduleId, 9, "The task's name"))
141
118
  },
142
119
  command: {
143
120
  type: 'string',
144
121
  description: ( localizeWithPath(
145
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
146
- 'JsonSchema.command',
122
+ _moduleId,
123
+ 7,
147
124
  'The command to be executed. Can be an external program or a shell command.'
148
125
  ))
149
126
  },
150
127
  args: {
151
128
  type: 'array',
152
- description: ( localizeWithPath(
153
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
154
- 'JsonSchema.tasks.args',
155
- 'Arguments passed to the command when this task is invoked.'
156
- )),
129
+ description: ( localizeWithPath(_moduleId, 8, 'Arguments passed to the command when this task is invoked.')),
157
130
  items: {
158
131
  type: 'string'
159
132
  }
@@ -165,19 +138,15 @@ const schema = {
165
138
  anyOf: [
166
139
  {
167
140
  $ref: '#/definitions/commandConfiguration',
168
- description: ( localizeWithPath(
169
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
170
- 'JsonSchema.tasks.windows',
171
- 'Windows specific command configuration'
172
- )),
141
+ description: ( localizeWithPath(_moduleId, 10, 'Windows specific command configuration')),
173
142
  },
174
143
  {
175
144
  properties: {
176
145
  problemMatcher: {
177
146
  $ref: '#/definitions/problemMatcherType',
178
147
  description: ( localizeWithPath(
179
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
180
- 'JsonSchema.tasks.matchers',
148
+ _moduleId,
149
+ 11,
181
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.'
182
151
  ))
183
152
  }
@@ -189,19 +158,15 @@ const schema = {
189
158
  anyOf: [
190
159
  {
191
160
  $ref: '#/definitions/commandConfiguration',
192
- description: ( localizeWithPath(
193
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
194
- 'JsonSchema.tasks.mac',
195
- 'Mac specific command configuration'
196
- ))
161
+ description: ( localizeWithPath(_moduleId, 12, 'Mac specific command configuration'))
197
162
  },
198
163
  {
199
164
  properties: {
200
165
  problemMatcher: {
201
166
  $ref: '#/definitions/problemMatcherType',
202
167
  description: ( localizeWithPath(
203
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
204
- 'JsonSchema.tasks.matchers',
168
+ _moduleId,
169
+ 11,
205
170
  'The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers.'
206
171
  ))
207
172
  }
@@ -213,19 +178,15 @@ const schema = {
213
178
  anyOf: [
214
179
  {
215
180
  $ref: '#/definitions/commandConfiguration',
216
- description: ( localizeWithPath(
217
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
218
- 'JsonSchema.tasks.linux',
219
- 'Linux specific command configuration'
220
- ))
181
+ description: ( localizeWithPath(_moduleId, 13, 'Linux specific command configuration'))
221
182
  },
222
183
  {
223
184
  properties: {
224
185
  problemMatcher: {
225
186
  $ref: '#/definitions/problemMatcherType',
226
187
  description: ( localizeWithPath(
227
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
228
- 'JsonSchema.tasks.matchers',
188
+ _moduleId,
189
+ 11,
229
190
  'The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers.'
230
191
  ))
231
192
  }
@@ -236,8 +197,8 @@ const schema = {
236
197
  suppressTaskName: {
237
198
  type: 'boolean',
238
199
  description: ( localizeWithPath(
239
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
240
- 'JsonSchema.tasks.suppressTaskName',
200
+ _moduleId,
201
+ 14,
241
202
  'Controls whether the task name is added as an argument to the command. If omitted the globally defined value is used.'
242
203
  )),
243
204
  default: true
@@ -245,30 +206,26 @@ const schema = {
245
206
  showOutput: {
246
207
  $ref: '#/definitions/showOutputType',
247
208
  description: ( localizeWithPath(
248
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
249
- 'JsonSchema.tasks.showOutput',
209
+ _moduleId,
210
+ 15,
250
211
  'Controls whether the output of the running task is shown or not. If omitted the globally defined value is used.'
251
212
  ))
252
213
  },
253
214
  echoCommand: {
254
215
  type: 'boolean',
255
216
  description: ( localizeWithPath(
256
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
257
- 'JsonSchema.echoCommand',
217
+ _moduleId,
218
+ 16,
258
219
  'Controls whether the executed command is echoed to the output. Default is false.'
259
220
  )),
260
221
  default: true
261
222
  },
262
223
  isWatching: {
263
224
  type: 'boolean',
264
- deprecationMessage: ( localizeWithPath(
265
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
266
- 'JsonSchema.tasks.watching.deprecation',
267
- 'Deprecated. Use isBackground instead.'
268
- )),
225
+ deprecationMessage: ( localizeWithPath(_moduleId, 17, 'Deprecated. Use isBackground instead.')),
269
226
  description: ( localizeWithPath(
270
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
271
- 'JsonSchema.tasks.watching',
227
+ _moduleId,
228
+ 18,
272
229
  'Whether the executed task is kept alive and is watching the file system.'
273
230
  )),
274
231
  default: true
@@ -276,8 +233,8 @@ const schema = {
276
233
  isBackground: {
277
234
  type: 'boolean',
278
235
  description: ( localizeWithPath(
279
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
280
- 'JsonSchema.tasks.background',
236
+ _moduleId,
237
+ 19,
281
238
  'Whether the executed task is kept alive and is running in the background.'
282
239
  )),
283
240
  default: true
@@ -285,35 +242,27 @@ const schema = {
285
242
  promptOnClose: {
286
243
  type: 'boolean',
287
244
  description: ( localizeWithPath(
288
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
289
- 'JsonSchema.tasks.promptOnClose',
245
+ _moduleId,
246
+ 20,
290
247
  'Whether the user is prompted when VS Code closes with a running task.'
291
248
  )),
292
249
  default: false
293
250
  },
294
251
  isBuildCommand: {
295
252
  type: 'boolean',
296
- description: ( localizeWithPath(
297
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
298
- 'JsonSchema.tasks.build',
299
- 'Maps this task to Code\'s default build command.'
300
- )),
253
+ description: ( localizeWithPath(_moduleId, 21, 'Maps this task to Code\'s default build command.')),
301
254
  default: true
302
255
  },
303
256
  isTestCommand: {
304
257
  type: 'boolean',
305
- description: ( localizeWithPath(
306
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
307
- 'JsonSchema.tasks.test',
308
- 'Maps this task to Code\'s default test command.'
309
- )),
258
+ description: ( localizeWithPath(_moduleId, 22, 'Maps this task to Code\'s default test command.')),
310
259
  default: true
311
260
  },
312
261
  problemMatcher: {
313
262
  $ref: '#/definitions/problemMatcherType',
314
263
  description: ( localizeWithPath(
315
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
316
- 'JsonSchema.tasks.matchers',
264
+ _moduleId,
265
+ 11,
317
266
  'The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers.'
318
267
  ))
319
268
  }
@@ -326,18 +275,14 @@ const schema = {
326
275
  command: {
327
276
  type: 'string',
328
277
  description: ( localizeWithPath(
329
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
330
- 'JsonSchema.command',
278
+ _moduleId,
279
+ 7,
331
280
  'The command to be executed. Can be an external program or a shell command.'
332
281
  ))
333
282
  },
334
283
  args: {
335
284
  type: 'array',
336
- description: ( localizeWithPath(
337
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
338
- 'JsonSchema.args',
339
- 'Additional arguments passed to the command.'
340
- )),
285
+ description: ( localizeWithPath(_moduleId, 23, 'Additional arguments passed to the command.')),
341
286
  items: {
342
287
  type: 'string'
343
288
  }
@@ -348,21 +293,17 @@ const schema = {
348
293
  showOutput: {
349
294
  $ref: '#/definitions/showOutputType',
350
295
  description: ( localizeWithPath(
351
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
352
- 'JsonSchema.showOutput',
296
+ _moduleId,
297
+ 24,
353
298
  'Controls whether the output of the running task is shown or not. If omitted \'always\' is used.'
354
299
  ))
355
300
  },
356
301
  isWatching: {
357
302
  type: 'boolean',
358
- deprecationMessage: ( localizeWithPath(
359
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
360
- 'JsonSchema.watching.deprecation',
361
- 'Deprecated. Use isBackground instead.'
362
- )),
303
+ deprecationMessage: ( localizeWithPath(_moduleId, 25, 'Deprecated. Use isBackground instead.')),
363
304
  description: ( localizeWithPath(
364
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
365
- 'JsonSchema.watching',
305
+ _moduleId,
306
+ 26,
366
307
  'Whether the executed task is kept alive and is watching the file system.'
367
308
  )),
368
309
  default: true
@@ -370,8 +311,8 @@ const schema = {
370
311
  isBackground: {
371
312
  type: 'boolean',
372
313
  description: ( localizeWithPath(
373
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
374
- 'JsonSchema.background',
314
+ _moduleId,
315
+ 27,
375
316
  'Whether the executed task is kept alive and is running in the background.'
376
317
  )),
377
318
  default: true
@@ -379,8 +320,8 @@ const schema = {
379
320
  promptOnClose: {
380
321
  type: 'boolean',
381
322
  description: ( localizeWithPath(
382
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
383
- 'JsonSchema.promptOnClose',
323
+ _moduleId,
324
+ 28,
384
325
  'Whether the user is prompted when VS Code closes with a running background task.'
385
326
  )),
386
327
  default: false
@@ -388,8 +329,8 @@ const schema = {
388
329
  echoCommand: {
389
330
  type: 'boolean',
390
331
  description: ( localizeWithPath(
391
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
392
- 'JsonSchema.echoCommand',
332
+ _moduleId,
333
+ 16,
393
334
  'Controls whether the executed command is echoed to the output. Default is false.'
394
335
  )),
395
336
  default: true
@@ -397,33 +338,29 @@ const schema = {
397
338
  suppressTaskName: {
398
339
  type: 'boolean',
399
340
  description: ( localizeWithPath(
400
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
401
- 'JsonSchema.suppressTaskName',
341
+ _moduleId,
342
+ 29,
402
343
  'Controls whether the task name is added as an argument to the command. Default is false.'
403
344
  )),
404
345
  default: true
405
346
  },
406
347
  taskSelector: {
407
348
  type: 'string',
408
- description: ( localizeWithPath(
409
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
410
- 'JsonSchema.taskSelector',
411
- 'Prefix to indicate that an argument is task.'
412
- ))
349
+ description: ( localizeWithPath(_moduleId, 30, 'Prefix to indicate that an argument is task.'))
413
350
  },
414
351
  problemMatcher: {
415
352
  $ref: '#/definitions/problemMatcherType',
416
353
  description: ( localizeWithPath(
417
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
418
- 'JsonSchema.matchers',
354
+ _moduleId,
355
+ 31,
419
356
  'The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers.'
420
357
  ))
421
358
  },
422
359
  tasks: {
423
360
  type: 'array',
424
361
  description: ( localizeWithPath(
425
- 'vs/workbench/contrib/tasks/common/jsonSchemaCommon',
426
- 'JsonSchema.tasks',
362
+ _moduleId,
363
+ 32,
427
364
  'The task configurations. Usually these are enrichments of task already defined in the external task runner.'
428
365
  )),
429
366
  items: {
@@ -3,6 +3,7 @@ import { deepClone } from 'vscode/vscode/vs/base/common/objects';
3
3
  import { ProblemMatcherRegistry } from './problemMatcher.js';
4
4
  import schema$1 from './jsonSchemaCommon.js';
5
5
 
6
+ const _moduleId = "vs/workbench/contrib/tasks/common/jsonSchema_v1";
6
7
  const schema = {
7
8
  oneOf: [
8
9
  {
@@ -14,57 +15,33 @@ const schema = {
14
15
  version: {
15
16
  type: 'string',
16
17
  enum: ['0.1.0'],
17
- deprecationMessage: ( localizeWithPath(
18
- 'vs/workbench/contrib/tasks/common/jsonSchema_v1',
19
- 'JsonSchema.version.deprecated',
20
- 'Task version 0.1.0 is deprecated. Please use 2.0.0'
21
- )),
22
- description: ( localizeWithPath(
23
- 'vs/workbench/contrib/tasks/common/jsonSchema_v1',
24
- 'JsonSchema.version',
25
- 'The config\'s version number'
26
- ))
18
+ deprecationMessage: ( localizeWithPath(_moduleId, 0, 'Task version 0.1.0 is deprecated. Please use 2.0.0')),
19
+ description: ( localizeWithPath(_moduleId, 1, 'The config\'s version number'))
27
20
  },
28
21
  _runner: {
29
- deprecationMessage: ( localizeWithPath(
30
- 'vs/workbench/contrib/tasks/common/jsonSchema_v1',
31
- 'JsonSchema._runner',
32
- 'The runner has graduated. Use the official runner property'
33
- ))
22
+ deprecationMessage: ( localizeWithPath(_moduleId, 2, 'The runner has graduated. Use the official runner property'))
34
23
  },
35
24
  runner: {
36
25
  type: 'string',
37
26
  enum: ['process', 'terminal'],
38
27
  default: 'process',
39
28
  description: ( localizeWithPath(
40
- 'vs/workbench/contrib/tasks/common/jsonSchema_v1',
41
- 'JsonSchema.runner',
29
+ _moduleId,
30
+ 3,
42
31
  'Defines whether the task is executed as a process and the output is shown in the output window or inside the terminal.'
43
32
  ))
44
33
  },
45
34
  windows: {
46
35
  $ref: '#/definitions/taskRunnerConfiguration',
47
- description: ( localizeWithPath(
48
- 'vs/workbench/contrib/tasks/common/jsonSchema_v1',
49
- 'JsonSchema.windows',
50
- 'Windows specific command configuration'
51
- ))
36
+ description: ( localizeWithPath(_moduleId, 4, 'Windows specific command configuration'))
52
37
  },
53
38
  osx: {
54
39
  $ref: '#/definitions/taskRunnerConfiguration',
55
- description: ( localizeWithPath(
56
- 'vs/workbench/contrib/tasks/common/jsonSchema_v1',
57
- 'JsonSchema.mac',
58
- 'Mac specific command configuration'
59
- ))
40
+ description: ( localizeWithPath(_moduleId, 5, 'Mac specific command configuration'))
60
41
  },
61
42
  linux: {
62
43
  $ref: '#/definitions/taskRunnerConfiguration',
63
- description: ( localizeWithPath(
64
- 'vs/workbench/contrib/tasks/common/jsonSchema_v1',
65
- 'JsonSchema.linux',
66
- 'Linux specific command configuration'
67
- ))
44
+ description: ( localizeWithPath(_moduleId, 6, 'Linux specific command configuration'))
68
45
  }
69
46
  }
70
47
  },
@@ -79,8 +56,8 @@ const shellCommand = {
79
56
  type: 'boolean',
80
57
  default: true,
81
58
  description: ( localizeWithPath(
82
- 'vs/workbench/contrib/tasks/common/jsonSchema_v1',
83
- 'JsonSchema.shell',
59
+ _moduleId,
60
+ 7,
84
61
  'Specifies whether the command is a shell command or an external program. Defaults to false if omitted.'
85
62
  ))
86
63
  };
@@ -113,7 +90,7 @@ function fixReferences(literal) {
113
90
  fixReferences(schema);
114
91
  ProblemMatcherRegistry.onReady().then(() => {
115
92
  try {
116
- const matcherIds = ( ( ProblemMatcherRegistry.keys()).map(key => '$' + key));
93
+ const matcherIds = ( (( (ProblemMatcherRegistry.keys())).map(key => '$' + key)));
117
94
  definitions.problemMatcherType1.oneOf[0].enum = matcherIds;
118
95
  definitions.problemMatcherType1.oneOf[2].items.anyOf[1].enum = matcherIds;
119
96
  }