@codingame/monaco-vscode-rollup-vsix-plugin 1.85.0 → 1.85.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-rollup-vsix-plugin",
3
- "version": "1.85.0",
3
+ "version": "1.85.2",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,9 +18,9 @@
18
18
  "module": "rollup-vsix-plugin.js",
19
19
  "types": "rollup-vsix-plugin.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@1.85.0",
21
+ "vscode": "npm:@codingame/monaco-vscode-api@1.85.2",
22
22
  "memfs": "^4.6.0",
23
23
  "mime-types": "^2.1.35",
24
- "yauzl": "^2.9.2"
24
+ "yauzl": "^2.10.0"
25
25
  }
26
26
  }
@@ -5462,6 +5462,7 @@ function fastqueue (context, worker, concurrency) {
5462
5462
  current.release = release;
5463
5463
  current.value = value;
5464
5464
  current.callback = done || noop;
5465
+ current.errorHandler = errorHandler;
5465
5466
 
5466
5467
  if (_running === self.concurrency || self.paused) {
5467
5468
  if (queueHead) {
@@ -0,0 +1,90 @@
1
+ type JSONSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'null' | 'array' | 'object';
2
+ interface IJSONSchema {
3
+ id?: string;
4
+ $id?: string;
5
+ $schema?: string;
6
+ type?: JSONSchemaType | JSONSchemaType[];
7
+ title?: string;
8
+ default?: any;
9
+ definitions?: IJSONSchemaMap;
10
+ description?: string;
11
+ properties?: IJSONSchemaMap;
12
+ patternProperties?: IJSONSchemaMap;
13
+ additionalProperties?: boolean | IJSONSchema;
14
+ minProperties?: number;
15
+ maxProperties?: number;
16
+ dependencies?: IJSONSchemaMap | {
17
+ [prop: string]: string[];
18
+ };
19
+ items?: IJSONSchema | IJSONSchema[];
20
+ minItems?: number;
21
+ maxItems?: number;
22
+ uniqueItems?: boolean;
23
+ additionalItems?: boolean | IJSONSchema;
24
+ pattern?: string;
25
+ minLength?: number;
26
+ maxLength?: number;
27
+ minimum?: number;
28
+ maximum?: number;
29
+ exclusiveMinimum?: boolean | number;
30
+ exclusiveMaximum?: boolean | number;
31
+ multipleOf?: number;
32
+ required?: string[];
33
+ $ref?: string;
34
+ anyOf?: IJSONSchema[];
35
+ allOf?: IJSONSchema[];
36
+ oneOf?: IJSONSchema[];
37
+ not?: IJSONSchema;
38
+ enum?: any[];
39
+ format?: string;
40
+ const?: any;
41
+ contains?: IJSONSchema;
42
+ propertyNames?: IJSONSchema;
43
+ examples?: any[];
44
+ $comment?: string;
45
+ if?: IJSONSchema;
46
+ then?: IJSONSchema;
47
+ else?: IJSONSchema;
48
+ unevaluatedProperties?: boolean | IJSONSchema;
49
+ unevaluatedItems?: boolean | IJSONSchema;
50
+ minContains?: number;
51
+ maxContains?: number;
52
+ deprecated?: boolean;
53
+ dependentRequired?: {
54
+ [prop: string]: string[];
55
+ };
56
+ dependentSchemas?: IJSONSchemaMap;
57
+ $defs?: {
58
+ [name: string]: IJSONSchema;
59
+ };
60
+ $anchor?: string;
61
+ $recursiveRef?: string;
62
+ $recursiveAnchor?: string;
63
+ $vocabulary?: any;
64
+ prefixItems?: IJSONSchema[];
65
+ $dynamicRef?: string;
66
+ $dynamicAnchor?: string;
67
+ defaultSnippets?: IJSONSchemaSnippet[];
68
+ errorMessage?: string;
69
+ patternErrorMessage?: string;
70
+ deprecationMessage?: string;
71
+ markdownDeprecationMessage?: string;
72
+ enumDescriptions?: string[];
73
+ markdownEnumDescriptions?: string[];
74
+ markdownDescription?: string;
75
+ doNotSuggest?: boolean;
76
+ suggestSortText?: string;
77
+ allowComments?: boolean;
78
+ allowTrailingCommas?: boolean;
79
+ }
80
+ interface IJSONSchemaMap {
81
+ [name: string]: IJSONSchema;
82
+ }
83
+ interface IJSONSchemaSnippet {
84
+ label?: string;
85
+ description?: string;
86
+ body?: any;
87
+ bodyText?: string;
88
+ }
89
+
90
+ export type { IJSONSchema, IJSONSchemaMap, IJSONSchemaSnippet, JSONSchemaType };
@@ -1,136 +1,577 @@
1
+ import { IJSONSchema } from '../../../base/common/jsonSchema.js';
1
2
  import { ILocalizedString } from '../../action/common/action.js';
2
3
  import { ExtensionKind } from '../../environment/common/environment.js';
3
4
 
4
5
  interface ICommand {
5
- command: string;
6
- title: string | ILocalizedString;
7
- category?: string | ILocalizedString;
8
- }
9
- interface IConfigurationProperty {
10
- description: string;
11
- type: string | string[];
12
- default?: any;
6
+ /**
7
+ * Identifier of the command to execute
8
+ */
9
+ readonly command: string;
10
+ /**
11
+ * Title by which the command is represented in the UI
12
+ */
13
+ readonly title: string | ILocalizedString;
14
+ readonly shortTitle?: string;
15
+ /**
16
+ * (Optional) Category string by which the command is grouped in the UI
17
+ */
18
+ readonly category?: string | ILocalizedString;
19
+ /**
20
+ * (Optional) Condition which must be true to enable the command in the UI (menu and keybindings). Does not prevent executing the command by other means, like the `executeCommand`-api.
21
+ */
22
+ readonly enablement?: string;
23
+ /**
24
+ * (Optional) Icon which is used to represent the command in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like `\$(zap)`
25
+ */
26
+ readonly icon?: string | {
27
+ /**
28
+ * Icon path when a light theme is used
29
+ */
30
+ readonly light?: string;
31
+ /**
32
+ * Icon path when a dark theme is used
33
+ */
34
+ readonly dark?: string;
35
+ };
13
36
  }
14
37
  interface IConfiguration {
15
- id?: string;
16
- order?: number;
17
- title?: string;
18
- properties: {
19
- [key: string]: IConfigurationProperty;
38
+ /**
39
+ * A title for the current category of settings. This label will be rendered in the Settings editor as a subheading. If the title is the same as the extension display name, then the category will be grouped under the main extension heading.
40
+ */
41
+ readonly title?: string;
42
+ /**
43
+ * When specified, gives the order of this category of settings relative to other categories.
44
+ */
45
+ readonly order?: number;
46
+ /**
47
+ * Description of the configuration properties.
48
+ */
49
+ readonly properties: {
50
+ [key: string]: IJSONSchema;
20
51
  };
21
52
  }
22
53
  interface IDebugger {
23
- label?: string;
24
- type: string;
25
- runtime?: string;
54
+ /**
55
+ * Unique identifier for this debug adapter.
56
+ */
57
+ readonly type: string;
58
+ /**
59
+ * Display name for this debug adapter.
60
+ */
61
+ readonly label?: string;
62
+ /**
63
+ * Path to the debug adapter program. Path is either absolute or relative to the extension folder.
64
+ */
65
+ readonly program?: string;
66
+ /**
67
+ * Optional arguments to pass to the adapter.
68
+ */
69
+ readonly args?: unknown[];
70
+ /**
71
+ * Optional runtime in case the program attribute is not an executable but requires a runtime.
72
+ */
73
+ readonly runtime?: string;
74
+ /**
75
+ * Optional runtime arguments.
76
+ */
77
+ readonly runtimeArgs?: unknown[];
78
+ /**
79
+ * Mapping from interactive variables (e.g. ${action.pickProcess}) in `launch.json` to a command.
80
+ */
81
+ readonly variables?: {};
82
+ /**
83
+ * Configurations for generating the initial 'launch.json'.
84
+ */
85
+ readonly initialConfigurations?: unknown[] | string;
86
+ /**
87
+ * List of languages for which the debug extension could be considered the "default debugger".
88
+ */
89
+ readonly languages?: unknown[];
90
+ /**
91
+ * Snippets for adding new configurations in 'launch.json'.
92
+ */
93
+ readonly configurationSnippets?: unknown[];
94
+ /**
95
+ * JSON schema configurations for validating 'launch.json'.
96
+ */
97
+ readonly configurationAttributes?: {};
98
+ /**
99
+ * Condition which must be true to enable this type of debugger. Consider using 'shellExecutionSupported', 'virtualWorkspace', 'resourceScheme' or an extension-defined context key as appropriate for this.
100
+ */
101
+ readonly when?: string;
102
+ /**
103
+ * When this condition is true, this debugger type is hidden from the debugger list, but is still enabled.
104
+ */
105
+ readonly hiddenWhen?: string;
106
+ /**
107
+ * Optional message to mark this debug type as being deprecated.
108
+ */
109
+ readonly deprecated?: string;
110
+ /**
111
+ * Windows specific settings.
112
+ */
113
+ readonly windows?: {
114
+ /**
115
+ * Runtime used for Windows.
116
+ */
117
+ runtime?: string;
118
+ };
119
+ /**
120
+ * macOS specific settings.
121
+ */
122
+ readonly osx?: {
123
+ /**
124
+ * Runtime used for macOS.
125
+ */
126
+ runtime?: string;
127
+ };
128
+ /**
129
+ * Linux specific settings.
130
+ */
131
+ readonly linux?: {
132
+ /**
133
+ * Runtime used for Linux.
134
+ */
135
+ readonly runtime?: string;
136
+ };
137
+ /**
138
+ * UI strings contributed by this debug adapter.
139
+ */
140
+ readonly strings?: {
141
+ /**
142
+ * When there are unverified breakpoints in a language supported by this debug adapter, this message will appear on the breakpoint hover and in the breakpoints view. Markdown and command links are supported.
143
+ */
144
+ readonly unverifiedBreakpoints?: string;
145
+ };
26
146
  }
27
147
  interface IGrammar {
28
- language: string;
148
+ /**
149
+ * Language identifier for which this syntax is contributed to.
150
+ */
151
+ readonly language: string;
152
+ /**
153
+ * Textmate scope name used by the tmLanguage file.
154
+ */
155
+ readonly scopeName: string;
156
+ /**
157
+ * Path of the tmLanguage file. The path is relative to the extension folder and typically starts with './syntaxes/'.
158
+ */
159
+ readonly path: string;
160
+ /**
161
+ * A map of scope name to language id if this grammar contains embedded languages.
162
+ */
163
+ readonly embeddedLanguages?: {};
164
+ /**
165
+ * A map of scope name to token types.
166
+ */
167
+ readonly tokenTypes?: {
168
+ [k: string]: 'string' | 'comment' | 'other';
169
+ };
170
+ /**
171
+ * List of language scope names to which this grammar is injected to.
172
+ */
173
+ readonly injectTo?: string[];
174
+ /**
175
+ * Defines which scope names contain balanced brackets.
176
+ */
177
+ readonly balancedBracketScopes?: string[];
178
+ /**
179
+ * Defines which scope names do not contain balanced brackets.
180
+ */
181
+ readonly unbalancedBracketScopes?: string[];
29
182
  }
30
183
  interface IJSONValidation {
31
- fileMatch: string | string[];
32
- url: string;
184
+ /**
185
+ * The file pattern (or an array of patterns) to match, for example "package.json" or "*.launch". Exclusion patterns start with '!'
186
+ */
187
+ readonly fileMatch?: string | string[];
188
+ /**
189
+ * A schema URL ('http:', 'https:') or relative path to the extension folder ('./').
190
+ */
191
+ readonly url?: string;
33
192
  }
34
193
  interface IKeyBinding {
35
- command: string;
36
- key: string;
37
- when?: string;
38
- mac?: string;
39
- linux?: string;
40
- win?: string;
194
+ /**
195
+ * Identifier of the command to run when keybinding is triggered.
196
+ */
197
+ readonly command: string;
198
+ /**
199
+ * Arguments to pass to the command to execute.
200
+ */
201
+ readonly args?: {
202
+ [k: string]: unknown;
203
+ };
204
+ /**
205
+ * Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord).
206
+ */
207
+ readonly key: string;
208
+ /**
209
+ * Mac specific key or key sequence.
210
+ */
211
+ readonly mac?: string;
212
+ /**
213
+ * Linux specific key or key sequence.
214
+ */
215
+ readonly linux?: string;
216
+ /**
217
+ * Windows specific key or key sequence.
218
+ */
219
+ readonly win?: string;
220
+ /**
221
+ * Condition when the key is active.
222
+ */
223
+ readonly when?: string;
41
224
  }
42
225
  interface ILanguage {
43
- id: string;
44
- extensions: string[];
45
- aliases: string[];
226
+ /**
227
+ * ID of the language.
228
+ */
229
+ readonly id: string;
230
+ /**
231
+ * Name aliases for the language.
232
+ */
233
+ readonly aliases?: string[];
234
+ /**
235
+ * File extensions associated to the language.
236
+ */
237
+ readonly extensions?: string[];
238
+ /**
239
+ * File names associated to the language.
240
+ */
241
+ readonly filenames?: string[];
242
+ /**
243
+ * File name glob patterns associated to the language.
244
+ */
245
+ readonly filenamePatterns?: string[];
246
+ /**
247
+ * Mime types associated to the language.
248
+ */
249
+ readonly mimetypes?: string[];
250
+ /**
251
+ * A regular expression matching the first line of a file of the language.
252
+ */
253
+ readonly firstLine?: string;
254
+ /**
255
+ * A relative path to a file containing configuration options for the language.
256
+ */
257
+ readonly configuration?: string;
258
+ /**
259
+ * A icon to use as file icon, if no icon theme provides one for the language.
260
+ */
261
+ readonly icon?: {
262
+ /**
263
+ * Icon path when a light theme is used
264
+ */
265
+ readonly light?: string;
266
+ /**
267
+ * Icon path when a dark theme is used
268
+ */
269
+ readonly dark?: string;
270
+ };
46
271
  }
47
272
  interface IMenu {
48
- command: string;
49
- alt?: string;
50
- when?: string;
51
- group?: string;
273
+ /**
274
+ * Identifier of the command to execute. The command must be declared in the 'commands'-section
275
+ */
276
+ readonly command: string;
277
+ /**
278
+ * Identifier of an alternative command to execute. The command must be declared in the 'commands'-section
279
+ */
280
+ readonly alt?: string;
281
+ /**
282
+ * Condition which must be true to show this item
283
+ */
284
+ readonly when?: string;
285
+ /**
286
+ * Group into which this item belongs
287
+ */
288
+ readonly group?: string;
52
289
  }
53
290
  interface ISnippet {
54
- language: string;
291
+ /**
292
+ * Language identifier for which this snippet is contributed to.
293
+ */
294
+ readonly language: string;
295
+ /**
296
+ * Path of the snippets file. The path is relative to the extension folder and typically starts with './snippets/'.
297
+ */
298
+ readonly path: string;
55
299
  }
56
- interface ITheme {
57
- label: string;
300
+ interface IColorTheme {
301
+ /**
302
+ * Id of the color theme as used in the user settings.
303
+ */
304
+ readonly id: string;
305
+ /**
306
+ * Label of the color theme as shown in the UI.
307
+ */
308
+ readonly label: string;
309
+ /**
310
+ * Base theme defining the colors around the editor: 'vs' is the light color theme, 'vs-dark' is the dark color theme. 'hc-black' is the dark high contrast theme, 'hc-light' is the light high contrast theme.
311
+ */
312
+ readonly uiTheme: 'vs' | 'vs-dark' | 'hc-black' | 'hc-light';
313
+ /**
314
+ * Path of the tmTheme file. The path is relative to the extension folder and is typically './colorthemes/awesome-color-theme.json'.
315
+ */
316
+ readonly path: string;
317
+ }
318
+ interface IIconTheme {
319
+ /**
320
+ * Id of the file icon theme as used in the user settings.
321
+ */
322
+ readonly id: string;
323
+ /**
324
+ * Label of the file icon theme as shown in the UI.
325
+ */
326
+ readonly label: string;
327
+ /**
328
+ * Path of the file icon theme definition file. The path is relative to the extension folder and is typically './fileicons/awesome-icon-theme.json'.
329
+ */
330
+ readonly path: string;
331
+ }
332
+ interface IProductTheme {
333
+ /**
334
+ * Id of the product icon theme as used in the user settings.
335
+ */
336
+ readonly id: string;
337
+ /**
338
+ * Label of the product icon theme as shown in the UI.
339
+ */
340
+ readonly label: string;
341
+ /**
342
+ * Path of the product icon theme definition file. The path is relative to the extension folder and is typically './producticons/awesome-product-icon-theme.json'.
343
+ */
344
+ readonly path: string;
58
345
  }
59
346
  interface IViewContainer {
60
- id: string;
61
- title: string;
347
+ /**
348
+ * Unique id used to identify the container in which views can be contributed using 'views' contribution point
349
+ */
350
+ readonly id: string;
351
+ /**
352
+ * Human readable string used to render the container
353
+ */
354
+ readonly title: string;
355
+ /**
356
+ * Path to the container icon. Icons are 24x24 centered on a 50x40 block and have a fill color of 'rgb(215, 218, 224)' or '#d7dae0'. It is recommended that icons be in SVG, though any image file type is accepted.
357
+ */
358
+ readonly icon: string;
62
359
  }
63
360
  interface IView {
64
- id: string;
65
- name: string;
361
+ readonly type?: 'tree' | 'webview';
362
+ readonly id: string;
363
+ /**
364
+ * The human-readable name of the view. Will be shown
365
+ */
366
+ readonly name: string;
367
+ /**
368
+ * Condition which must be true to show this view
369
+ */
370
+ readonly when?: string;
371
+ /**
372
+ * Path to the view icon. View icons are displayed when the name of the view cannot be shown. It is recommended that icons be in SVG, though any image file type is accepted.
373
+ */
374
+ readonly icon?: string;
375
+ /**
376
+ * Human-readable context for when the view is moved out of its original location. By default, the view's container name will be used.
377
+ */
378
+ readonly contextualTitle?: string;
379
+ /**
380
+ * Initial state of the view when the extension is first installed. Once the user has changed the view state by collapsing, moving, or hiding the view, the initial state will not be used again.
381
+ */
382
+ readonly visibility?: 'visible' | 'hidden' | 'collapsed';
383
+ /**
384
+ * The initial size of the view. The size will behave like the css 'flex' property, and will set the initial size when the view is first shown. In the side bar, this is the height of the view. This value is only respected when the same extension owns both the view and the view container.
385
+ */
386
+ readonly initialSize?: number;
66
387
  }
67
388
  interface IColor {
68
- id: string;
69
- description: string;
70
- defaults: {
71
- light: string;
72
- dark: string;
73
- highContrast: string;
389
+ /**
390
+ * The identifier of the themable color
391
+ */
392
+ readonly id: string;
393
+ /**
394
+ * The description of the themable color
395
+ */
396
+ readonly description?: string;
397
+ readonly defaults: {
398
+ /**
399
+ * The default color for light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.
400
+ */
401
+ readonly light: string;
402
+ /**
403
+ * The default color for dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.
404
+ */
405
+ readonly dark: string;
406
+ /**
407
+ * The default color for high contrast dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `dark` color is used as default for high contrast dark themes.
408
+ */
409
+ readonly highContrast?: string;
410
+ /**
411
+ * The default color for high contrast light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `light` color is used as default for high contrast light themes.
412
+ */
413
+ readonly highContrastLight?: string;
74
414
  };
75
415
  }
76
416
  interface IWebviewEditor {
77
417
  readonly viewType: string;
78
418
  readonly priority: string;
79
- readonly selector: readonly {
419
+ /**
420
+ * Human readable name of the custom editor. This is displayed to users when selecting which editor to use.
421
+ */
422
+ readonly displayName: string;
423
+ /**
424
+ * Set of globs that the custom editor is enabled for.
425
+ */
426
+ readonly selector: {
427
+ /**
428
+ * Glob that the custom editor is enabled for.
429
+ */
80
430
  readonly filenamePattern?: string;
81
431
  }[];
82
432
  }
83
433
  interface ICodeActionContributionAction {
84
434
  readonly kind: string;
435
+ /**
436
+ * Label for the code action used in the UI.
437
+ */
85
438
  readonly title: string;
439
+ /**
440
+ * Description of what the code action does.
441
+ */
86
442
  readonly description?: string;
87
443
  }
88
444
  interface ICodeActionContribution {
89
- readonly languages: readonly string[];
445
+ /**
446
+ * Language modes that the code actions are enabled for.
447
+ */
448
+ readonly languages: string[];
90
449
  readonly actions: readonly ICodeActionContributionAction[];
91
450
  }
92
451
  interface IAuthenticationContribution {
452
+ /**
453
+ * The id of the authentication provider.
454
+ */
93
455
  readonly id: string;
456
+ /**
457
+ * The human readable name of the authentication provider.
458
+ */
94
459
  readonly label: string;
95
460
  }
96
461
  interface IWalkthroughStep {
462
+ /**
463
+ * Unique identifier for this step. This is used to keep track of which steps have been completed.
464
+ */
97
465
  readonly id: string;
466
+ /**
467
+ * Title of step.
468
+ */
98
469
  readonly title: string;
99
- readonly description: string | undefined;
470
+ /**
471
+ * Description of step. Supports ``preformatted``, __italic__, and **bold** text. Use markdown-style links for commands or external links: [Title](command:myext.command), [Title](command:toSide:myext.command), or [Title](https://aka.ms). Links on their own line will be rendered as buttons.
472
+ */
473
+ readonly description?: string;
474
+ readonly button?: {
475
+ [k: string]: unknown;
476
+ };
477
+ /**
478
+ * Media to show alongside this step, either an image or markdown content.
479
+ */
100
480
  readonly media: {
101
- image: string | {
102
- dark: string;
103
- light: string;
104
- hc: string;
481
+ readonly path?: {
482
+ [k: string]: unknown;
483
+ };
484
+ /**
485
+ * Path to an image - or object consisting of paths to light, dark, and hc images - relative to extension directory. Depending on context, the image will be displayed from 400px to 800px wide, with similar bounds on height. To support HIDPI displays, the image will be rendered at 1.5x scaling, for example a 900 physical pixels wide image will be displayed as 600 logical pixels wide.
486
+ */
487
+ readonly image: string | {
488
+ /**
489
+ * Path to the image for dark themes, relative to extension directory.
490
+ */
491
+ readonly dark: string;
492
+ /**
493
+ * Path to the image for light themes, relative to extension directory.
494
+ */
495
+ readonly light: string;
496
+ /**
497
+ * Path to the image for hc themes, relative to extension directory.
498
+ */
499
+ readonly hc: string;
500
+ /**
501
+ * Path to the image for hc light themes, relative to extension directory.
502
+ */
503
+ readonly hcLight: string;
105
504
  };
106
- altText: string;
107
- markdown?: never;
108
- svg?: never;
505
+ /**
506
+ * Alternate text to display when the image cannot be loaded or in screen readers.
507
+ */
508
+ readonly altText: string;
509
+ readonly markdown?: never;
510
+ readonly svg?: never;
109
511
  } | {
110
- markdown: string;
111
- image?: never;
112
- svg?: never;
512
+ /**
513
+ * Path to an svg, color tokens are supported in variables to support theming to match the workbench.
514
+ */
515
+ readonly svg: string;
516
+ /**
517
+ * Alternate text to display when the image cannot be loaded or in screen readers.
518
+ */
519
+ readonly altText: string;
520
+ readonly image?: never;
521
+ readonly markdown?: never;
113
522
  } | {
114
- svg: string;
115
- altText: string;
116
- markdown?: never;
117
- image?: never;
523
+ readonly path?: {
524
+ [k: string]: unknown;
525
+ };
526
+ /**
527
+ * Path to the markdown document, relative to extension directory.
528
+ */
529
+ readonly markdown: string;
530
+ readonly image?: never;
531
+ readonly svg?: never;
118
532
  };
533
+ /**
534
+ * Events that should trigger this step to become checked off. If empty or not defined, the step will check off when any of the step's buttons or links are clicked; if the step has no buttons or links it will check on when it is selected.
535
+ */
119
536
  readonly completionEvents?: string[];
120
- /** @deprecated use `completionEvents: 'onCommand:...'` */
537
+ /**
538
+ * Signal to mark step as complete.
539
+ * @deprecated use `completionEvents: 'onCommand:...'`
540
+ **/
121
541
  readonly doneOn?: {
122
542
  command: string;
123
543
  };
544
+ /**
545
+ * Context key expression to control the visibility of this step.
546
+ */
124
547
  readonly when?: string;
125
548
  }
126
549
  interface IWalkthrough {
550
+ /**
551
+ * Unique identifier for this walkthrough.
552
+ */
127
553
  readonly id: string;
554
+ /**
555
+ * Title of walkthrough.
556
+ */
128
557
  readonly title: string;
558
+ /**
559
+ * Relative path to the icon of the walkthrough. The path is relative to the extension location. If not specified, the icon defaults to the extension icon if available.
560
+ */
129
561
  readonly icon?: string;
562
+ /**
563
+ * Description of walkthrough.
564
+ */
130
565
  readonly description: string;
131
- readonly steps: IWalkthroughStep[];
132
- readonly featuredFor: string[] | undefined;
566
+ /**
567
+ * Walkthroughs that match one of these glob patterns appear as 'featured' in workspaces with the specified files. For example, a walkthrough for TypeScript projects might specify `tsconfig.json` here.
568
+ */
569
+ readonly featuredFor?: string[];
570
+ /**
571
+ * Context key expression to control the visibility of this walkthrough.
572
+ */
133
573
  readonly when?: string;
574
+ readonly steps: IWalkthroughStep[];
134
575
  }
135
576
  interface IStartEntry {
136
577
  readonly title: string;
@@ -140,57 +581,585 @@ interface IStartEntry {
140
581
  readonly category: 'file' | 'folder' | 'notebook';
141
582
  }
142
583
  interface INotebookEntry {
584
+ /**
585
+ * Type of the notebook.
586
+ */
143
587
  readonly type: string;
588
+ /**
589
+ * Human readable name of the notebook.
590
+ */
144
591
  readonly displayName: string;
592
+ /**
593
+ * Set of globs that the notebook is for.
594
+ */
595
+ readonly selector: {
596
+ /**
597
+ * Glob that the notebook is enabled for.
598
+ */
599
+ readonly filenamePattern?: string;
600
+ /**
601
+ * Glob that the notebook is disabled for.
602
+ */
603
+ readonly excludeFileNamePattern?: string;
604
+ }[];
605
+ readonly priority?: 'default' | 'option';
145
606
  }
146
607
  interface INotebookRendererContribution {
608
+ /**
609
+ * Unique identifier of the notebook output renderer.
610
+ */
147
611
  readonly id: string;
612
+ /**
613
+ * Human readable name of the notebook output renderer.
614
+ */
148
615
  readonly displayName: string;
616
+ readonly dependencies?: string[];
617
+ readonly optionalDependencies?: string[];
618
+ /**
619
+ * Defines how and if the renderer needs to communicate with an extension host, via `createRendererMessaging`. Renderers with stronger messaging requirements may not work in all environments.
620
+ */
621
+ readonly requiresMessaging?: 'always' | 'optional' | 'never';
622
+ /**
623
+ * Set of globs that the notebook is for.
624
+ */
149
625
  readonly mimeTypes: string[];
626
+ readonly entrypoint: string | {
627
+ readonly extends: string;
628
+ readonly path: string;
629
+ };
150
630
  }
151
631
  interface ITranslation {
152
- id: string;
153
- path: string;
632
+ /**
633
+ * Id of VS Code or Extension for which this translation is contributed to. Id of VS Code is always `vscode` and of extension should be in format `publisherId.extensionName`.
634
+ */
635
+ readonly id: string;
636
+ /**
637
+ * A relative path to a file containing translations for the language.
638
+ */
639
+ readonly path: string;
154
640
  }
155
641
  interface ILocalizationContribution {
156
- languageId: string;
157
- languageName?: string;
158
- localizedLanguageName?: string;
159
- translations: ITranslation[];
160
- minimalTranslations?: {
161
- [key: string]: string;
642
+ /**
643
+ * Id of the language into which the display strings are translated.
644
+ */
645
+ readonly languageId: string;
646
+ /**
647
+ * Name of the language in English.
648
+ */
649
+ readonly languageName?: string;
650
+ /**
651
+ * Name of the language in contributed language.
652
+ */
653
+ readonly localizedLanguageName?: string;
654
+ /**
655
+ *
656
+ */
657
+ readonly translations: ITranslation[];
658
+ }
659
+ interface ITerminal {
660
+ readonly profiles?: {
661
+ readonly id: string;
662
+ readonly title: string;
663
+ readonly icon?: (string | {
664
+ /**
665
+ * Icon path when a light theme is used
666
+ */
667
+ readonly light?: string;
668
+ /**
669
+ * Icon path when a dark theme is used
670
+ */
671
+ readonly dark?: string;
672
+ [k: string]: unknown;
673
+ });
674
+ }[];
675
+ }
676
+ interface IStatusBarItem {
677
+ readonly id: string;
678
+ /**
679
+ * The name of the entry, like 'Python Language Indicator', 'Git Status' etc. Try to keep the length of the name short, yet descriptive enough that users can understand what the status bar item is about.
680
+ */
681
+ readonly name: string;
682
+ /**
683
+ * The text to show for the entry. You can embed icons in the text by leveraging the `$(<name>)`-syntax, like 'Hello $(globe)!'
684
+ */
685
+ readonly text: string;
686
+ /**
687
+ * The tooltip text for the entry.
688
+ */
689
+ readonly tooltip?: string;
690
+ /**
691
+ * The command to execute when the status bar entry is clicked.
692
+ */
693
+ readonly command?: string;
694
+ /**
695
+ * The alignment of the status bar entry.
696
+ */
697
+ readonly alignment: 'left' | 'right';
698
+ /**
699
+ * The priority of the status bar entry. Higher value means the item should be shown more to the left.
700
+ */
701
+ readonly priority?: number;
702
+ /**
703
+ * Defines the role and aria label to be used when the status bar entry is focused.
704
+ */
705
+ readonly accessibilityInformation?: {
706
+ /**
707
+ * The role of the status bar entry which defines how a screen reader interacts with it. More about aria roles can be found here https://w3c.github.io/aria/#widget_roles
708
+ */
709
+ readonly role?: string;
710
+ /**
711
+ * The aria label of the status bar entry. Defaults to the entry's text.
712
+ */
713
+ readonly label?: string;
714
+ };
715
+ }
716
+ interface IRemoteHelp {
717
+ /**
718
+ * The url, or a command that returns the url, to your project's Getting Started page, or a walkthrough ID contributed by your project's extension
719
+ */
720
+ readonly getStarted?: string | {
721
+ /**
722
+ * The ID of a Get Started walkthrough to open.
723
+ */
724
+ id: string;
725
+ };
726
+ /**
727
+ * The url, or a command that returns the url, to your project's documentation page
728
+ */
729
+ readonly documentation?: string;
730
+ /**
731
+ * The url, or a command that returns the url, to your project's feedback reporter
732
+ */
733
+ readonly feedback?: string;
734
+ /**
735
+ * The url, or a command that returns the url, to your project's issue reporter
736
+ */
737
+ readonly reportIssue?: string;
738
+ /**
739
+ * The url, or a command that returns the url, to your project's issues list
740
+ */
741
+ readonly issues?: string;
742
+ }
743
+ interface ITaskDefinitions {
744
+ /**
745
+ * The actual task type. Please note that types starting with a '$' are reserved for internal usage.
746
+ */
747
+ readonly type?: string;
748
+ readonly required?: string[];
749
+ /**
750
+ * Additional properties of the task type
751
+ */
752
+ readonly properties?: {
753
+ [k: string]: IJSONSchema;
754
+ };
755
+ readonly when?: string;
756
+ }
757
+ interface IIcon {
758
+ /**
759
+ * The description of the themable icon
760
+ */
761
+ readonly description: string;
762
+ /**
763
+ * The default of the icon. Either a reference to an extisting ThemeIcon or an icon in an icon font.
764
+ */
765
+ readonly default: string | {
766
+ /**
767
+ * The path of the icon font that defines the icon.
768
+ */
769
+ readonly fontPath: string;
770
+ /**
771
+ * The character for the icon in the icon font.
772
+ */
773
+ readonly fontCharacter: string;
774
+ };
775
+ }
776
+ interface IDocumentationRefactoring {
777
+ /**
778
+ * Label for the documentation used in the UI.
779
+ */
780
+ readonly title: string;
781
+ /**
782
+ * When clause.
783
+ */
784
+ readonly when: string;
785
+ /**
786
+ * Command executed.
787
+ */
788
+ readonly command: string;
789
+ }
790
+ interface IDocumentation {
791
+ /**
792
+ * Contributed documentation for refactorings.
793
+ */
794
+ readonly refactoring?: IDocumentationRefactoring[];
795
+ }
796
+ interface ISubMenu {
797
+ /**
798
+ * Identifier of the submenu to display in this item.
799
+ */
800
+ readonly submenu: string;
801
+ /**
802
+ * Condition which must be true to show this item
803
+ */
804
+ readonly when?: string;
805
+ /**
806
+ * Group into which this item belongs
807
+ */
808
+ readonly group?: string;
809
+ }
810
+ interface ISubMenu {
811
+ /**
812
+ * Identifier of the menu to display as a submenu.
813
+ */
814
+ readonly id: string;
815
+ /**
816
+ * The label of the menu item which leads to this submenu.
817
+ */
818
+ readonly label: string;
819
+ /**
820
+ * (Optional) Icon which is used to represent the submenu in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like `\$(zap)`
821
+ */
822
+ readonly icon?: string | {
823
+ /**
824
+ * Icon path when a light theme is used
825
+ */
826
+ readonly light?: string;
827
+ /**
828
+ * Icon path when a dark theme is used
829
+ */
830
+ readonly dark?: string;
831
+ };
832
+ }
833
+ interface IResourceLabelFormatters {
834
+ /**
835
+ * URI scheme on which to match the formatter on. For example "file". Simple glob patterns are supported.
836
+ */
837
+ readonly scheme: string;
838
+ /**
839
+ * URI authority on which to match the formatter on. Simple glob patterns are supported.
840
+ */
841
+ readonly authority?: string;
842
+ /**
843
+ * Rules for formatting uri resource labels.
844
+ */
845
+ readonly formatting: {
846
+ /**
847
+ * Label rules to display. For example: myLabel:/${path}. ${path}, ${scheme}, ${authority} and ${authoritySuffix} are supported as variables.
848
+ */
849
+ readonly label?: string;
850
+ /**
851
+ * Separator to be used in the uri label display. '/' or '' as an example.
852
+ */
853
+ readonly separator?: string;
854
+ /**
855
+ * Controls whether `${path}` substitutions should have starting separator characters stripped.
856
+ */
857
+ readonly stripPathStartingSeparator?: boolean;
858
+ /**
859
+ * Controls if the start of the uri label should be tildified when possible.
860
+ */
861
+ readonly tildify?: boolean;
862
+ /**
863
+ * Suffix appended to the workspace label.
864
+ */
865
+ readonly workspaceSuffix?: string;
866
+ };
867
+ }
868
+ interface ISemanticTokenTypes {
869
+ /**
870
+ * The identifier of the semantic token type
871
+ */
872
+ readonly id?: string;
873
+ /**
874
+ * The super type of the semantic token type
875
+ */
876
+ readonly superType?: string;
877
+ /**
878
+ * The description of the semantic token type
879
+ */
880
+ readonly description?: string;
881
+ }
882
+ interface ISemanticTokenModifiers {
883
+ /**
884
+ * The identifier of the semantic token modifier
885
+ */
886
+ readonly id?: string;
887
+ /**
888
+ * The description of the semantic token modifier
889
+ */
890
+ readonly description?: string;
891
+ }
892
+ interface ISemanticTokenScopes {
893
+ /**
894
+ * Lists the languge for which the defaults are.
895
+ */
896
+ readonly language?: string;
897
+ /**
898
+ * Maps a semantic token (described by semantic token selector) to one or more textMate scopes used to represent that token.
899
+ */
900
+ readonly scopes?: {
901
+ [k: string]: string[];
902
+ };
903
+ }
904
+ interface IBreakpoint {
905
+ /**
906
+ * Allow breakpoints for this language.
907
+ */
908
+ readonly language?: string;
909
+ /**
910
+ * Condition which must be true to enable breakpoints in this language. Consider matching this to the debugger when clause as appropriate.
911
+ */
912
+ readonly when?: string;
913
+ }
914
+ interface ITerminalQuickFix {
915
+ /**
916
+ * The ID of the quick fix provider
917
+ */
918
+ readonly id: string;
919
+ /**
920
+ * A regular expression or string to test the command line against
921
+ */
922
+ readonly commandLineMatcher: string;
923
+ readonly outputMatcher: {
924
+ /**
925
+ * A regular expression or string to test the command line against
926
+ */
927
+ readonly lineMatcher: string;
928
+ /**
929
+ * Where the search should begin in the buffer
930
+ */
931
+ readonly anchor: 'top' | 'bottom';
932
+ /**
933
+ * The number of lines vertically from the anchor in the buffer to start matching against
934
+ */
935
+ readonly offset: number;
936
+ /**
937
+ * The number of rows to match against, this should be as small as possible for performance reasons
938
+ */
939
+ readonly length: number;
162
940
  };
941
+ /**
942
+ * The command exit result to match on
943
+ */
944
+ readonly commandExitResult: 'success' | 'error';
945
+ /**
946
+ * The kind of the resulting quick fix. This changes how the quick fix is presented. Defaults to `"fix"`.
947
+ */
948
+ readonly kind?: 'default' | 'explain';
949
+ }
950
+ interface IInteractiveSession {
951
+ /**
952
+ * Unique identifier for this Interactive Session provider.
953
+ */
954
+ readonly id: string;
955
+ /**
956
+ * Display name for this Interactive Session provider.
957
+ */
958
+ readonly label: string;
959
+ /**
960
+ * An icon for this Interactive Session provider.
961
+ */
962
+ readonly icon?: string;
963
+ /**
964
+ * A condition which must be true to enable this Interactive Session provider.
965
+ */
966
+ readonly when?: string;
967
+ }
968
+ interface NotebookPreload {
969
+ /**
970
+ * Type of the notebook.
971
+ */
972
+ readonly type: string;
973
+ /**
974
+ * Path to file loaded in the webview.
975
+ */
976
+ readonly entrypoint: string;
977
+ /**
978
+ * Paths to additional resources that should be allowed in the webview.
979
+ */
980
+ readonly localResourceRoots?: string[];
981
+ }
982
+ interface IViewsWelcome {
983
+ readonly view: string;
984
+ /**
985
+ * Welcome content to be displayed. The format of the contents is a subset of Markdown, with support for links only.
986
+ */
987
+ readonly contents: string;
988
+ /**
989
+ * Condition when the welcome content should be displayed.
990
+ */
991
+ readonly when?: string;
992
+ /**
993
+ * Group to which this welcome content belongs. Proposed API.
994
+ */
995
+ readonly group?: string;
996
+ /**
997
+ * Condition when the welcome content buttons and command links should be enabled.
998
+ */
999
+ readonly enablement?: string;
163
1000
  }
164
1001
  interface IExtensionContributions {
165
- commands?: ICommand[];
166
- configuration?: IConfiguration | IConfiguration[];
167
- debuggers?: IDebugger[];
168
- grammars?: IGrammar[];
169
- jsonValidation?: IJSONValidation[];
170
- keybindings?: IKeyBinding[];
171
- languages?: ILanguage[];
172
- menus?: {
1002
+ /**
1003
+ * Contributes terminal functionality.
1004
+ */
1005
+ readonly terminal?: ITerminal;
1006
+ /**
1007
+ * Contributes commands to the command palette.
1008
+ */
1009
+ readonly commands?: ICommand[];
1010
+ /**
1011
+ * Contributes configuration settings.
1012
+ */
1013
+ readonly configuration?: IConfiguration | IConfiguration[];
1014
+ /**
1015
+ * Contributes debug adapters.
1016
+ */
1017
+ readonly debuggers?: IDebugger[];
1018
+ /**
1019
+ * Contributes breakpoints.
1020
+ */
1021
+ readonly breakpoints?: IBreakpoint[];
1022
+ /**
1023
+ * Contributes textmate tokenizers.
1024
+ */
1025
+ readonly grammars?: IGrammar[];
1026
+ /**
1027
+ * Contributes json schema configuration.
1028
+ */
1029
+ readonly jsonValidation?: IJSONValidation[];
1030
+ /**
1031
+ * Contributes keybindings.
1032
+ */
1033
+ readonly keybindings?: IKeyBinding[];
1034
+ /**
1035
+ * Contributes language declarations.
1036
+ */
1037
+ readonly languages?: ILanguage[];
1038
+ /**
1039
+ * Contributes menu items to the editor
1040
+ */
1041
+ readonly menus?: {
173
1042
  [context: string]: IMenu[];
174
1043
  };
175
- snippets?: ISnippet[];
176
- themes?: ITheme[];
177
- iconThemes?: ITheme[];
178
- productIconThemes?: ITheme[];
179
- viewsContainers?: {
1044
+ /**
1045
+ * Contributes submenu items to the editor
1046
+ */
1047
+ readonly submenus?: ISubMenu[];
1048
+ /**
1049
+ * Contributes snippets.
1050
+ */
1051
+ readonly snippets?: ISnippet[];
1052
+ /**
1053
+ * Contributes textmate color themes.
1054
+ */
1055
+ readonly themes?: IColorTheme[];
1056
+ /**
1057
+ * Contributes file icon themes.
1058
+ */
1059
+ readonly iconThemes?: IIconTheme[];
1060
+ /**
1061
+ * Contributes product icon themes.
1062
+ */
1063
+ readonly productIconThemes?: IProductTheme[];
1064
+ /**
1065
+ * Contributes views containers to the editor
1066
+ */
1067
+ readonly viewsContainers?: {
180
1068
  [location: string]: IViewContainer[];
181
1069
  };
182
- views?: {
1070
+ /**
1071
+ * Contributes views to the editor
1072
+ */
1073
+ readonly views?: {
183
1074
  [location: string]: IView[];
184
1075
  };
185
- colors?: IColor[];
186
- localizations?: ILocalizationContribution[];
1076
+ /**
1077
+ * Contributes extension defined themable colors
1078
+ */
1079
+ readonly colors?: IColor[];
1080
+ /**
1081
+ * Contributes localizations to the editor
1082
+ */
1083
+ readonly localizations?: ILocalizationContribution[];
1084
+ /**
1085
+ * Contributed custom editors.
1086
+ */
187
1087
  readonly customEditors?: readonly IWebviewEditor[];
188
1088
  readonly codeActions?: readonly ICodeActionContribution[];
189
- authentication?: IAuthenticationContribution[];
190
- walkthroughs?: IWalkthrough[];
191
- startEntries?: IStartEntry[];
1089
+ /**
1090
+ * Contributes authentication
1091
+ */
1092
+ readonly authentication?: IAuthenticationContribution[];
1093
+ /**
1094
+ * Contribute walkthroughs to help users getting started with your extension.
1095
+ */
1096
+ readonly walkthroughs?: IWalkthrough[];
1097
+ readonly startEntries?: IStartEntry[];
1098
+ /**
1099
+ * Contributes notebook document provider.
1100
+ */
192
1101
  readonly notebooks?: INotebookEntry[];
1102
+ /**
1103
+ * Contributes notebook output renderer provider.
1104
+ */
193
1105
  readonly notebookRenderer?: INotebookRendererContribution[];
1106
+ /**
1107
+ * Contributes notebook preloads.
1108
+ */
1109
+ readonly notebookPreload?: NotebookPreload[];
1110
+ /**
1111
+ * Contributes items to the status bar.
1112
+ */
1113
+ readonly statusBarItems?: IStatusBarItem[];
1114
+ /**
1115
+ * Contributes help information for Remote
1116
+ */
1117
+ readonly remoteHelp?: IRemoteHelp;
1118
+ /**
1119
+ * Contributes task kinds
1120
+ */
1121
+ readonly taskDefinitions?: ITaskDefinitions[];
1122
+ /**
1123
+ * Contributes extension defined themable icons
1124
+ */
1125
+ readonly icons?: {
1126
+ [id: string]: IIcon;
1127
+ };
1128
+ /**
1129
+ * Contributed documentation.
1130
+ */
1131
+ readonly documentation?: IDocumentation;
1132
+ /**
1133
+ * Contributes resource label formatting rules.
1134
+ */
1135
+ readonly resourceLabelFormatters?: IResourceLabelFormatters[];
1136
+ readonly configurationDefaults?: {
1137
+ [id: string]: any;
1138
+ };
1139
+ /**
1140
+ * Contributes semantic token types.
1141
+ */
1142
+ readonly semanticTokenTypes?: ISemanticTokenTypes[];
1143
+ /**
1144
+ * Contributes semantic token modifiers.
1145
+ */
1146
+ readonly semanticTokenModifiers?: ISemanticTokenModifiers[];
1147
+ /**
1148
+ * Contributes semantic token scope maps.
1149
+ */
1150
+ readonly semanticTokenScopes?: ISemanticTokenScopes[];
1151
+ /**
1152
+ * Contributes terminal quick fixes.
1153
+ */
1154
+ readonly terminalQuickFixes?: ITerminalQuickFix[];
1155
+ /**
1156
+ * Contributes an Interactive Session provider
1157
+ */
1158
+ readonly interactiveSession?: IInteractiveSession[];
1159
+ /**
1160
+ * Contributed views welcome content. Welcome content will be rendered in tree based views whenever they have no meaningful content to display, ie. the File Explorer when no folder is open. Such content is useful as in-product documentation to drive users to use certain features before they are available. A good example would be a `Clone Repository` button in the File Explorer welcome view.
1161
+ */
1162
+ readonly viewsWelcome?: IViewsWelcome[];
194
1163
  }
195
1164
  interface IExtensionCapabilities {
196
1165
  readonly virtualWorkspaces?: ExtensionVirtualWorkspaceSupport;
@@ -249,4 +1218,4 @@ interface IRelaxedExtensionManifest {
249
1218
  }
250
1219
  type IExtensionManifest = Readonly<IRelaxedExtensionManifest>;
251
1220
 
252
- export type { ExtensionUntrustedWorkspaceSupport, ExtensionVirtualWorkspaceSupport, IAuthenticationContribution, ICodeActionContribution, ICodeActionContributionAction, IColor, ICommand, IConfiguration, IConfigurationProperty, IDebugger, IExtensionCapabilities, IExtensionContributions, IExtensionManifest, IGrammar, IJSONValidation, IKeyBinding, ILanguage, ILocalizationContribution, IMenu, INotebookEntry, INotebookRendererContribution, IRelaxedExtensionManifest, ISnippet, IStartEntry, ITheme, ITranslation, IView, IViewContainer, IWalkthrough, IWalkthroughStep, LimitedWorkspaceSupportType };
1221
+ export type { ExtensionUntrustedWorkspaceSupport, ExtensionVirtualWorkspaceSupport, IAuthenticationContribution, IBreakpoint, ICodeActionContribution, ICodeActionContributionAction, IColor, IColorTheme, ICommand, IConfiguration, IDebugger, IDocumentation, IDocumentationRefactoring, IExtensionCapabilities, IExtensionContributions, IExtensionManifest, IGrammar, IIcon, IIconTheme, IInteractiveSession, IJSONValidation, IKeyBinding, ILanguage, ILocalizationContribution, IMenu, INotebookEntry, INotebookRendererContribution, IProductTheme, IRelaxedExtensionManifest, IRemoteHelp, ISemanticTokenModifiers, ISemanticTokenScopes, ISemanticTokenTypes, ISnippet, IStartEntry, IStatusBarItem, ISubMenu, ITaskDefinitions, ITerminal, ITerminalQuickFix, ITranslation, IView, IViewContainer, IViewsWelcome, IWalkthrough, IWalkthroughStep, LimitedWorkspaceSupportType, NotebookPreload };