@codingame/monaco-vscode-view-common-service-override 4.5.1 → 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.
Files changed (60) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/base/browser/ui/grid/grid.js +12 -12
  3. package/vscode/src/vs/base/browser/ui/grid/gridview.js +26 -26
  4. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +4 -3
  5. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +127 -220
  6. package/vscode/src/vs/workbench/browser/actions/listCommands.js +43 -44
  7. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +7 -30
  8. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +67 -138
  9. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +21 -36
  10. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +26 -27
  11. package/vscode/src/vs/workbench/browser/parts/compositePart.js +17 -31
  12. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +215 -764
  13. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +27 -42
  14. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +24 -23
  15. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +3 -3
  16. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +31 -33
  17. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +51 -54
  18. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +38 -41
  19. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +21 -24
  20. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -5
  21. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +17 -20
  22. package/vscode/src/vs/workbench/browser/window.js +41 -92
  23. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +41 -78
  24. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +23 -46
  25. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +36 -27
  26. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +1 -1
  27. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -1
  28. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +14 -15
  29. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +10 -11
  30. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +1 -1
  31. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +25 -52
  32. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +55 -87
  33. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +18 -48
  34. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +61 -150
  35. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +15 -70
  36. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +9 -20
  37. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -65
  38. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +38 -113
  39. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +12 -19
  40. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +34 -75
  41. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +16 -37
  42. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +40 -43
  43. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +12 -11
  44. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +24 -61
  45. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -6
  46. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +37 -70
  47. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +23 -46
  48. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +26 -27
  49. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +2 -2
  50. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +50 -52
  51. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +18 -34
  52. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +7 -10
  53. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +2 -2
  54. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +45 -46
  55. package/vscode/src/vs/workbench/services/driver/browser/driver.js +8 -6
  56. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +45 -68
  57. package/vscode/src/vs/workbench/services/history/browser/historyService.js +95 -98
  58. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +34 -74
  59. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +69 -67
  60. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +52 -47
@@ -32,30 +32,27 @@ import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
32
32
  import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
33
33
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
34
34
 
35
+ const _moduleId = "vs/workbench/api/browser/viewsExtensionPoint";
35
36
  const viewsContainerSchema = {
36
37
  type: 'object',
37
38
  properties: {
38
39
  id: {
39
40
  description: ( localizeWithPath(
40
- 'vs/workbench/api/browser/viewsExtensionPoint',
41
- { key: 'vscode.extension.contributes.views.containers.id', comment: ['Contribution refers to those that an extension contributes to VS Code through an extension/contribution point. '] },
41
+ _moduleId,
42
+ 0,
42
43
  "Unique id used to identify the container in which views can be contributed using 'views' contribution point"
43
44
  )),
44
45
  type: 'string',
45
46
  pattern: '^[a-zA-Z0-9_-]+$'
46
47
  },
47
48
  title: {
48
- description: ( localizeWithPath(
49
- 'vs/workbench/api/browser/viewsExtensionPoint',
50
- 'vscode.extension.contributes.views.containers.title',
51
- 'Human readable string used to render the container'
52
- )),
49
+ description: ( localizeWithPath(_moduleId, 1, 'Human readable string used to render the container')),
53
50
  type: 'string'
54
51
  },
55
52
  icon: {
56
53
  description: ( localizeWithPath(
57
- 'vs/workbench/api/browser/viewsExtensionPoint',
58
- 'vscode.extension.contributes.views.containers.icon',
54
+ _moduleId,
55
+ 2,
59
56
  "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."
60
57
  )),
61
58
  type: 'string'
@@ -64,44 +61,32 @@ const viewsContainerSchema = {
64
61
  required: ['id', 'title', 'icon']
65
62
  };
66
63
  const viewsContainersContribution = {
67
- description: ( localizeWithPath(
68
- 'vs/workbench/api/browser/viewsExtensionPoint',
69
- 'vscode.extension.contributes.viewsContainers',
70
- 'Contributes views containers to the editor'
71
- )),
64
+ description: ( localizeWithPath(_moduleId, 3, 'Contributes views containers to the editor')),
72
65
  type: 'object',
73
66
  properties: {
74
67
  'activitybar': {
75
- description: ( localizeWithPath(
76
- 'vs/workbench/api/browser/viewsExtensionPoint',
77
- 'views.container.activitybar',
78
- "Contribute views containers to Activity Bar"
79
- )),
68
+ description: ( localizeWithPath(_moduleId, 4, "Contribute views containers to Activity Bar")),
80
69
  type: 'array',
81
70
  items: viewsContainerSchema
82
71
  },
83
72
  'panel': {
84
- description: ( localizeWithPath(
85
- 'vs/workbench/api/browser/viewsExtensionPoint',
86
- 'views.container.panel',
87
- "Contribute views containers to Panel"
88
- )),
73
+ description: ( localizeWithPath(_moduleId, 5, "Contribute views containers to Panel")),
89
74
  type: 'array',
90
75
  items: viewsContainerSchema
91
76
  }
92
77
  }
93
78
  };
94
79
  var ViewType;
95
- ( (function(ViewType) {
80
+ ( ((function(ViewType) {
96
81
  ViewType["Tree"] = "tree";
97
82
  ViewType["Webview"] = "webview";
98
- })(ViewType || (ViewType = {})));
83
+ })(ViewType || (ViewType = {}))));
99
84
  var InitialVisibility;
100
- ( (function(InitialVisibility) {
85
+ ( ((function(InitialVisibility) {
101
86
  InitialVisibility["Visible"] = "visible";
102
87
  InitialVisibility["Hidden"] = "hidden";
103
88
  InitialVisibility["Collapsed"] = "collapsed";
104
- })(InitialVisibility || (InitialVisibility = {})));
89
+ })(InitialVisibility || (InitialVisibility = {}))));
105
90
  const viewDescriptor = {
106
91
  type: 'object',
107
92
  required: ['id', 'name'],
@@ -109,8 +94,8 @@ const viewDescriptor = {
109
94
  properties: {
110
95
  type: {
111
96
  markdownDescription: ( localizeWithPath(
112
- 'vs/workbench/api/browser/viewsExtensionPoint',
113
- 'vscode.extension.contributes.view.type',
97
+ _moduleId,
98
+ 6,
114
99
  "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`."
115
100
  )),
116
101
  type: 'string',
@@ -120,61 +105,53 @@ const viewDescriptor = {
120
105
  ],
121
106
  markdownEnumDescriptions: [
122
107
  ( localizeWithPath(
123
- 'vs/workbench/api/browser/viewsExtensionPoint',
124
- 'vscode.extension.contributes.view.tree',
108
+ _moduleId,
109
+ 7,
125
110
  "The view is backed by a `TreeView` created by `createTreeView`."
126
111
  )),
127
112
  ( localizeWithPath(
128
- 'vs/workbench/api/browser/viewsExtensionPoint',
129
- 'vscode.extension.contributes.view.webview',
113
+ _moduleId,
114
+ 8,
130
115
  "The view is backed by a `WebviewView` registered by `registerWebviewViewProvider`."
131
116
  )),
132
117
  ]
133
118
  },
134
119
  id: {
135
120
  markdownDescription: ( localizeWithPath(
136
- 'vs/workbench/api/browser/viewsExtensionPoint',
137
- 'vscode.extension.contributes.view.id',
121
+ _moduleId,
122
+ 9,
138
123
  '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`.'
139
124
  )),
140
125
  type: 'string'
141
126
  },
142
127
  name: {
143
- description: ( localizeWithPath(
144
- 'vs/workbench/api/browser/viewsExtensionPoint',
145
- 'vscode.extension.contributes.view.name',
146
- 'The human-readable name of the view. Will be shown'
147
- )),
128
+ description: ( localizeWithPath(_moduleId, 10, 'The human-readable name of the view. Will be shown')),
148
129
  type: 'string'
149
130
  },
150
131
  when: {
151
- description: ( localizeWithPath(
152
- 'vs/workbench/api/browser/viewsExtensionPoint',
153
- 'vscode.extension.contributes.view.when',
154
- 'Condition which must be true to show this view'
155
- )),
132
+ description: ( localizeWithPath(_moduleId, 11, 'Condition which must be true to show this view')),
156
133
  type: 'string'
157
134
  },
158
135
  icon: {
159
136
  description: ( localizeWithPath(
160
- 'vs/workbench/api/browser/viewsExtensionPoint',
161
- 'vscode.extension.contributes.view.icon',
137
+ _moduleId,
138
+ 12,
162
139
  "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."
163
140
  )),
164
141
  type: 'string'
165
142
  },
166
143
  contextualTitle: {
167
144
  description: ( localizeWithPath(
168
- 'vs/workbench/api/browser/viewsExtensionPoint',
169
- 'vscode.extension.contributes.view.contextualTitle',
145
+ _moduleId,
146
+ 13,
170
147
  "Human-readable context for when the view is moved out of its original location. By default, the view's container name will be used."
171
148
  )),
172
149
  type: 'string'
173
150
  },
174
151
  visibility: {
175
152
  description: ( localizeWithPath(
176
- 'vs/workbench/api/browser/viewsExtensionPoint',
177
- 'vscode.extension.contributes.view.initialState',
153
+ _moduleId,
154
+ 14,
178
155
  "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."
179
156
  )),
180
157
  type: 'string',
@@ -186,18 +163,18 @@ const viewDescriptor = {
186
163
  default: 'visible',
187
164
  enumDescriptions: [
188
165
  ( localizeWithPath(
189
- 'vs/workbench/api/browser/viewsExtensionPoint',
190
- 'vscode.extension.contributes.view.initialState.visible',
166
+ _moduleId,
167
+ 15,
191
168
  "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`."
192
169
  )),
193
170
  ( localizeWithPath(
194
- 'vs/workbench/api/browser/viewsExtensionPoint',
195
- 'vscode.extension.contributes.view.initialState.hidden',
171
+ _moduleId,
172
+ 16,
196
173
  "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."
197
174
  )),
198
175
  ( localizeWithPath(
199
- 'vs/workbench/api/browser/viewsExtensionPoint',
200
- 'vscode.extension.contributes.view.initialState.collapsed',
176
+ _moduleId,
177
+ 17,
201
178
  "The view will show in the view container, but will be collapsed."
202
179
  ))
203
180
  ]
@@ -205,8 +182,8 @@ const viewDescriptor = {
205
182
  initialSize: {
206
183
  type: 'number',
207
184
  description: ( localizeWithPath(
208
- 'vs/workbench/api/browser/viewsExtensionPoint',
209
- 'vscode.extension.contributs.view.size',
185
+ _moduleId,
186
+ 18,
210
187
  "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."
211
188
  )),
212
189
  }
@@ -218,42 +195,26 @@ const remoteViewDescriptor = {
218
195
  properties: {
219
196
  id: {
220
197
  description: ( localizeWithPath(
221
- 'vs/workbench/api/browser/viewsExtensionPoint',
222
- 'vscode.extension.contributes.view.id',
198
+ _moduleId,
199
+ 9,
223
200
  '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`.'
224
201
  )),
225
202
  type: 'string'
226
203
  },
227
204
  name: {
228
- description: ( localizeWithPath(
229
- 'vs/workbench/api/browser/viewsExtensionPoint',
230
- 'vscode.extension.contributes.view.name',
231
- 'The human-readable name of the view. Will be shown'
232
- )),
205
+ description: ( localizeWithPath(_moduleId, 10, 'The human-readable name of the view. Will be shown')),
233
206
  type: 'string'
234
207
  },
235
208
  when: {
236
- description: ( localizeWithPath(
237
- 'vs/workbench/api/browser/viewsExtensionPoint',
238
- 'vscode.extension.contributes.view.when',
239
- 'Condition which must be true to show this view'
240
- )),
209
+ description: ( localizeWithPath(_moduleId, 11, 'Condition which must be true to show this view')),
241
210
  type: 'string'
242
211
  },
243
212
  group: {
244
- description: ( localizeWithPath(
245
- 'vs/workbench/api/browser/viewsExtensionPoint',
246
- 'vscode.extension.contributes.view.group',
247
- 'Nested group in the viewlet'
248
- )),
213
+ description: ( localizeWithPath(_moduleId, 19, 'Nested group in the viewlet')),
249
214
  type: 'string'
250
215
  },
251
216
  remoteName: {
252
- description: ( localizeWithPath(
253
- 'vs/workbench/api/browser/viewsExtensionPoint',
254
- 'vscode.extension.contributes.view.remoteName',
255
- 'The name of the remote type associated with this view'
256
- )),
217
+ description: ( localizeWithPath(_moduleId, 20, 'The name of the remote type associated with this view')),
257
218
  type: ['string', 'array'],
258
219
  items: {
259
220
  type: 'string'
@@ -262,17 +223,13 @@ const remoteViewDescriptor = {
262
223
  }
263
224
  };
264
225
  const viewsContribution = {
265
- description: ( localizeWithPath(
266
- 'vs/workbench/api/browser/viewsExtensionPoint',
267
- 'vscode.extension.contributes.views',
268
- "Contributes views to the editor"
269
- )),
226
+ description: ( localizeWithPath(_moduleId, 21, "Contributes views to the editor")),
270
227
  type: 'object',
271
228
  properties: {
272
229
  'explorer': {
273
230
  description: ( localizeWithPath(
274
- 'vs/workbench/api/browser/viewsExtensionPoint',
275
- 'views.explorer',
231
+ _moduleId,
232
+ 22,
276
233
  "Contributes views to Explorer container in the Activity bar"
277
234
  )),
278
235
  type: 'array',
@@ -280,39 +237,27 @@ const viewsContribution = {
280
237
  default: []
281
238
  },
282
239
  'debug': {
283
- description: ( localizeWithPath(
284
- 'vs/workbench/api/browser/viewsExtensionPoint',
285
- 'views.debug',
286
- "Contributes views to Debug container in the Activity bar"
287
- )),
240
+ description: ( localizeWithPath(_moduleId, 23, "Contributes views to Debug container in the Activity bar")),
288
241
  type: 'array',
289
242
  items: viewDescriptor,
290
243
  default: []
291
244
  },
292
245
  'scm': {
293
- description: ( localizeWithPath(
294
- 'vs/workbench/api/browser/viewsExtensionPoint',
295
- 'views.scm',
296
- "Contributes views to SCM container in the Activity bar"
297
- )),
246
+ description: ( localizeWithPath(_moduleId, 24, "Contributes views to SCM container in the Activity bar")),
298
247
  type: 'array',
299
248
  items: viewDescriptor,
300
249
  default: []
301
250
  },
302
251
  'test': {
303
- description: ( localizeWithPath(
304
- 'vs/workbench/api/browser/viewsExtensionPoint',
305
- 'views.test',
306
- "Contributes views to Test container in the Activity bar"
307
- )),
252
+ description: ( localizeWithPath(_moduleId, 25, "Contributes views to Test container in the Activity bar")),
308
253
  type: 'array',
309
254
  items: viewDescriptor,
310
255
  default: []
311
256
  },
312
257
  'remote': {
313
258
  description: ( localizeWithPath(
314
- 'vs/workbench/api/browser/viewsExtensionPoint',
315
- 'views.remote',
259
+ _moduleId,
260
+ 26,
316
261
  "Contributes views to Remote container in the Activity bar. To contribute to this container, enableProposedApi needs to be turned on"
317
262
  )),
318
263
  type: 'array',
@@ -321,11 +266,7 @@ const viewsContribution = {
321
266
  }
322
267
  },
323
268
  additionalProperties: {
324
- description: ( localizeWithPath(
325
- 'vs/workbench/api/browser/viewsExtensionPoint',
326
- 'views.contributed',
327
- "Contributes views to contributed views container"
328
- )),
269
+ description: ( localizeWithPath(_moduleId, 27, "Contributes views to contributed views container")),
329
270
  type: 'array',
330
271
  items: viewDescriptor,
331
272
  default: []
@@ -341,7 +282,7 @@ const viewsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
341
282
  jsonSchema: viewsContribution,
342
283
  activationEventsGenerator: (viewExtensionPointTypeArray, result) => {
343
284
  for (const viewExtensionPointType of viewExtensionPointTypeArray) {
344
- for (const viewDescriptors of ( Object.values(viewExtensionPointType))) {
285
+ for (const viewDescriptors of ( (Object.values(viewExtensionPointType)))) {
345
286
  for (const viewDescriptor of viewDescriptors) {
346
287
  if (viewDescriptor.id) {
347
288
  result.push(`onView:${viewDescriptor.id}`);
@@ -357,16 +298,16 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
357
298
  constructor(instantiationService, logService) {
358
299
  this.instantiationService = instantiationService;
359
300
  this.logService = logService;
360
- this.viewContainersRegistry = ( Registry.as(Extensions.ViewContainersRegistry));
361
- this.viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
301
+ this.viewContainersRegistry = ( (Registry.as(Extensions.ViewContainersRegistry)));
302
+ this.viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
362
303
  this.handleAndRegisterCustomViewContainers();
363
304
  this.handleAndRegisterCustomViews();
364
- let showTreeHoverCancellation = ( new CancellationTokenSource());
305
+ let showTreeHoverCancellation = ( (new CancellationTokenSource()));
365
306
  KeybindingsRegistry.registerCommandAndKeybindingRule({
366
307
  id: 'workbench.action.showTreeHover',
367
308
  handler: async (accessor, ...args) => {
368
309
  showTreeHoverCancellation.cancel();
369
- showTreeHoverCancellation = ( new CancellationTokenSource());
310
+ showTreeHoverCancellation = ( (new CancellationTokenSource()));
370
311
  const listService = accessor.get(IListService);
371
312
  const treeViewsService = accessor.get(ITreeViewsService);
372
313
  const hoverService = accessor.get(IHoverService);
@@ -402,7 +343,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
402
343
  },
403
344
  weight: 200 ,
404
345
  primary: KeyChord(2048 | 41 , 2048 | 39 ),
405
- when: ( ContextKeyExpr.and(RawCustomTreeViewContextKey, WorkbenchListFocusContextKey))
346
+ when: ( (ContextKeyExpr.and(RawCustomTreeViewContextKey, WorkbenchListFocusContextKey)))
406
347
  });
407
348
  }
408
349
  handleAndRegisterCustomViewContainers() {
@@ -416,7 +357,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
416
357
  });
417
358
  }
418
359
  addCustomViewContainers(extensionPoints, existingViewContainers) {
419
- const viewContainersRegistry = ( Registry.as(Extensions.ViewContainersRegistry));
360
+ const viewContainersRegistry = ( (Registry.as(Extensions.ViewContainersRegistry)));
420
361
  let activityBarOrder = CUSTOM_VIEWS_START_ORDER + viewContainersRegistry.all.filter(v => !!v.extensionId && viewContainersRegistry.getViewContainerLocation(v) === 0 ).length;
421
362
  let panelOrder = 5 + viewContainersRegistry.all.filter(v => !!v.extensionId && viewContainersRegistry.getViewContainerLocation(v) === 1 ).length + 1;
422
363
  for (const { value, collector, description } of extensionPoints) {
@@ -436,10 +377,10 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
436
377
  }
437
378
  }
438
379
  removeCustomViewContainers(extensionPoints) {
439
- const viewContainersRegistry = ( Registry.as(Extensions.ViewContainersRegistry));
440
- const removedExtensions = extensionPoints.reduce((result, e) => { result.add(e.description.identifier); return result; }, ( new ExtensionIdentifierSet()));
380
+ const viewContainersRegistry = ( (Registry.as(Extensions.ViewContainersRegistry)));
381
+ const removedExtensions = extensionPoints.reduce((result, e) => { result.add(e.description.identifier); return result; }, ( (new ExtensionIdentifierSet())));
441
382
  for (const viewContainer of viewContainersRegistry.all) {
442
- if (viewContainer.extensionId && ( removedExtensions.has(viewContainer.extensionId))) {
383
+ if (viewContainer.extensionId && ( (removedExtensions.has(viewContainer.extensionId)))) {
443
384
  const views = this.viewsRegistry.getViews(viewContainer);
444
385
  if (views.length) {
445
386
  this.viewsRegistry.moveViews(views, this.getDefaultViewContainer());
@@ -450,18 +391,14 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
450
391
  }
451
392
  isValidViewsContainer(viewsContainersDescriptors, collector) {
452
393
  if (!Array.isArray(viewsContainersDescriptors)) {
453
- collector.error(( localizeWithPath(
454
- 'vs/workbench/api/browser/viewsExtensionPoint',
455
- 'viewcontainer requirearray',
456
- "views containers must be an array"
457
- )));
394
+ collector.error(( localizeWithPath(_moduleId, 28, "views containers must be an array")));
458
395
  return false;
459
396
  }
460
397
  for (const descriptor of viewsContainersDescriptors) {
461
398
  if (typeof descriptor.id !== 'string' && isFalsyOrWhitespace(descriptor.id)) {
462
399
  collector.error(( localizeWithPath(
463
- 'vs/workbench/api/browser/viewsExtensionPoint',
464
- 'requireidstring',
400
+ _moduleId,
401
+ 29,
465
402
  "property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
466
403
  'id'
467
404
  )));
@@ -469,8 +406,8 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
469
406
  }
470
407
  if (!(/^[a-z0-9_-]+$/i.test(descriptor.id))) {
471
408
  collector.error(( localizeWithPath(
472
- 'vs/workbench/api/browser/viewsExtensionPoint',
473
- 'requireidstring',
409
+ _moduleId,
410
+ 29,
474
411
  "property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
475
412
  'id'
476
413
  )));
@@ -478,8 +415,8 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
478
415
  }
479
416
  if (typeof descriptor.title !== 'string') {
480
417
  collector.error(( localizeWithPath(
481
- 'vs/workbench/api/browser/viewsExtensionPoint',
482
- 'requirestring',
418
+ _moduleId,
419
+ 30,
483
420
  "property `{0}` is mandatory and must be of type `string`",
484
421
  'title'
485
422
  )));
@@ -487,8 +424,8 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
487
424
  }
488
425
  if (typeof descriptor.icon !== 'string') {
489
426
  collector.error(( localizeWithPath(
490
- 'vs/workbench/api/browser/viewsExtensionPoint',
491
- 'requirestring',
427
+ _moduleId,
428
+ 30,
492
429
  "property `{0}` is mandatory and must be of type `string`",
493
430
  'icon'
494
431
  )));
@@ -496,8 +433,8 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
496
433
  }
497
434
  if (isFalsyOrWhitespace(descriptor.title)) {
498
435
  collector.warn(( localizeWithPath(
499
- 'vs/workbench/api/browser/viewsExtensionPoint',
500
- 'requirenonemptystring',
436
+ _moduleId,
437
+ 31,
501
438
  "property `{0}` is mandatory and must be of type `string` with non-empty value",
502
439
  'title'
503
440
  )));
@@ -534,7 +471,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
534
471
  id,
535
472
  title: { value: title, original: title },
536
473
  extensionId,
537
- ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [id, { mergeViewWithContainerWhenSingleView: true }])),
474
+ ctorDescriptor: ( (new SyncDescriptor(ViewPaneContainer, [id, { mergeViewWithContainerWhenSingleView: true }]))),
538
475
  hideIfEmpty: true,
539
476
  order,
540
477
  icon,
@@ -544,7 +481,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
544
481
  }
545
482
  deregisterCustomViewContainer(viewContainer) {
546
483
  this.viewContainersRegistry.deregisterViewContainer(viewContainer);
547
- ( Registry.as(Extensions$1.Viewlets)).deregisterPaneComposite(viewContainer.id);
484
+ ( (Registry.as(Extensions$1.Viewlets))).deregisterPaneComposite(viewContainer.id);
548
485
  }
549
486
  handleAndRegisterCustomViews() {
550
487
  viewsExtensionPoint.setHandler((extensions, { added, removed }) => {
@@ -557,7 +494,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
557
494
  });
558
495
  }
559
496
  addViews(extensions) {
560
- const viewIds = ( new Set());
497
+ const viewIds = ( (new Set()));
561
498
  const allViewDescriptors = [];
562
499
  for (const extension of extensions) {
563
500
  const { value, collector } = extension;
@@ -567,8 +504,8 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
567
504
  }
568
505
  if (key === 'remote' && !isProposedApiEnabled(extension.description, 'contribViewsRemote')) {
569
506
  collector.warn(( localizeWithPath(
570
- 'vs/workbench/api/browser/viewsExtensionPoint',
571
- 'ViewContainerRequiresProposedAPI',
507
+ _moduleId,
508
+ 32,
572
509
  "View container '{0}' requires 'enabledApiProposals: [\"contribViewsRemote\"]' to be added to 'Remote'.",
573
510
  key
574
511
  )));
@@ -577,8 +514,8 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
577
514
  const viewContainer = this.getViewContainer(key);
578
515
  if (!viewContainer) {
579
516
  collector.warn(( localizeWithPath(
580
- 'vs/workbench/api/browser/viewsExtensionPoint',
581
- 'ViewContainerDoesnotExist',
517
+ _moduleId,
518
+ 33,
582
519
  "View container '{0}' does not exist and all views registered to it will be added to 'Explorer'.",
583
520
  key
584
521
  )));
@@ -587,22 +524,17 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
587
524
  const viewDescriptors = [];
588
525
  for (let index = 0; index < value.length; index++) {
589
526
  const item = value[index];
590
- if (( viewIds.has(item.id))) {
527
+ if (( (viewIds.has(item.id)))) {
591
528
  collector.error(( localizeWithPath(
592
- 'vs/workbench/api/browser/viewsExtensionPoint',
593
- 'duplicateView1',
529
+ _moduleId,
530
+ 34,
594
531
  "Cannot register multiple views with same id `{0}`",
595
532
  item.id
596
533
  )));
597
534
  continue;
598
535
  }
599
536
  if (this.viewsRegistry.getView(item.id) !== null) {
600
- collector.error(( localizeWithPath(
601
- 'vs/workbench/api/browser/viewsExtensionPoint',
602
- 'duplicateView2',
603
- "A view with id `{0}` is already registered.",
604
- item.id
605
- )));
537
+ collector.error(( localizeWithPath(_moduleId, 35, "A view with id `{0}` is already registered.", item.id)));
606
538
  continue;
607
539
  }
608
540
  const order = ExtensionIdentifier.equals(extension.description.identifier, container.extensionId)
@@ -617,12 +549,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
617
549
  const initialVisibility = this.convertInitialVisibility(item.visibility);
618
550
  const type = this.getViewType(item.type);
619
551
  if (!type) {
620
- collector.error(( localizeWithPath(
621
- 'vs/workbench/api/browser/viewsExtensionPoint',
622
- 'unknownViewType',
623
- "Unknown view type `{0}`.",
624
- item.type
625
- )));
552
+ collector.error(( localizeWithPath(_moduleId, 36, "Unknown view type `{0}`.", item.type)));
626
553
  continue;
627
554
  }
628
555
  let weight = undefined;
@@ -636,7 +563,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
636
563
  }
637
564
  const viewDescriptor = {
638
565
  type: type,
639
- ctorDescriptor: type === ViewType.Tree ? ( new SyncDescriptor(TreeViewPane)) : ( new SyncDescriptor(WebviewViewPane)),
566
+ ctorDescriptor: type === ViewType.Tree ? ( (new SyncDescriptor(TreeViewPane))) : ( (new SyncDescriptor(WebviewViewPane))),
640
567
  id: item.id,
641
568
  name: { value: item.name, original: item.name },
642
569
  when: ContextKeyExpr.deserialize(item.when),
@@ -677,9 +604,9 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
677
604
  return this.viewContainersRegistry.get(VIEWLET_ID$1);
678
605
  }
679
606
  removeViews(extensions) {
680
- const removedExtensions = extensions.reduce((result, e) => { result.add(e.description.identifier); return result; }, ( new ExtensionIdentifierSet()));
607
+ const removedExtensions = extensions.reduce((result, e) => { result.add(e.description.identifier); return result; }, ( (new ExtensionIdentifierSet())));
681
608
  for (const viewContainer of this.viewContainersRegistry.all) {
682
- const removedViews = this.viewsRegistry.getViews(viewContainer).filter(v => v.extensionId && ( removedExtensions.has(v.extensionId)));
609
+ const removedViews = this.viewsRegistry.getViews(viewContainer).filter(v => v.extensionId && ( (removedExtensions.has(v.extensionId))));
683
610
  if (removedViews.length) {
684
611
  this.viewsRegistry.deregisterViews(removedViews, viewContainer);
685
612
  for (const view of removedViews) {
@@ -692,25 +619,21 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
692
619
  }
693
620
  }
694
621
  convertInitialVisibility(value) {
695
- if (( Object.values(InitialVisibility)).includes(value)) {
622
+ if (( (Object.values(InitialVisibility))).includes(value)) {
696
623
  return value;
697
624
  }
698
625
  return undefined;
699
626
  }
700
627
  isValidViewDescriptors(viewDescriptors, collector) {
701
628
  if (!Array.isArray(viewDescriptors)) {
702
- collector.error(( localizeWithPath(
703
- 'vs/workbench/api/browser/viewsExtensionPoint',
704
- 'requirearray',
705
- "views must be an array"
706
- )));
629
+ collector.error(( localizeWithPath(_moduleId, 37, "views must be an array")));
707
630
  return false;
708
631
  }
709
632
  for (const descriptor of viewDescriptors) {
710
633
  if (typeof descriptor.id !== 'string') {
711
634
  collector.error(( localizeWithPath(
712
- 'vs/workbench/api/browser/viewsExtensionPoint',
713
- 'requirestring',
635
+ _moduleId,
636
+ 30,
714
637
  "property `{0}` is mandatory and must be of type `string`",
715
638
  'id'
716
639
  )));
@@ -718,8 +641,8 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
718
641
  }
719
642
  if (typeof descriptor.name !== 'string') {
720
643
  collector.error(( localizeWithPath(
721
- 'vs/workbench/api/browser/viewsExtensionPoint',
722
- 'requirestring',
644
+ _moduleId,
645
+ 30,
723
646
  "property `{0}` is mandatory and must be of type `string`",
724
647
  'name'
725
648
  )));
@@ -727,8 +650,8 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
727
650
  }
728
651
  if (descriptor.when && typeof descriptor.when !== 'string') {
729
652
  collector.error(( localizeWithPath(
730
- 'vs/workbench/api/browser/viewsExtensionPoint',
731
- 'optstring',
653
+ _moduleId,
654
+ 38,
732
655
  "property `{0}` can be omitted or must be of type `string`",
733
656
  'when'
734
657
  )));
@@ -736,8 +659,8 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
736
659
  }
737
660
  if (descriptor.icon && typeof descriptor.icon !== 'string') {
738
661
  collector.error(( localizeWithPath(
739
- 'vs/workbench/api/browser/viewsExtensionPoint',
740
- 'optstring',
662
+ _moduleId,
663
+ 38,
741
664
  "property `{0}` can be omitted or must be of type `string`",
742
665
  'icon'
743
666
  )));
@@ -745,8 +668,8 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
745
668
  }
746
669
  if (descriptor.contextualTitle && typeof descriptor.contextualTitle !== 'string') {
747
670
  collector.error(( localizeWithPath(
748
- 'vs/workbench/api/browser/viewsExtensionPoint',
749
- 'optstring',
671
+ _moduleId,
672
+ 38,
750
673
  "property `{0}` can be omitted or must be of type `string`",
751
674
  'contextualTitle'
752
675
  )));
@@ -754,11 +677,11 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
754
677
  }
755
678
  if (descriptor.visibility && !this.convertInitialVisibility(descriptor.visibility)) {
756
679
  collector.error(( localizeWithPath(
757
- 'vs/workbench/api/browser/viewsExtensionPoint',
758
- 'optenum',
680
+ _moduleId,
681
+ 39,
759
682
  "property `{0}` can be omitted or must be one of {1}",
760
683
  'visibility',
761
- ( Object.values(InitialVisibility)).join(', ')
684
+ ( (Object.values(InitialVisibility))).join(', ')
762
685
  )));
763
686
  return false;
764
687
  }
@@ -784,10 +707,10 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
784
707
  return false;
785
708
  }
786
709
  };
787
- ViewsExtensionHandler = ( __decorate([
788
- ( __param(0, IInstantiationService)),
789
- ( __param(1, ILogService))
790
- ], ViewsExtensionHandler));
710
+ ViewsExtensionHandler = ( (__decorate([
711
+ ( (__param(0, IInstantiationService))),
712
+ ( (__param(1, ILogService)))
713
+ ], ViewsExtensionHandler)));
791
714
  class ViewContainersDataRenderer extends Disposable {
792
715
  constructor() {
793
716
  super(...arguments);
@@ -798,28 +721,20 @@ class ViewContainersDataRenderer extends Disposable {
798
721
  }
799
722
  render(manifest) {
800
723
  const contrib = manifest.contributes?.viewsContainers || {};
801
- const viewContainers = ( Object.keys(contrib)).reduce((result, location) => {
724
+ const viewContainers = ( (Object.keys(contrib))).reduce((result, location) => {
802
725
  const viewContainersForLocation = contrib[location];
803
- result.push(...( viewContainersForLocation.map(viewContainer => ({ ...viewContainer, location }))));
726
+ result.push(...( (viewContainersForLocation.map(viewContainer => ({ ...viewContainer, location })))));
804
727
  return result;
805
728
  }, []);
806
729
  if (!viewContainers.length) {
807
730
  return { data: { headers: [], rows: [] }, dispose: () => { } };
808
731
  }
809
732
  const headers = [
810
- ( localizeWithPath('vs/workbench/api/browser/viewsExtensionPoint', 'view container id', "ID")),
811
- ( localizeWithPath(
812
- 'vs/workbench/api/browser/viewsExtensionPoint',
813
- 'view container title',
814
- "Title"
815
- )),
816
- ( localizeWithPath(
817
- 'vs/workbench/api/browser/viewsExtensionPoint',
818
- 'view container location',
819
- "Where"
820
- )),
733
+ ( localizeWithPath(_moduleId, 40, "ID")),
734
+ ( localizeWithPath(_moduleId, 41, "Title")),
735
+ ( localizeWithPath(_moduleId, 42, "Where")),
821
736
  ];
822
- const rows = ( viewContainers
737
+ const rows = ( (viewContainers
823
738
  .sort((a, b) => a.id.localeCompare(b.id))
824
739
  .map(viewContainer => {
825
740
  return [
@@ -827,7 +742,7 @@ class ViewContainersDataRenderer extends Disposable {
827
742
  viewContainer.title,
828
743
  viewContainer.location
829
744
  ];
830
- }));
745
+ })));
831
746
  return {
832
747
  data: {
833
748
  headers,
@@ -847,24 +762,20 @@ class ViewsDataRenderer extends Disposable {
847
762
  }
848
763
  render(manifest) {
849
764
  const contrib = manifest.contributes?.views || {};
850
- const views = ( Object.keys(contrib)).reduce((result, location) => {
765
+ const views = ( (Object.keys(contrib))).reduce((result, location) => {
851
766
  const viewsForLocation = contrib[location];
852
- result.push(...( viewsForLocation.map(view => ({ ...view, location }))));
767
+ result.push(...( (viewsForLocation.map(view => ({ ...view, location })))));
853
768
  return result;
854
769
  }, []);
855
770
  if (!views.length) {
856
771
  return { data: { headers: [], rows: [] }, dispose: () => { } };
857
772
  }
858
773
  const headers = [
859
- ( localizeWithPath('vs/workbench/api/browser/viewsExtensionPoint', 'view id', "ID")),
860
- ( localizeWithPath('vs/workbench/api/browser/viewsExtensionPoint', 'view name title', "Name")),
861
- ( localizeWithPath(
862
- 'vs/workbench/api/browser/viewsExtensionPoint',
863
- 'view container location',
864
- "Where"
865
- )),
774
+ ( localizeWithPath(_moduleId, 43, "ID")),
775
+ ( localizeWithPath(_moduleId, 44, "Name")),
776
+ ( localizeWithPath(_moduleId, 42, "Where")),
866
777
  ];
867
- const rows = ( views
778
+ const rows = ( (views
868
779
  .sort((a, b) => a.id.localeCompare(b.id))
869
780
  .map(view => {
870
781
  return [
@@ -872,7 +783,7 @@ class ViewsDataRenderer extends Disposable {
872
783
  view.name,
873
784
  view.location
874
785
  ];
875
- }));
786
+ })));
876
787
  return {
877
788
  data: {
878
789
  headers,
@@ -882,25 +793,21 @@ class ViewsDataRenderer extends Disposable {
882
793
  };
883
794
  }
884
795
  }
885
- ( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
796
+ ( (Registry.as(Extensions$2.ExtensionFeaturesRegistry))).registerExtensionFeature({
886
797
  id: 'viewsContainers',
887
- label: ( localizeWithPath(
888
- 'vs/workbench/api/browser/viewsExtensionPoint',
889
- 'viewsContainers',
890
- "View Containers"
891
- )),
798
+ label: ( localizeWithPath(_moduleId, 45, "View Containers")),
892
799
  access: {
893
800
  canToggle: false
894
801
  },
895
- renderer: ( new SyncDescriptor(ViewContainersDataRenderer)),
802
+ renderer: ( (new SyncDescriptor(ViewContainersDataRenderer))),
896
803
  });
897
- ( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
804
+ ( (Registry.as(Extensions$2.ExtensionFeaturesRegistry))).registerExtensionFeature({
898
805
  id: 'views',
899
- label: ( localizeWithPath('vs/workbench/api/browser/viewsExtensionPoint', 'views', "Views")),
806
+ label: ( localizeWithPath(_moduleId, 46, "Views")),
900
807
  access: {
901
808
  canToggle: false
902
809
  },
903
- renderer: ( new SyncDescriptor(ViewsDataRenderer)),
810
+ renderer: ( (new SyncDescriptor(ViewsDataRenderer))),
904
811
  });
905
812
  registerWorkbenchContribution2(ViewsExtensionHandler.ID, ViewsExtensionHandler, 1 );
906
813