@codingame/monaco-vscode-view-common-service-override 21.5.1 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/package.json +41 -41
  2. package/service-override/vs/workbench/contrib/webview/browser/pre/service-worker.js +14 -9
  3. package/vscode/src/vs/platform/actions/browser/actionViewItemService.d.ts +1 -1
  4. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +62 -62
  5. package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
  6. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +6 -6
  7. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +167 -170
  8. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -8
  9. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
  10. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +5 -5
  11. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
  12. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +1 -1
  13. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +2 -2
  14. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
  15. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +14 -14
  16. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
  17. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +10 -8
  18. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +29 -29
  19. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
  20. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +4 -4
  21. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
  22. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
  23. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
  24. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
  25. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +6 -6
  26. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +1 -1
  27. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +2 -2
  28. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
  29. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
  30. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -9
  31. package/vscode/src/vs/workbench/contrib/sash/browser/sash.d.ts +5 -7
  32. package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +16 -15
  33. package/vscode/src/vs/workbench/contrib/scrollLocking/browser/scrollLocking.js +7 -7
  34. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
  35. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
  36. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
  37. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +10 -6
  38. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
  39. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -2
  40. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +1 -1
  41. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -3
  42. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +1 -1
  43. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +9 -9
  44. package/vscode/src/vs/workbench/services/history/browser/historyService.js +9 -9
  45. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +9 -9
  46. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-view-common-service-override",
3
- "version": "21.5.1",
3
+ "version": "22.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - view-common service-override",
6
6
  "keywords": [],
@@ -15,46 +15,46 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "21.5.1",
19
- "@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "21.5.1",
20
- "@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "21.5.1",
21
- "@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "21.5.1",
22
- "@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common": "21.5.1",
23
- "@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "21.5.1",
24
- "@codingame/monaco-vscode-3109a756-1f83-5d09-945b-9f0fcad928f0-common": "21.5.1",
25
- "@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "21.5.1",
26
- "@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "21.5.1",
27
- "@codingame/monaco-vscode-4fad3647-b95d-5c19-bab1-bb9de627a5ec-common": "21.5.1",
28
- "@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "21.5.1",
29
- "@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common": "21.5.1",
30
- "@codingame/monaco-vscode-615ce609-8555-545a-a549-47bd9f80e9f8-common": "21.5.1",
31
- "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "21.5.1",
32
- "@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "21.5.1",
33
- "@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common": "21.5.1",
34
- "@codingame/monaco-vscode-71c8dbff-4c98-552f-aef0-e72b00fdcfc0-common": "21.5.1",
35
- "@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "21.5.1",
36
- "@codingame/monaco-vscode-7869cfe8-f42c-5721-9f2b-7d04a6a41f16-common": "21.5.1",
37
- "@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "21.5.1",
38
- "@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common": "21.5.1",
39
- "@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "21.5.1",
40
- "@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "21.5.1",
41
- "@codingame/monaco-vscode-9a5ab9e7-d838-5831-9eb4-e79ea3764dcb-common": "21.5.1",
42
- "@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "21.5.1",
43
- "@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "21.5.1",
44
- "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "21.5.1",
45
- "@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common": "21.5.1",
46
- "@codingame/monaco-vscode-api": "21.5.1",
47
- "@codingame/monaco-vscode-bc6d9a89-1625-5010-b57e-ff44151144fe-common": "21.5.1",
48
- "@codingame/monaco-vscode-bulk-edit-service-override": "21.5.1",
49
- "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "21.5.1",
50
- "@codingame/monaco-vscode-d26a96d3-122c-5a3d-a04d-deb5ff0f19c0-common": "21.5.1",
51
- "@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "21.5.1",
52
- "@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "21.5.1",
53
- "@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "21.5.1",
54
- "@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common": "21.5.1",
55
- "@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "21.5.1",
56
- "@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "21.5.1",
57
- "@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "21.5.1"
18
+ "@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "22.0.0",
19
+ "@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "22.0.0",
20
+ "@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "22.0.0",
21
+ "@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "22.0.0",
22
+ "@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "22.0.0",
23
+ "@codingame/monaco-vscode-3109a756-1f83-5d09-945b-9f0fcad928f0-common": "22.0.0",
24
+ "@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "22.0.0",
25
+ "@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "22.0.0",
26
+ "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "22.0.0",
27
+ "@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "22.0.0",
28
+ "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "22.0.0",
29
+ "@codingame/monaco-vscode-615ce609-8555-545a-a549-47bd9f80e9f8-common": "22.0.0",
30
+ "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "22.0.0",
31
+ "@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "22.0.0",
32
+ "@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common": "22.0.0",
33
+ "@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "22.0.0",
34
+ "@codingame/monaco-vscode-7869cfe8-f42c-5721-9f2b-7d04a6a41f16-common": "22.0.0",
35
+ "@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "22.0.0",
36
+ "@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common": "22.0.0",
37
+ "@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "22.0.0",
38
+ "@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "22.0.0",
39
+ "@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "22.0.0",
40
+ "@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "22.0.0",
41
+ "@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "22.0.0",
42
+ "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "22.0.0",
43
+ "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "22.0.0",
44
+ "@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common": "22.0.0",
45
+ "@codingame/monaco-vscode-api": "22.0.0",
46
+ "@codingame/monaco-vscode-bc6d9a89-1625-5010-b57e-ff44151144fe-common": "22.0.0",
47
+ "@codingame/monaco-vscode-bulk-edit-service-override": "22.0.0",
48
+ "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "22.0.0",
49
+ "@codingame/monaco-vscode-d26a96d3-122c-5a3d-a04d-deb5ff0f19c0-common": "22.0.0",
50
+ "@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "22.0.0",
51
+ "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "22.0.0",
52
+ "@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "22.0.0",
53
+ "@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "22.0.0",
54
+ "@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common": "22.0.0",
55
+ "@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "22.0.0",
56
+ "@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "22.0.0",
57
+ "@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "22.0.0"
58
58
  },
59
59
  "main": "index.js",
60
60
  "module": "index.js",
@@ -286,10 +286,20 @@ async function processResourceRequest(
286
286
  return requestTimeout();
287
287
  }
288
288
 
289
+ /** @type {Record<string, string>} */
290
+ const accessControlHeaders = {
291
+ 'Access-Control-Allow-Origin': '*',
292
+ 'Cross-Origin-Resource-Policy': 'cross-origin',
293
+ };
294
+
289
295
  const entry = result.value;
290
296
  if (entry.status === 304) { // Not modified
291
297
  if (cachedResponse) {
292
- return cachedResponse.clone();
298
+ const r = cachedResponse.clone();
299
+ for (const [key, value] of Object.entries(accessControlHeaders)) {
300
+ r.headers.set(key, value);
301
+ }
302
+ return r;
293
303
  } else {
294
304
  throw new Error('No cache found');
295
305
  }
@@ -303,11 +313,6 @@ async function processResourceRequest(
303
313
  return notFound();
304
314
  }
305
315
 
306
- /** @type {Record<string, string>} */
307
- const commonHeaders = {
308
- 'Access-Control-Allow-Origin': '*',
309
- };
310
-
311
316
  const byteLength = entry.data.byteLength;
312
317
 
313
318
  const range = event.request.headers.get('range');
@@ -323,7 +328,7 @@ async function processResourceRequest(
323
328
  return new Response(entry.data.slice(start, end + 1), {
324
329
  status: 206,
325
330
  headers: {
326
- ...commonHeaders,
331
+ ...accessControlHeaders,
327
332
  'Content-range': `bytes 0-${end}/${byteLength}`,
328
333
  }
329
334
  });
@@ -332,7 +337,7 @@ async function processResourceRequest(
332
337
  return new Response(null, {
333
338
  status: 416,
334
339
  headers: {
335
- ...commonHeaders,
340
+ ...accessControlHeaders,
336
341
  'Content-range': `*/${byteLength}`
337
342
  }
338
343
  });
@@ -341,7 +346,7 @@ async function processResourceRequest(
341
346
 
342
347
  /** @type {Record<string, string>} */
343
348
  const headers = {
344
- ...commonHeaders,
349
+ ...accessControlHeaders,
345
350
  'Content-Type': entry.mime,
346
351
  'Content-Length': byteLength.toString(),
347
352
  };
@@ -7,7 +7,7 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
7
7
  import { MenuId } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
8
8
  import { IActionViewItemService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/actionViewItemService.service";
9
9
  export interface IActionViewItemFactory {
10
- (action: IAction, options: IActionViewItemOptions, instaService: IInstantiationService): IActionViewItem | undefined;
10
+ (action: IAction, options: IActionViewItemOptions, instantiationService: IInstantiationService, windowId: number): IActionViewItem | undefined;
11
11
  }
12
12
  export declare class NullActionViewItemService implements IActionViewItemService {
13
13
  _serviceBrand: undefined;
@@ -11,7 +11,7 @@ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/regist
11
11
  import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
12
12
  import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common/vscode/vs/workbench/browser/panecomposite';
13
13
  import { CustomTreeView, TreeViewPane } from '@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common/vscode/vs/workbench/browser/parts/views/treeView';
14
- import { ViewPaneContainer } from '@codingame/monaco-vscode-71c8dbff-4c98-552f-aef0-e72b00fdcfc0-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
14
+ import { ViewPaneContainer } from '@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
15
15
  import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
16
16
  import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
17
17
  import { VIEWLET_ID as VIEWLET_ID$3 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
@@ -31,19 +31,19 @@ const viewsContainerSchema = {
31
31
  properties: {
32
32
  id: {
33
33
  description: ( localize(
34
- 2525,
34
+ 2531,
35
35
  "Unique id used to identify the container in which views can be contributed using 'views' contribution point"
36
36
  )),
37
37
  type: 'string',
38
38
  pattern: '^[a-zA-Z0-9_-]+$'
39
39
  },
40
40
  title: {
41
- description: ( localize(2526, 'Human readable string used to render the container')),
41
+ description: ( localize(2532, 'Human readable string used to render the container')),
42
42
  type: 'string'
43
43
  },
44
44
  icon: {
45
45
  description: ( localize(
46
- 2527,
46
+ 2533,
47
47
  "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."
48
48
  )),
49
49
  type: 'string'
@@ -52,21 +52,21 @@ const viewsContainerSchema = {
52
52
  required: ['id', 'title', 'icon']
53
53
  };
54
54
  const viewsContainersContribution = {
55
- description: ( localize(2528, 'Contributes views containers to the editor')),
55
+ description: ( localize(2534, 'Contributes views containers to the editor')),
56
56
  type: 'object',
57
57
  properties: {
58
58
  'activitybar': {
59
- description: ( localize(2529, "Contribute views containers to Activity Bar")),
59
+ description: ( localize(2535, "Contribute views containers to Activity Bar")),
60
60
  type: 'array',
61
61
  items: viewsContainerSchema
62
62
  },
63
63
  'panel': {
64
- description: ( localize(2530, "Contribute views containers to Panel")),
64
+ description: ( localize(2536, "Contribute views containers to Panel")),
65
65
  type: 'array',
66
66
  items: viewsContainerSchema
67
67
  },
68
68
  'secondarySidebar': {
69
- description: ( localize(2531, "Contribute views containers to Secondary Side Bar")),
69
+ description: ( localize(2537, "Contribute views containers to Secondary Side Bar")),
70
70
  type: 'array',
71
71
  items: viewsContainerSchema
72
72
  }
@@ -91,7 +91,7 @@ const viewDescriptor = {
91
91
  properties: {
92
92
  type: {
93
93
  markdownDescription: ( localize(
94
- 2532,
94
+ 2538,
95
95
  "Type of the view. This can either be `tree` for a tree view based view or `webview` for a webview based view. The default is `tree`."
96
96
  )),
97
97
  type: 'string',
@@ -100,45 +100,45 @@ const viewDescriptor = {
100
100
  'webview',
101
101
  ],
102
102
  markdownEnumDescriptions: [
103
- ( localize(2533, "The view is backed by a `TreeView` created by `createTreeView`.")),
103
+ ( localize(2539, "The view is backed by a `TreeView` created by `createTreeView`.")),
104
104
  ( localize(
105
- 2534,
105
+ 2540,
106
106
  "The view is backed by a `WebviewView` registered by `registerWebviewViewProvider`."
107
107
  )),
108
108
  ]
109
109
  },
110
110
  id: {
111
111
  markdownDescription: ( localize(
112
- 2535,
112
+ 2541,
113
113
  'Identifier of the view. This should be unique across all views. It is recommended to include your extension id as part of the view id. Use this to register a data provider through `vscode.window.registerTreeDataProviderForView` API. Also to trigger activating your extension by registering `onView:${id}` event to `activationEvents`.'
114
114
  )),
115
115
  type: 'string'
116
116
  },
117
117
  name: {
118
- description: ( localize(2536, 'The human-readable name of the view. Will be shown')),
118
+ description: ( localize(2542, 'The human-readable name of the view. Will be shown')),
119
119
  type: 'string'
120
120
  },
121
121
  when: {
122
- description: ( localize(2537, 'Condition which must be true to show this view')),
122
+ description: ( localize(2543, 'Condition which must be true to show this view')),
123
123
  type: 'string'
124
124
  },
125
125
  icon: {
126
126
  description: ( localize(
127
- 2538,
127
+ 2544,
128
128
  "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."
129
129
  )),
130
130
  type: 'string'
131
131
  },
132
132
  contextualTitle: {
133
133
  description: ( localize(
134
- 2539,
134
+ 2545,
135
135
  "Human-readable context for when the view is moved out of its original location. By default, the view's container name will be used."
136
136
  )),
137
137
  type: 'string'
138
138
  },
139
139
  visibility: {
140
140
  description: ( localize(
141
- 2540,
141
+ 2546,
142
142
  "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."
143
143
  )),
144
144
  type: 'string',
@@ -150,27 +150,27 @@ const viewDescriptor = {
150
150
  default: 'visible',
151
151
  enumDescriptions: [
152
152
  ( localize(
153
- 2541,
153
+ 2547,
154
154
  "The default initial state for the view. In most containers the view will be expanded, however; some built-in containers (explorer, scm, and debug) show all contributed views collapsed regardless of the `visibility`."
155
155
  )),
156
156
  ( localize(
157
- 2542,
157
+ 2548,
158
158
  "The view will not be shown in the view container, but will be discoverable through the views menu and other view entry points and can be un-hidden by the user."
159
159
  )),
160
- ( localize(2543, "The view will show in the view container, but will be collapsed."))
160
+ ( localize(2549, "The view will show in the view container, but will be collapsed."))
161
161
  ]
162
162
  },
163
163
  initialSize: {
164
164
  type: 'number',
165
165
  description: ( localize(
166
- 2544,
166
+ 2550,
167
167
  "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."
168
168
  )),
169
169
  },
170
170
  accessibilityHelpContent: {
171
171
  type: 'string',
172
172
  markdownDescription: ( localize(
173
- 2545,
173
+ 2551,
174
174
  "When the accessibility help dialog is invoked in this view, this content will be presented to the user as a markdown string. Keybindings will be resolved when provided in the format of <keybinding:commandId>. If there is no keybinding, that will be indicated and this command will be included in a quickpick for easy configuration."
175
175
  ))
176
176
  }
@@ -182,25 +182,25 @@ const remoteViewDescriptor = {
182
182
  properties: {
183
183
  id: {
184
184
  description: ( localize(
185
- 2535,
185
+ 2541,
186
186
  'Identifier of the view. This should be unique across all views. It is recommended to include your extension id as part of the view id. Use this to register a data provider through `vscode.window.registerTreeDataProviderForView` API. Also to trigger activating your extension by registering `onView:${id}` event to `activationEvents`.'
187
187
  )),
188
188
  type: 'string'
189
189
  },
190
190
  name: {
191
- description: ( localize(2536, 'The human-readable name of the view. Will be shown')),
191
+ description: ( localize(2542, 'The human-readable name of the view. Will be shown')),
192
192
  type: 'string'
193
193
  },
194
194
  when: {
195
- description: ( localize(2537, 'Condition which must be true to show this view')),
195
+ description: ( localize(2543, 'Condition which must be true to show this view')),
196
196
  type: 'string'
197
197
  },
198
198
  group: {
199
- description: ( localize(2546, 'Nested group in the viewlet')),
199
+ description: ( localize(2552, 'Nested group in the viewlet')),
200
200
  type: 'string'
201
201
  },
202
202
  remoteName: {
203
- description: ( localize(2547, 'The name of the remote type associated with this view')),
203
+ description: ( localize(2553, 'The name of the remote type associated with this view')),
204
204
  type: ['string', 'array'],
205
205
  items: {
206
206
  type: 'string'
@@ -209,36 +209,36 @@ const remoteViewDescriptor = {
209
209
  }
210
210
  };
211
211
  const viewsContribution = {
212
- description: ( localize(2548, "Contributes views to the editor")),
212
+ description: ( localize(2554, "Contributes views to the editor")),
213
213
  type: 'object',
214
214
  properties: {
215
215
  'explorer': {
216
- description: ( localize(2549, "Contributes views to Explorer container in the Activity bar")),
216
+ description: ( localize(2555, "Contributes views to Explorer container in the Activity bar")),
217
217
  type: 'array',
218
218
  items: viewDescriptor,
219
219
  default: []
220
220
  },
221
221
  'debug': {
222
- description: ( localize(2550, "Contributes views to Debug container in the Activity bar")),
222
+ description: ( localize(2556, "Contributes views to Debug container in the Activity bar")),
223
223
  type: 'array',
224
224
  items: viewDescriptor,
225
225
  default: []
226
226
  },
227
227
  'scm': {
228
- description: ( localize(2551, "Contributes views to SCM container in the Activity bar")),
228
+ description: ( localize(2557, "Contributes views to SCM container in the Activity bar")),
229
229
  type: 'array',
230
230
  items: viewDescriptor,
231
231
  default: []
232
232
  },
233
233
  'test': {
234
- description: ( localize(2552, "Contributes views to Test container in the Activity bar")),
234
+ description: ( localize(2558, "Contributes views to Test container in the Activity bar")),
235
235
  type: 'array',
236
236
  items: viewDescriptor,
237
237
  default: []
238
238
  },
239
239
  'remote': {
240
240
  description: ( localize(
241
- 2553,
241
+ 2559,
242
242
  "Contributes views to Remote container in the Activity bar. To contribute to this container, enableProposedApi needs to be turned on"
243
243
  )),
244
244
  type: 'array',
@@ -247,7 +247,7 @@ const viewsContribution = {
247
247
  }
248
248
  },
249
249
  additionalProperties: {
250
- description: ( localize(2554, "Contributes views to contributed views container")),
250
+ description: ( localize(2560, "Contributes views to contributed views container")),
251
251
  type: 'array',
252
252
  items: viewDescriptor,
253
253
  default: []
@@ -261,12 +261,12 @@ const viewsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
261
261
  extensionPoint: 'views',
262
262
  deps: [viewsContainersExtensionPoint],
263
263
  jsonSchema: viewsContribution,
264
- activationEventsGenerator: (viewExtensionPointTypeArray, result) => {
264
+ activationEventsGenerator: function* (viewExtensionPointTypeArray) {
265
265
  for (const viewExtensionPointType of viewExtensionPointTypeArray) {
266
266
  for (const viewDescriptors of ( Object.values(viewExtensionPointType))) {
267
267
  for (const viewDescriptor of viewDescriptors) {
268
268
  if (viewDescriptor.id) {
269
- result.push(`onView:${viewDescriptor.id}`);
269
+ yield `onView:${viewDescriptor.id}`;
270
270
  }
271
271
  }
272
272
  }
@@ -334,13 +334,13 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
334
334
  }
335
335
  isValidViewsContainer(viewsContainersDescriptors, collector) {
336
336
  if (!Array.isArray(viewsContainersDescriptors)) {
337
- collector.error(( localize(2555, "views containers must be an array")));
337
+ collector.error(( localize(2561, "views containers must be an array")));
338
338
  return false;
339
339
  }
340
340
  for (const descriptor of viewsContainersDescriptors) {
341
341
  if (typeof descriptor.id !== 'string' && isFalsyOrWhitespace(descriptor.id)) {
342
342
  collector.error(( localize(
343
- 2556,
343
+ 2562,
344
344
  "property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
345
345
  'id'
346
346
  )));
@@ -348,23 +348,23 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
348
348
  }
349
349
  if (!(/^[a-z0-9_-]+$/i.test(descriptor.id))) {
350
350
  collector.error(( localize(
351
- 2556,
351
+ 2562,
352
352
  "property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
353
353
  'id'
354
354
  )));
355
355
  return false;
356
356
  }
357
357
  if (typeof descriptor.title !== 'string') {
358
- collector.error(( localize(2557, "property `{0}` is mandatory and must be of type `string`", 'title')));
358
+ collector.error(( localize(2563, "property `{0}` is mandatory and must be of type `string`", 'title')));
359
359
  return false;
360
360
  }
361
361
  if (typeof descriptor.icon !== 'string') {
362
- collector.error(( localize(2557, "property `{0}` is mandatory and must be of type `string`", 'icon')));
362
+ collector.error(( localize(2563, "property `{0}` is mandatory and must be of type `string`", 'icon')));
363
363
  return false;
364
364
  }
365
365
  if (isFalsyOrWhitespace(descriptor.title)) {
366
366
  collector.warn(( localize(
367
- 2558,
367
+ 2564,
368
368
  "property `{0}` is mandatory and must be of type `string` with non-empty value",
369
369
  'title'
370
370
  )));
@@ -434,7 +434,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
434
434
  }
435
435
  if (key === 'remote' && !isProposedApiEnabled(extension.description, 'contribViewsRemote')) {
436
436
  collector.warn(( localize(
437
- 2559,
437
+ 2565,
438
438
  "View container '{0}' requires 'enabledApiProposals: [\"contribViewsRemote\"]' to be added to 'Remote'.",
439
439
  key
440
440
  )));
@@ -443,7 +443,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
443
443
  const viewContainer = this.getViewContainer(key);
444
444
  if (!viewContainer) {
445
445
  collector.warn(( localize(
446
- 2560,
446
+ 2566,
447
447
  "View container '{0}' does not exist and all views registered to it will be added to 'Explorer'.",
448
448
  key
449
449
  )));
@@ -453,11 +453,11 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
453
453
  for (let index = 0; index < value.length; index++) {
454
454
  const item = value[index];
455
455
  if (( viewIds.has(item.id))) {
456
- collector.error(( localize(2561, "Cannot register multiple views with same id `{0}`", item.id)));
456
+ collector.error(( localize(2567, "Cannot register multiple views with same id `{0}`", item.id)));
457
457
  continue;
458
458
  }
459
459
  if (this.viewsRegistry.getView(item.id) !== null) {
460
- collector.error(( localize(2562, "A view with id `{0}` is already registered.", item.id)));
460
+ collector.error(( localize(2568, "A view with id `{0}` is already registered.", item.id)));
461
461
  continue;
462
462
  }
463
463
  const order = ExtensionIdentifier.equals(extension.description.identifier, container.extensionId)
@@ -472,7 +472,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
472
472
  const initialVisibility = this.convertInitialVisibility(item.visibility);
473
473
  const type = this.getViewType(item.type);
474
474
  if (!type) {
475
- collector.error(( localize(2563, "Unknown view type `{0}`.", item.type)));
475
+ collector.error(( localize(2569, "Unknown view type `{0}`.", item.type)));
476
476
  continue;
477
477
  }
478
478
  let weight = undefined;
@@ -554,29 +554,29 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
554
554
  }
555
555
  isValidViewDescriptors(viewDescriptors, collector) {
556
556
  if (!Array.isArray(viewDescriptors)) {
557
- collector.error(( localize(2564, "views must be an array")));
557
+ collector.error(( localize(2570, "views must be an array")));
558
558
  return false;
559
559
  }
560
560
  for (const descriptor of viewDescriptors) {
561
561
  if (typeof descriptor.id !== 'string') {
562
- collector.error(( localize(2557, "property `{0}` is mandatory and must be of type `string`", 'id')));
562
+ collector.error(( localize(2563, "property `{0}` is mandatory and must be of type `string`", 'id')));
563
563
  return false;
564
564
  }
565
565
  if (typeof descriptor.name !== 'string') {
566
- collector.error(( localize(2557, "property `{0}` is mandatory and must be of type `string`", 'name')));
566
+ collector.error(( localize(2563, "property `{0}` is mandatory and must be of type `string`", 'name')));
567
567
  return false;
568
568
  }
569
569
  if (descriptor.when && typeof descriptor.when !== 'string') {
570
- collector.error(( localize(2565, "property `{0}` can be omitted or must be of type `string`", 'when')));
570
+ collector.error(( localize(2571, "property `{0}` can be omitted or must be of type `string`", 'when')));
571
571
  return false;
572
572
  }
573
573
  if (descriptor.icon && typeof descriptor.icon !== 'string') {
574
- collector.error(( localize(2565, "property `{0}` can be omitted or must be of type `string`", 'icon')));
574
+ collector.error(( localize(2571, "property `{0}` can be omitted or must be of type `string`", 'icon')));
575
575
  return false;
576
576
  }
577
577
  if (descriptor.contextualTitle && typeof descriptor.contextualTitle !== 'string') {
578
578
  collector.error(( localize(
579
- 2565,
579
+ 2571,
580
580
  "property `{0}` can be omitted or must be of type `string`",
581
581
  'contextualTitle'
582
582
  )));
@@ -584,7 +584,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
584
584
  }
585
585
  if (descriptor.visibility && !this.convertInitialVisibility(descriptor.visibility)) {
586
586
  collector.error(( localize(
587
- 2566,
587
+ 2572,
588
588
  "property `{0}` can be omitted or must be one of {1}",
589
589
  'visibility',
590
590
  ( Object.values(InitialVisibility)).join(', ')
@@ -636,9 +636,9 @@ class ViewContainersDataRenderer extends Disposable {
636
636
  return { data: { headers: [], rows: [] }, dispose: () => { } };
637
637
  }
638
638
  const headers = [
639
- ( localize(2567, "ID")),
640
- ( localize(2568, "Title")),
641
- ( localize(2569, "Where")),
639
+ ( localize(2573, "ID")),
640
+ ( localize(2574, "Title")),
641
+ ( localize(2575, "Where")),
642
642
  ];
643
643
  const rows = ( viewContainers
644
644
  .sort((a, b) => a.id.localeCompare(b.id))
@@ -677,9 +677,9 @@ class ViewsDataRenderer extends Disposable {
677
677
  return { data: { headers: [], rows: [] }, dispose: () => { } };
678
678
  }
679
679
  const headers = [
680
- ( localize(2570, "ID")),
681
- ( localize(2571, "Name")),
682
- ( localize(2569, "Where")),
680
+ ( localize(2576, "ID")),
681
+ ( localize(2577, "Name")),
682
+ ( localize(2575, "Where")),
683
683
  ];
684
684
  const rows = ( views
685
685
  .sort((a, b) => a.id.localeCompare(b.id))
@@ -701,7 +701,7 @@ class ViewsDataRenderer extends Disposable {
701
701
  }
702
702
  ( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
703
703
  id: 'viewsContainers',
704
- label: ( localize(2572, "View Containers")),
704
+ label: ( localize(2578, "View Containers")),
705
705
  access: {
706
706
  canToggle: false
707
707
  },
@@ -709,7 +709,7 @@ class ViewsDataRenderer extends Disposable {
709
709
  });
710
710
  ( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
711
711
  id: 'views',
712
- label: ( localize(2573, "Views")),
712
+ label: ( localize(2579, "Views")),
713
713
  access: {
714
714
  canToggle: false
715
715
  },
@@ -782,12 +782,12 @@ registerAction2(class ToggleStickyScroll extends Action2 {
782
782
  super({
783
783
  id: 'tree.toggleStickyScroll',
784
784
  title: {
785
- ...( localize2(2821, "Toggle Tree Sticky Scroll")),
786
- mnemonicTitle: ( localize(2822, "&&Toggle Tree Sticky Scroll")),
785
+ ...( localize2(2828, "Toggle Tree Sticky Scroll")),
786
+ mnemonicTitle: ( localize(2829, "&&Toggle Tree Sticky Scroll")),
787
787
  },
788
788
  category: 'View',
789
789
  metadata: { description: ( localize(
790
- 2823,
790
+ 2830,
791
791
  "Toggles Sticky Scroll widget at the top of tree structures such as the File Explorer and Debug variables View."
792
792
  )) },
793
793
  f1: true