@codingame/monaco-vscode-keybindings-service-override 4.5.0 → 4.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,297 +16,178 @@ import { platform } from 'vscode/vscode/vs/base/common/process';
16
16
  import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
17
17
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
18
18
 
19
+ const _moduleId = "vs/workbench/services/actions/common/menusExtensionPoint";
19
20
  const apiMenus = [
20
21
  {
21
22
  key: 'commandPalette',
22
23
  id: MenuId.CommandPalette,
23
- description: ( localizeWithPath(
24
- 'vs/workbench/services/actions/common/menusExtensionPoint',
25
- 'menus.commandPalette',
26
- "The Command Palette"
27
- )),
24
+ description: ( localizeWithPath(_moduleId, 0, "The Command Palette")),
28
25
  supportsSubmenus: false
29
26
  },
30
27
  {
31
28
  key: 'touchBar',
32
29
  id: MenuId.TouchBarContext,
33
- description: ( localizeWithPath(
34
- 'vs/workbench/services/actions/common/menusExtensionPoint',
35
- 'menus.touchBar',
36
- "The touch bar (macOS only)"
37
- )),
30
+ description: ( localizeWithPath(_moduleId, 1, "The touch bar (macOS only)")),
38
31
  supportsSubmenus: false
39
32
  },
40
33
  {
41
34
  key: 'editor/title',
42
35
  id: MenuId.EditorTitle,
43
- description: ( localizeWithPath(
44
- 'vs/workbench/services/actions/common/menusExtensionPoint',
45
- 'menus.editorTitle',
46
- "The editor title menu"
47
- ))
36
+ description: ( localizeWithPath(_moduleId, 2, "The editor title menu"))
48
37
  },
49
38
  {
50
39
  key: 'editor/title/run',
51
40
  id: MenuId.EditorTitleRun,
52
- description: ( localizeWithPath(
53
- 'vs/workbench/services/actions/common/menusExtensionPoint',
54
- 'menus.editorTitleRun',
55
- "Run submenu inside the editor title menu"
56
- ))
41
+ description: ( localizeWithPath(_moduleId, 3, "Run submenu inside the editor title menu"))
57
42
  },
58
43
  {
59
44
  key: 'editor/context',
60
45
  id: MenuId.EditorContext,
61
- description: ( localizeWithPath(
62
- 'vs/workbench/services/actions/common/menusExtensionPoint',
63
- 'menus.editorContext',
64
- "The editor context menu"
65
- ))
46
+ description: ( localizeWithPath(_moduleId, 4, "The editor context menu"))
66
47
  },
67
48
  {
68
49
  key: 'editor/context/copy',
69
50
  id: MenuId.EditorContextCopy,
70
- description: ( localizeWithPath(
71
- 'vs/workbench/services/actions/common/menusExtensionPoint',
72
- 'menus.editorContextCopyAs',
73
- "'Copy as' submenu in the editor context menu"
74
- ))
51
+ description: ( localizeWithPath(_moduleId, 5, "'Copy as' submenu in the editor context menu"))
75
52
  },
76
53
  {
77
54
  key: 'editor/context/share',
78
55
  id: MenuId.EditorContextShare,
79
- description: ( localizeWithPath(
80
- 'vs/workbench/services/actions/common/menusExtensionPoint',
81
- 'menus.editorContextShare',
82
- "'Share' submenu in the editor context menu"
83
- )),
56
+ description: ( localizeWithPath(_moduleId, 6, "'Share' submenu in the editor context menu")),
84
57
  proposed: 'contribShareMenu'
85
58
  },
86
59
  {
87
60
  key: 'explorer/context',
88
61
  id: MenuId.ExplorerContext,
89
- description: ( localizeWithPath(
90
- 'vs/workbench/services/actions/common/menusExtensionPoint',
91
- 'menus.explorerContext',
92
- "The file explorer context menu"
93
- ))
62
+ description: ( localizeWithPath(_moduleId, 7, "The file explorer context menu"))
94
63
  },
95
64
  {
96
65
  key: 'explorer/context/share',
97
66
  id: MenuId.ExplorerContextShare,
98
- description: ( localizeWithPath(
99
- 'vs/workbench/services/actions/common/menusExtensionPoint',
100
- 'menus.explorerContextShare',
101
- "'Share' submenu in the file explorer context menu"
102
- )),
67
+ description: ( localizeWithPath(_moduleId, 8, "'Share' submenu in the file explorer context menu")),
103
68
  proposed: 'contribShareMenu'
104
69
  },
105
70
  {
106
71
  key: 'editor/title/context',
107
72
  id: MenuId.EditorTitleContext,
108
- description: ( localizeWithPath(
109
- 'vs/workbench/services/actions/common/menusExtensionPoint',
110
- 'menus.editorTabContext',
111
- "The editor tabs context menu"
112
- ))
73
+ description: ( localizeWithPath(_moduleId, 9, "The editor tabs context menu"))
113
74
  },
114
75
  {
115
76
  key: 'editor/title/context/share',
116
77
  id: MenuId.EditorTitleContextShare,
117
- description: ( localizeWithPath(
118
- 'vs/workbench/services/actions/common/menusExtensionPoint',
119
- 'menus.editorTitleContextShare',
120
- "'Share' submenu inside the editor title context menu"
121
- )),
78
+ description: ( localizeWithPath(_moduleId, 10, "'Share' submenu inside the editor title context menu")),
122
79
  proposed: 'contribShareMenu'
123
80
  },
124
81
  {
125
82
  key: 'debug/callstack/context',
126
83
  id: MenuId.DebugCallStackContext,
127
- description: ( localizeWithPath(
128
- 'vs/workbench/services/actions/common/menusExtensionPoint',
129
- 'menus.debugCallstackContext',
130
- "The debug callstack view context menu"
131
- ))
84
+ description: ( localizeWithPath(_moduleId, 11, "The debug callstack view context menu"))
132
85
  },
133
86
  {
134
87
  key: 'debug/variables/context',
135
88
  id: MenuId.DebugVariablesContext,
136
- description: ( localizeWithPath(
137
- 'vs/workbench/services/actions/common/menusExtensionPoint',
138
- 'menus.debugVariablesContext',
139
- "The debug variables view context menu"
140
- ))
89
+ description: ( localizeWithPath(_moduleId, 12, "The debug variables view context menu"))
141
90
  },
142
91
  {
143
92
  key: 'debug/toolBar',
144
93
  id: MenuId.DebugToolBar,
145
- description: ( localizeWithPath(
146
- 'vs/workbench/services/actions/common/menusExtensionPoint',
147
- 'menus.debugToolBar',
148
- "The debug toolbar menu"
149
- ))
94
+ description: ( localizeWithPath(_moduleId, 13, "The debug toolbar menu"))
150
95
  },
151
96
  {
152
97
  key: 'notebook/variables/context',
153
98
  id: MenuId.NotebookVariablesContext,
154
- description: ( localizeWithPath(
155
- 'vs/workbench/services/actions/common/menusExtensionPoint',
156
- 'menus.notebookVariablesContext',
157
- "The notebook variables view context menu"
158
- ))
99
+ description: ( localizeWithPath(_moduleId, 14, "The notebook variables view context menu"))
159
100
  },
160
101
  {
161
102
  key: 'menuBar/home',
162
103
  id: MenuId.MenubarHomeMenu,
163
- description: ( localizeWithPath(
164
- 'vs/workbench/services/actions/common/menusExtensionPoint',
165
- 'menus.home',
166
- "The home indicator context menu (web only)"
167
- )),
104
+ description: ( localizeWithPath(_moduleId, 15, "The home indicator context menu (web only)")),
168
105
  proposed: 'contribMenuBarHome',
169
106
  supportsSubmenus: false
170
107
  },
171
108
  {
172
109
  key: 'menuBar/edit/copy',
173
110
  id: MenuId.MenubarCopy,
174
- description: ( localizeWithPath(
175
- 'vs/workbench/services/actions/common/menusExtensionPoint',
176
- 'menus.opy',
177
- "'Copy as' submenu in the top level Edit menu"
178
- ))
111
+ description: ( localizeWithPath(_moduleId, 16, "'Copy as' submenu in the top level Edit menu"))
179
112
  },
180
113
  {
181
114
  key: 'scm/title',
182
115
  id: MenuId.SCMTitle,
183
- description: ( localizeWithPath(
184
- 'vs/workbench/services/actions/common/menusExtensionPoint',
185
- 'menus.scmTitle',
186
- "The Source Control title menu"
187
- ))
116
+ description: ( localizeWithPath(_moduleId, 17, "The Source Control title menu"))
188
117
  },
189
118
  {
190
119
  key: 'scm/sourceControl',
191
120
  id: MenuId.SCMSourceControl,
192
- description: ( localizeWithPath(
193
- 'vs/workbench/services/actions/common/menusExtensionPoint',
194
- 'menus.scmSourceControl',
195
- "The Source Control menu"
196
- ))
121
+ description: ( localizeWithPath(_moduleId, 18, "The Source Control menu"))
197
122
  },
198
123
  {
199
124
  key: 'scm/sourceControl/title',
200
125
  id: MenuId.SCMSourceControlTitle,
201
- description: ( localizeWithPath(
202
- 'vs/workbench/services/actions/common/menusExtensionPoint',
203
- 'menus.scmSourceControlTitle',
204
- "The Source Control title menu"
205
- )),
126
+ description: ( localizeWithPath(_moduleId, 19, "The Source Control title menu")),
206
127
  proposed: 'contribSourceControlTitleMenu'
207
128
  },
208
129
  {
209
130
  key: 'scm/resourceState/context',
210
131
  id: MenuId.SCMResourceContext,
211
- description: ( localizeWithPath(
212
- 'vs/workbench/services/actions/common/menusExtensionPoint',
213
- 'menus.resourceStateContext',
214
- "The Source Control resource state context menu"
215
- ))
132
+ description: ( localizeWithPath(_moduleId, 20, "The Source Control resource state context menu"))
216
133
  },
217
134
  {
218
135
  key: 'scm/resourceFolder/context',
219
136
  id: MenuId.SCMResourceFolderContext,
220
- description: ( localizeWithPath(
221
- 'vs/workbench/services/actions/common/menusExtensionPoint',
222
- 'menus.resourceFolderContext',
223
- "The Source Control resource folder context menu"
224
- ))
137
+ description: ( localizeWithPath(_moduleId, 21, "The Source Control resource folder context menu"))
225
138
  },
226
139
  {
227
140
  key: 'scm/resourceGroup/context',
228
141
  id: MenuId.SCMResourceGroupContext,
229
- description: ( localizeWithPath(
230
- 'vs/workbench/services/actions/common/menusExtensionPoint',
231
- 'menus.resourceGroupContext',
232
- "The Source Control resource group context menu"
233
- ))
142
+ description: ( localizeWithPath(_moduleId, 22, "The Source Control resource group context menu"))
234
143
  },
235
144
  {
236
145
  key: 'scm/change/title',
237
146
  id: MenuId.SCMChangeContext,
238
- description: ( localizeWithPath(
239
- 'vs/workbench/services/actions/common/menusExtensionPoint',
240
- 'menus.changeTitle',
241
- "The Source Control inline change menu"
242
- ))
147
+ description: ( localizeWithPath(_moduleId, 23, "The Source Control inline change menu"))
243
148
  },
244
149
  {
245
150
  key: 'scm/inputBox',
246
151
  id: MenuId.SCMInputBox,
247
- description: ( localizeWithPath(
248
- 'vs/workbench/services/actions/common/menusExtensionPoint',
249
- 'menus.input',
250
- "The Source Control input box menu"
251
- )),
152
+ description: ( localizeWithPath(_moduleId, 24, "The Source Control input box menu")),
252
153
  proposed: 'contribSourceControlInputBoxMenu'
253
154
  },
254
155
  {
255
156
  key: 'scm/incomingChanges',
256
157
  id: MenuId.SCMIncomingChanges,
257
- description: ( localizeWithPath(
258
- 'vs/workbench/services/actions/common/menusExtensionPoint',
259
- 'menus.incomingChanges',
260
- "The Source Control incoming changes menu"
261
- )),
158
+ description: ( localizeWithPath(_moduleId, 25, "The Source Control incoming changes menu")),
262
159
  proposed: 'contribSourceControlHistoryItemGroupMenu'
263
160
  },
264
161
  {
265
162
  key: 'scm/incomingChanges/context',
266
163
  id: MenuId.SCMIncomingChangesContext,
267
- description: ( localizeWithPath(
268
- 'vs/workbench/services/actions/common/menusExtensionPoint',
269
- 'menus.incomingChangesContext',
270
- "The Source Control incoming changes context menu"
271
- )),
164
+ description: ( localizeWithPath(_moduleId, 26, "The Source Control incoming changes context menu")),
272
165
  proposed: 'contribSourceControlHistoryItemGroupMenu'
273
166
  },
274
167
  {
275
168
  key: 'scm/outgoingChanges',
276
169
  id: MenuId.SCMOutgoingChanges,
277
- description: ( localizeWithPath(
278
- 'vs/workbench/services/actions/common/menusExtensionPoint',
279
- 'menus.outgoingChanges',
280
- "The Source Control outgoing changes menu"
281
- )),
170
+ description: ( localizeWithPath(_moduleId, 27, "The Source Control outgoing changes menu")),
282
171
  proposed: 'contribSourceControlHistoryItemGroupMenu'
283
172
  },
284
173
  {
285
174
  key: 'scm/outgoingChanges/context',
286
175
  id: MenuId.SCMOutgoingChangesContext,
287
- description: ( localizeWithPath(
288
- 'vs/workbench/services/actions/common/menusExtensionPoint',
289
- 'menus.outgoingChangesContext',
290
- "The Source Control outgoing changes context menu"
291
- )),
176
+ description: ( localizeWithPath(_moduleId, 28, "The Source Control outgoing changes context menu")),
292
177
  proposed: 'contribSourceControlHistoryItemGroupMenu'
293
178
  },
294
179
  {
295
180
  key: 'scm/incomingChanges/allChanges/context',
296
181
  id: MenuId.SCMIncomingChangesAllChangesContext,
297
- description: ( localizeWithPath(
298
- 'vs/workbench/services/actions/common/menusExtensionPoint',
299
- 'menus.incomingChangesAllChangesContext',
300
- "The Source Control all incoming changes context menu"
301
- )),
182
+ description: ( localizeWithPath(_moduleId, 29, "The Source Control all incoming changes context menu")),
302
183
  proposed: 'contribSourceControlHistoryItemMenu'
303
184
  },
304
185
  {
305
186
  key: 'scm/incomingChanges/historyItem/context',
306
187
  id: MenuId.SCMIncomingChangesHistoryItemContext,
307
188
  description: ( localizeWithPath(
308
- 'vs/workbench/services/actions/common/menusExtensionPoint',
309
- 'menus.incomingChangesHistoryItemContext',
189
+ _moduleId,
190
+ 30,
310
191
  "The Source Control incoming changes history item context menu"
311
192
  )),
312
193
  proposed: 'contribSourceControlHistoryItemMenu'
@@ -314,19 +195,15 @@ const apiMenus = [
314
195
  {
315
196
  key: 'scm/outgoingChanges/allChanges/context',
316
197
  id: MenuId.SCMOutgoingChangesAllChangesContext,
317
- description: ( localizeWithPath(
318
- 'vs/workbench/services/actions/common/menusExtensionPoint',
319
- 'menus.outgoingChangesAllChangesContext',
320
- "The Source Control all outgoing changes context menu"
321
- )),
198
+ description: ( localizeWithPath(_moduleId, 31, "The Source Control all outgoing changes context menu")),
322
199
  proposed: 'contribSourceControlHistoryItemMenu'
323
200
  },
324
201
  {
325
202
  key: 'scm/outgoingChanges/historyItem/context',
326
203
  id: MenuId.SCMOutgoingChangesHistoryItemContext,
327
204
  description: ( localizeWithPath(
328
- 'vs/workbench/services/actions/common/menusExtensionPoint',
329
- 'menus.outgoingChangesHistoryItemContext',
205
+ _moduleId,
206
+ 32,
330
207
  "The Source Control outgoing changes history item context menu"
331
208
  )),
332
209
  proposed: 'contribSourceControlHistoryItemMenu'
@@ -334,74 +211,46 @@ const apiMenus = [
334
211
  {
335
212
  key: 'statusBar/remoteIndicator',
336
213
  id: MenuId.StatusBarRemoteIndicatorMenu,
337
- description: ( localizeWithPath(
338
- 'vs/workbench/services/actions/common/menusExtensionPoint',
339
- 'menus.statusBarRemoteIndicator',
340
- "The remote indicator menu in the status bar"
341
- )),
214
+ description: ( localizeWithPath(_moduleId, 33, "The remote indicator menu in the status bar")),
342
215
  supportsSubmenus: false
343
216
  },
344
217
  {
345
218
  key: 'terminal/context',
346
219
  id: MenuId.TerminalInstanceContext,
347
- description: ( localizeWithPath(
348
- 'vs/workbench/services/actions/common/menusExtensionPoint',
349
- 'menus.terminalContext',
350
- "The terminal context menu"
351
- ))
220
+ description: ( localizeWithPath(_moduleId, 34, "The terminal context menu"))
352
221
  },
353
222
  {
354
223
  key: 'terminal/title/context',
355
224
  id: MenuId.TerminalTabContext,
356
- description: ( localizeWithPath(
357
- 'vs/workbench/services/actions/common/menusExtensionPoint',
358
- 'menus.terminalTabContext',
359
- "The terminal tabs context menu"
360
- ))
225
+ description: ( localizeWithPath(_moduleId, 35, "The terminal tabs context menu"))
361
226
  },
362
227
  {
363
228
  key: 'view/title',
364
229
  id: MenuId.ViewTitle,
365
- description: ( localizeWithPath(
366
- 'vs/workbench/services/actions/common/menusExtensionPoint',
367
- 'view.viewTitle',
368
- "The contributed view title menu"
369
- ))
230
+ description: ( localizeWithPath(_moduleId, 36, "The contributed view title menu"))
370
231
  },
371
232
  {
372
233
  key: 'view/item/context',
373
234
  id: MenuId.ViewItemContext,
374
- description: ( localizeWithPath(
375
- 'vs/workbench/services/actions/common/menusExtensionPoint',
376
- 'view.itemContext',
377
- "The contributed view item context menu"
378
- ))
235
+ description: ( localizeWithPath(_moduleId, 37, "The contributed view item context menu"))
379
236
  },
380
237
  {
381
238
  key: 'comments/comment/editorActions',
382
239
  id: MenuId.CommentEditorActions,
383
- description: ( localizeWithPath(
384
- 'vs/workbench/services/actions/common/menusExtensionPoint',
385
- 'commentThread.editorActions',
386
- "The contributed comment editor actions"
387
- )),
240
+ description: ( localizeWithPath(_moduleId, 38, "The contributed comment editor actions")),
388
241
  proposed: 'contribCommentEditorActionsMenu'
389
242
  },
390
243
  {
391
244
  key: 'comments/commentThread/title',
392
245
  id: MenuId.CommentThreadTitle,
393
- description: ( localizeWithPath(
394
- 'vs/workbench/services/actions/common/menusExtensionPoint',
395
- 'commentThread.title',
396
- "The contributed comment thread title menu"
397
- ))
246
+ description: ( localizeWithPath(_moduleId, 39, "The contributed comment thread title menu"))
398
247
  },
399
248
  {
400
249
  key: 'comments/commentThread/context',
401
250
  id: MenuId.CommentThreadActions,
402
251
  description: ( localizeWithPath(
403
- 'vs/workbench/services/actions/common/menusExtensionPoint',
404
- 'commentThread.actions',
252
+ _moduleId,
253
+ 40,
405
254
  "The contributed comment thread context menu, rendered as buttons below the comment editor"
406
255
  )),
407
256
  supportsSubmenus: false
@@ -410,8 +259,8 @@ const apiMenus = [
410
259
  key: 'comments/commentThread/additionalActions',
411
260
  id: MenuId.CommentThreadAdditionalActions,
412
261
  description: ( localizeWithPath(
413
- 'vs/workbench/services/actions/common/menusExtensionPoint',
414
- 'commentThread.actions',
262
+ _moduleId,
263
+ 40,
415
264
  "The contributed comment thread context menu, rendered as buttons below the comment editor"
416
265
  )),
417
266
  supportsSubmenus: false,
@@ -421,8 +270,8 @@ const apiMenus = [
421
270
  key: 'comments/commentThread/title/context',
422
271
  id: MenuId.CommentThreadTitleContext,
423
272
  description: ( localizeWithPath(
424
- 'vs/workbench/services/actions/common/menusExtensionPoint',
425
- 'commentThread.titleContext',
273
+ _moduleId,
274
+ 41,
426
275
  "The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
427
276
  )),
428
277
  proposed: 'contribCommentPeekContext'
@@ -430,18 +279,14 @@ const apiMenus = [
430
279
  {
431
280
  key: 'comments/comment/title',
432
281
  id: MenuId.CommentTitle,
433
- description: ( localizeWithPath(
434
- 'vs/workbench/services/actions/common/menusExtensionPoint',
435
- 'comment.title',
436
- "The contributed comment title menu"
437
- ))
282
+ description: ( localizeWithPath(_moduleId, 42, "The contributed comment title menu"))
438
283
  },
439
284
  {
440
285
  key: 'comments/comment/context',
441
286
  id: MenuId.CommentActions,
442
287
  description: ( localizeWithPath(
443
- 'vs/workbench/services/actions/common/menusExtensionPoint',
444
- 'comment.actions',
288
+ _moduleId,
289
+ 43,
445
290
  "The contributed comment context menu, rendered as buttons below the comment editor"
446
291
  )),
447
292
  supportsSubmenus: false
@@ -450,8 +295,8 @@ const apiMenus = [
450
295
  key: 'comments/commentThread/comment/context',
451
296
  id: MenuId.CommentThreadCommentContext,
452
297
  description: ( localizeWithPath(
453
- 'vs/workbench/services/actions/common/menusExtensionPoint',
454
- 'comment.commentContext',
298
+ _moduleId,
299
+ 44,
455
300
  "The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
456
301
  )),
457
302
  proposed: 'contribCommentPeekContext'
@@ -460,8 +305,8 @@ const apiMenus = [
460
305
  key: 'commentsView/commentThread/context',
461
306
  id: MenuId.CommentsViewThreadActions,
462
307
  description: ( localizeWithPath(
463
- 'vs/workbench/services/actions/common/menusExtensionPoint',
464
- 'commentsView.threadActions',
308
+ _moduleId,
309
+ 45,
465
310
  "The contributed comment thread context menu in the comments view"
466
311
  )),
467
312
  proposed: 'contribCommentsViewThreadMenus'
@@ -469,173 +314,105 @@ const apiMenus = [
469
314
  {
470
315
  key: 'notebook/toolbar',
471
316
  id: MenuId.NotebookToolbar,
472
- description: ( localizeWithPath(
473
- 'vs/workbench/services/actions/common/menusExtensionPoint',
474
- 'notebook.toolbar',
475
- "The contributed notebook toolbar menu"
476
- ))
317
+ description: ( localizeWithPath(_moduleId, 46, "The contributed notebook toolbar menu"))
477
318
  },
478
319
  {
479
320
  key: 'notebook/kernelSource',
480
321
  id: MenuId.NotebookKernelSource,
481
- description: ( localizeWithPath(
482
- 'vs/workbench/services/actions/common/menusExtensionPoint',
483
- 'notebook.kernelSource',
484
- "The contributed notebook kernel sources menu"
485
- )),
322
+ description: ( localizeWithPath(_moduleId, 47, "The contributed notebook kernel sources menu")),
486
323
  proposed: 'notebookKernelSource'
487
324
  },
488
325
  {
489
326
  key: 'notebook/cell/title',
490
327
  id: MenuId.NotebookCellTitle,
491
- description: ( localizeWithPath(
492
- 'vs/workbench/services/actions/common/menusExtensionPoint',
493
- 'notebook.cell.title',
494
- "The contributed notebook cell title menu"
495
- ))
328
+ description: ( localizeWithPath(_moduleId, 48, "The contributed notebook cell title menu"))
496
329
  },
497
330
  {
498
331
  key: 'notebook/cell/execute',
499
332
  id: MenuId.NotebookCellExecute,
500
- description: ( localizeWithPath(
501
- 'vs/workbench/services/actions/common/menusExtensionPoint',
502
- 'notebook.cell.execute',
503
- "The contributed notebook cell execution menu"
504
- ))
333
+ description: ( localizeWithPath(_moduleId, 49, "The contributed notebook cell execution menu"))
505
334
  },
506
335
  {
507
336
  key: 'interactive/toolbar',
508
337
  id: MenuId.InteractiveToolbar,
509
- description: ( localizeWithPath(
510
- 'vs/workbench/services/actions/common/menusExtensionPoint',
511
- 'interactive.toolbar',
512
- "The contributed interactive toolbar menu"
513
- )),
338
+ description: ( localizeWithPath(_moduleId, 50, "The contributed interactive toolbar menu")),
514
339
  },
515
340
  {
516
341
  key: 'interactive/cell/title',
517
342
  id: MenuId.InteractiveCellTitle,
518
- description: ( localizeWithPath(
519
- 'vs/workbench/services/actions/common/menusExtensionPoint',
520
- 'interactive.cell.title',
521
- "The contributed interactive cell title menu"
522
- )),
343
+ description: ( localizeWithPath(_moduleId, 51, "The contributed interactive cell title menu")),
523
344
  },
524
345
  {
525
346
  key: 'issue/reporter',
526
347
  id: MenuId.IssueReporter,
527
- description: ( localizeWithPath(
528
- 'vs/workbench/services/actions/common/menusExtensionPoint',
529
- 'issue.reporter',
530
- "The contributed issue reporter menu"
531
- )),
348
+ description: ( localizeWithPath(_moduleId, 52, "The contributed issue reporter menu")),
532
349
  proposed: 'contribIssueReporter'
533
350
  },
534
351
  {
535
352
  key: 'testing/item/context',
536
353
  id: MenuId.TestItem,
537
- description: ( localizeWithPath(
538
- 'vs/workbench/services/actions/common/menusExtensionPoint',
539
- 'testing.item.context',
540
- "The contributed test item menu"
541
- )),
354
+ description: ( localizeWithPath(_moduleId, 53, "The contributed test item menu")),
542
355
  },
543
356
  {
544
357
  key: 'testing/item/gutter',
545
358
  id: MenuId.TestItemGutter,
546
- description: ( localizeWithPath(
547
- 'vs/workbench/services/actions/common/menusExtensionPoint',
548
- 'testing.item.gutter.title',
549
- "The menu for a gutter decoration for a test item"
550
- )),
359
+ description: ( localizeWithPath(_moduleId, 54, "The menu for a gutter decoration for a test item")),
551
360
  },
552
361
  {
553
362
  key: 'testing/item/result',
554
363
  id: MenuId.TestPeekElement,
555
- description: ( localizeWithPath(
556
- 'vs/workbench/services/actions/common/menusExtensionPoint',
557
- 'testing.item.result.title',
558
- "The menu for an item in the Test Results view or peek."
559
- )),
364
+ description: ( localizeWithPath(_moduleId, 55, "The menu for an item in the Test Results view or peek.")),
560
365
  },
561
366
  {
562
367
  key: 'testing/message/context',
563
368
  id: MenuId.TestMessageContext,
564
369
  description: ( localizeWithPath(
565
- 'vs/workbench/services/actions/common/menusExtensionPoint',
566
- 'testing.message.context.title',
370
+ _moduleId,
371
+ 56,
567
372
  "A prominent button overlaying editor content where the message is displayed"
568
373
  )),
569
374
  },
570
375
  {
571
376
  key: 'testing/message/content',
572
377
  id: MenuId.TestMessageContent,
573
- description: ( localizeWithPath(
574
- 'vs/workbench/services/actions/common/menusExtensionPoint',
575
- 'testing.message.content.title',
576
- "Context menu for the message in the results tree"
577
- )),
378
+ description: ( localizeWithPath(_moduleId, 57, "Context menu for the message in the results tree")),
578
379
  },
579
380
  {
580
381
  key: 'extension/context',
581
382
  id: MenuId.ExtensionContext,
582
- description: ( localizeWithPath(
583
- 'vs/workbench/services/actions/common/menusExtensionPoint',
584
- 'menus.extensionContext',
585
- "The extension context menu"
586
- ))
383
+ description: ( localizeWithPath(_moduleId, 58, "The extension context menu"))
587
384
  },
588
385
  {
589
386
  key: 'timeline/title',
590
387
  id: MenuId.TimelineTitle,
591
- description: ( localizeWithPath(
592
- 'vs/workbench/services/actions/common/menusExtensionPoint',
593
- 'view.timelineTitle',
594
- "The Timeline view title menu"
595
- ))
388
+ description: ( localizeWithPath(_moduleId, 59, "The Timeline view title menu"))
596
389
  },
597
390
  {
598
391
  key: 'timeline/item/context',
599
392
  id: MenuId.TimelineItemContext,
600
- description: ( localizeWithPath(
601
- 'vs/workbench/services/actions/common/menusExtensionPoint',
602
- 'view.timelineContext',
603
- "The Timeline view item context menu"
604
- ))
393
+ description: ( localizeWithPath(_moduleId, 60, "The Timeline view item context menu"))
605
394
  },
606
395
  {
607
396
  key: 'ports/item/context',
608
397
  id: MenuId.TunnelContext,
609
- description: ( localizeWithPath(
610
- 'vs/workbench/services/actions/common/menusExtensionPoint',
611
- 'view.tunnelContext',
612
- "The Ports view item context menu"
613
- ))
398
+ description: ( localizeWithPath(_moduleId, 61, "The Ports view item context menu"))
614
399
  },
615
400
  {
616
401
  key: 'ports/item/origin/inline',
617
402
  id: MenuId.TunnelOriginInline,
618
- description: ( localizeWithPath(
619
- 'vs/workbench/services/actions/common/menusExtensionPoint',
620
- 'view.tunnelOriginInline',
621
- "The Ports view item origin inline menu"
622
- ))
403
+ description: ( localizeWithPath(_moduleId, 62, "The Ports view item origin inline menu"))
623
404
  },
624
405
  {
625
406
  key: 'ports/item/port/inline',
626
407
  id: MenuId.TunnelPortInline,
627
- description: ( localizeWithPath(
628
- 'vs/workbench/services/actions/common/menusExtensionPoint',
629
- 'view.tunnelPortInline',
630
- "The Ports view item port inline menu"
631
- ))
408
+ description: ( localizeWithPath(_moduleId, 63, "The Ports view item port inline menu"))
632
409
  },
633
410
  {
634
411
  key: 'file/newFile',
635
412
  id: MenuId.NewFile,
636
413
  description: ( localizeWithPath(
637
- 'vs/workbench/services/actions/common/menusExtensionPoint',
638
- 'file.newFile',
414
+ _moduleId,
415
+ 64,
639
416
  "The 'New File...' quick pick, shown on welcome page and File menu."
640
417
  )),
641
418
  supportsSubmenus: false,
@@ -643,106 +420,66 @@ const apiMenus = [
643
420
  {
644
421
  key: 'webview/context',
645
422
  id: MenuId.WebviewContext,
646
- description: ( localizeWithPath(
647
- 'vs/workbench/services/actions/common/menusExtensionPoint',
648
- 'webview.context',
649
- "The webview context menu"
650
- ))
423
+ description: ( localizeWithPath(_moduleId, 65, "The webview context menu"))
651
424
  },
652
425
  {
653
426
  key: 'file/share',
654
427
  id: MenuId.MenubarShare,
655
- description: ( localizeWithPath(
656
- 'vs/workbench/services/actions/common/menusExtensionPoint',
657
- 'menus.share',
658
- "Share submenu shown in the top level File menu."
659
- )),
428
+ description: ( localizeWithPath(_moduleId, 66, "Share submenu shown in the top level File menu.")),
660
429
  proposed: 'contribShareMenu'
661
430
  },
662
431
  {
663
432
  key: 'editor/inlineCompletions/actions',
664
433
  id: MenuId.InlineCompletionsActions,
665
- description: ( localizeWithPath(
666
- 'vs/workbench/services/actions/common/menusExtensionPoint',
667
- 'inlineCompletions.actions',
668
- "The actions shown when hovering on an inline completion"
669
- )),
434
+ description: ( localizeWithPath(_moduleId, 67, "The actions shown when hovering on an inline completion")),
670
435
  supportsSubmenus: false,
671
436
  proposed: 'inlineCompletionsAdditions'
672
437
  },
673
438
  {
674
439
  key: 'editor/inlineEdit/actions',
675
440
  id: MenuId.InlineEditActions,
676
- description: ( localizeWithPath(
677
- 'vs/workbench/services/actions/common/menusExtensionPoint',
678
- 'inlineEdit.actions',
679
- "The actions shown when hovering on an inline edit"
680
- )),
441
+ description: ( localizeWithPath(_moduleId, 68, "The actions shown when hovering on an inline edit")),
681
442
  supportsSubmenus: false,
682
443
  proposed: 'inlineEdit'
683
444
  },
684
445
  {
685
446
  key: 'editor/content',
686
447
  id: MenuId.EditorContent,
687
- description: ( localizeWithPath(
688
- 'vs/workbench/services/actions/common/menusExtensionPoint',
689
- 'merge.toolbar',
690
- "The prominent button in an editor, overlays its content"
691
- )),
448
+ description: ( localizeWithPath(_moduleId, 69, "The prominent button in an editor, overlays its content")),
692
449
  proposed: 'contribEditorContentMenu'
693
450
  },
694
451
  {
695
452
  key: 'editor/lineNumber/context',
696
453
  id: MenuId.EditorLineNumberContext,
697
- description: ( localizeWithPath(
698
- 'vs/workbench/services/actions/common/menusExtensionPoint',
699
- 'editorLineNumberContext',
700
- "The contributed editor line number context menu"
701
- ))
454
+ description: ( localizeWithPath(_moduleId, 70, "The contributed editor line number context menu"))
702
455
  },
703
456
  {
704
457
  key: 'mergeEditor/result/title',
705
458
  id: MenuId.MergeInputResultToolbar,
706
- description: ( localizeWithPath(
707
- 'vs/workbench/services/actions/common/menusExtensionPoint',
708
- 'menus.mergeEditorResult',
709
- "The result toolbar of the merge editor"
710
- )),
459
+ description: ( localizeWithPath(_moduleId, 71, "The result toolbar of the merge editor")),
711
460
  proposed: 'contribMergeEditorMenus'
712
461
  },
713
462
  {
714
463
  key: 'multiDiffEditor/resource/title',
715
464
  id: MenuId.MultiDiffEditorFileToolbar,
716
- description: ( localizeWithPath(
717
- 'vs/workbench/services/actions/common/menusExtensionPoint',
718
- 'menus.multiDiffEditorResource',
719
- "The resource toolbar in the multi diff editor"
720
- )),
465
+ description: ( localizeWithPath(_moduleId, 72, "The resource toolbar in the multi diff editor")),
721
466
  proposed: 'contribMultiDiffEditorMenus'
722
467
  },
723
468
  {
724
469
  key: 'diffEditor/gutter/hunk',
725
470
  id: MenuId.DiffEditorHunkToolbar,
726
- description: ( localizeWithPath(
727
- 'vs/workbench/services/actions/common/menusExtensionPoint',
728
- 'menus.diffEditorGutterToolBarMenus',
729
- "The gutter toolbar in the diff editor"
730
- )),
471
+ description: ( localizeWithPath(_moduleId, 73, "The gutter toolbar in the diff editor")),
731
472
  proposed: 'contribDiffEditorGutterToolBarMenus'
732
473
  },
733
474
  {
734
475
  key: 'diffEditor/gutter/selection',
735
476
  id: MenuId.DiffEditorSelectionToolbar,
736
- description: ( localizeWithPath(
737
- 'vs/workbench/services/actions/common/menusExtensionPoint',
738
- 'menus.diffEditorGutterToolBarMenus',
739
- "The gutter toolbar in the diff editor"
740
- )),
477
+ description: ( localizeWithPath(_moduleId, 73, "The gutter toolbar in the diff editor")),
741
478
  proposed: 'contribDiffEditorGutterToolBarMenus'
742
479
  }
743
480
  ];
744
481
  var schema;
745
- ( (function(schema) {
482
+ ( ((function(schema) {
746
483
  function isMenuItem(item) {
747
484
  return typeof item.command === 'string';
748
485
  }
@@ -750,8 +487,8 @@ var schema;
750
487
  function isValidMenuItem(item, collector) {
751
488
  if (typeof item.command !== 'string') {
752
489
  collector.error(( localizeWithPath(
753
- 'vs/workbench/services/actions/common/menusExtensionPoint',
754
- 'requirestring',
490
+ _moduleId,
491
+ 74,
755
492
  "property `{0}` is mandatory and must be of type `string`",
756
493
  'command'
757
494
  )));
@@ -759,8 +496,8 @@ var schema;
759
496
  }
760
497
  if (item.alt && typeof item.alt !== 'string') {
761
498
  collector.error(( localizeWithPath(
762
- 'vs/workbench/services/actions/common/menusExtensionPoint',
763
- 'optstring',
499
+ _moduleId,
500
+ 75,
764
501
  "property `{0}` can be omitted or must be of type `string`",
765
502
  'alt'
766
503
  )));
@@ -768,8 +505,8 @@ var schema;
768
505
  }
769
506
  if (item.when && typeof item.when !== 'string') {
770
507
  collector.error(( localizeWithPath(
771
- 'vs/workbench/services/actions/common/menusExtensionPoint',
772
- 'optstring',
508
+ _moduleId,
509
+ 75,
773
510
  "property `{0}` can be omitted or must be of type `string`",
774
511
  'when'
775
512
  )));
@@ -777,8 +514,8 @@ var schema;
777
514
  }
778
515
  if (item.group && typeof item.group !== 'string') {
779
516
  collector.error(( localizeWithPath(
780
- 'vs/workbench/services/actions/common/menusExtensionPoint',
781
- 'optstring',
517
+ _moduleId,
518
+ 75,
782
519
  "property `{0}` can be omitted or must be of type `string`",
783
520
  'group'
784
521
  )));
@@ -790,8 +527,8 @@ var schema;
790
527
  function isValidSubmenuItem(item, collector) {
791
528
  if (typeof item.submenu !== 'string') {
792
529
  collector.error(( localizeWithPath(
793
- 'vs/workbench/services/actions/common/menusExtensionPoint',
794
- 'requirestring',
530
+ _moduleId,
531
+ 74,
795
532
  "property `{0}` is mandatory and must be of type `string`",
796
533
  'submenu'
797
534
  )));
@@ -799,8 +536,8 @@ var schema;
799
536
  }
800
537
  if (item.when && typeof item.when !== 'string') {
801
538
  collector.error(( localizeWithPath(
802
- 'vs/workbench/services/actions/common/menusExtensionPoint',
803
- 'optstring',
539
+ _moduleId,
540
+ 75,
804
541
  "property `{0}` can be omitted or must be of type `string`",
805
542
  'when'
806
543
  )));
@@ -808,8 +545,8 @@ var schema;
808
545
  }
809
546
  if (item.group && typeof item.group !== 'string') {
810
547
  collector.error(( localizeWithPath(
811
- 'vs/workbench/services/actions/common/menusExtensionPoint',
812
- 'optstring',
548
+ _moduleId,
549
+ 75,
813
550
  "property `{0}` can be omitted or must be of type `string`",
814
551
  'group'
815
552
  )));
@@ -820,11 +557,7 @@ var schema;
820
557
  schema.isValidSubmenuItem = isValidSubmenuItem;
821
558
  function isValidItems(items, collector) {
822
559
  if (!Array.isArray(items)) {
823
- collector.error(( localizeWithPath(
824
- 'vs/workbench/services/actions/common/menusExtensionPoint',
825
- 'requirearray',
826
- "submenu items must be an array"
827
- )));
560
+ collector.error(( localizeWithPath(_moduleId, 76, "submenu items must be an array")));
828
561
  return false;
829
562
  }
830
563
  for (const item of items) {
@@ -844,17 +577,13 @@ var schema;
844
577
  schema.isValidItems = isValidItems;
845
578
  function isValidSubmenu(submenu, collector) {
846
579
  if (typeof submenu !== 'object') {
847
- collector.error(( localizeWithPath(
848
- 'vs/workbench/services/actions/common/menusExtensionPoint',
849
- 'require',
850
- "submenu items must be an object"
851
- )));
580
+ collector.error(( localizeWithPath(_moduleId, 77, "submenu items must be an object")));
852
581
  return false;
853
582
  }
854
583
  if (typeof submenu.id !== 'string') {
855
584
  collector.error(( localizeWithPath(
856
- 'vs/workbench/services/actions/common/menusExtensionPoint',
857
- 'requirestring',
585
+ _moduleId,
586
+ 74,
858
587
  "property `{0}` is mandatory and must be of type `string`",
859
588
  'id'
860
589
  )));
@@ -862,8 +591,8 @@ var schema;
862
591
  }
863
592
  if (typeof submenu.label !== 'string') {
864
593
  collector.error(( localizeWithPath(
865
- 'vs/workbench/services/actions/common/menusExtensionPoint',
866
- 'requirestring',
594
+ _moduleId,
595
+ 74,
867
596
  "property `{0}` is mandatory and must be of type `string`",
868
597
  'label'
869
598
  )));
@@ -878,34 +607,26 @@ var schema;
878
607
  properties: {
879
608
  command: {
880
609
  description: ( localizeWithPath(
881
- 'vs/workbench/services/actions/common/menusExtensionPoint',
882
- 'vscode.extension.contributes.menuItem.command',
610
+ _moduleId,
611
+ 78,
883
612
  'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
884
613
  )),
885
614
  type: 'string'
886
615
  },
887
616
  alt: {
888
617
  description: ( localizeWithPath(
889
- 'vs/workbench/services/actions/common/menusExtensionPoint',
890
- 'vscode.extension.contributes.menuItem.alt',
618
+ _moduleId,
619
+ 79,
891
620
  'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
892
621
  )),
893
622
  type: 'string'
894
623
  },
895
624
  when: {
896
- description: ( localizeWithPath(
897
- 'vs/workbench/services/actions/common/menusExtensionPoint',
898
- 'vscode.extension.contributes.menuItem.when',
899
- 'Condition which must be true to show this item'
900
- )),
625
+ description: ( localizeWithPath(_moduleId, 80, 'Condition which must be true to show this item')),
901
626
  type: 'string'
902
627
  },
903
628
  group: {
904
- description: ( localizeWithPath(
905
- 'vs/workbench/services/actions/common/menusExtensionPoint',
906
- 'vscode.extension.contributes.menuItem.group',
907
- 'Group into which this item belongs'
908
- )),
629
+ description: ( localizeWithPath(_moduleId, 81, 'Group into which this item belongs')),
909
630
  type: 'string'
910
631
  }
911
632
  }
@@ -915,27 +636,15 @@ var schema;
915
636
  required: ['submenu'],
916
637
  properties: {
917
638
  submenu: {
918
- description: ( localizeWithPath(
919
- 'vs/workbench/services/actions/common/menusExtensionPoint',
920
- 'vscode.extension.contributes.menuItem.submenu',
921
- 'Identifier of the submenu to display in this item.'
922
- )),
639
+ description: ( localizeWithPath(_moduleId, 82, 'Identifier of the submenu to display in this item.')),
923
640
  type: 'string'
924
641
  },
925
642
  when: {
926
- description: ( localizeWithPath(
927
- 'vs/workbench/services/actions/common/menusExtensionPoint',
928
- 'vscode.extension.contributes.menuItem.when',
929
- 'Condition which must be true to show this item'
930
- )),
643
+ description: ( localizeWithPath(_moduleId, 80, 'Condition which must be true to show this item')),
931
644
  type: 'string'
932
645
  },
933
646
  group: {
934
- description: ( localizeWithPath(
935
- 'vs/workbench/services/actions/common/menusExtensionPoint',
936
- 'vscode.extension.contributes.menuItem.group',
937
- 'Group into which this item belongs'
938
- )),
647
+ description: ( localizeWithPath(_moduleId, 81, 'Group into which this item belongs')),
939
648
  type: 'string'
940
649
  }
941
650
  }
@@ -945,25 +654,17 @@ var schema;
945
654
  required: ['id', 'label'],
946
655
  properties: {
947
656
  id: {
948
- description: ( localizeWithPath(
949
- 'vs/workbench/services/actions/common/menusExtensionPoint',
950
- 'vscode.extension.contributes.submenu.id',
951
- 'Identifier of the menu to display as a submenu.'
952
- )),
657
+ description: ( localizeWithPath(_moduleId, 83, 'Identifier of the menu to display as a submenu.')),
953
658
  type: 'string'
954
659
  },
955
660
  label: {
956
- description: ( localizeWithPath(
957
- 'vs/workbench/services/actions/common/menusExtensionPoint',
958
- 'vscode.extension.contributes.submenu.label',
959
- 'The label of the menu item which leads to this submenu.'
960
- )),
661
+ description: ( localizeWithPath(_moduleId, 84, 'The label of the menu item which leads to this submenu.')),
961
662
  type: 'string'
962
663
  },
963
664
  icon: {
964
665
  description: ( localizeWithPath(
965
- 'vs/workbench/services/actions/common/menusExtensionPoint',
966
- { key: 'vscode.extension.contributes.submenu.icon', comment: ['do not translate or change `\\$(zap)`, \\ in front of $ is important.'] },
666
+ _moduleId,
667
+ 85,
967
668
  '(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)`'
968
669
  )),
969
670
  anyOf: [{
@@ -973,19 +674,11 @@ var schema;
973
674
  type: 'object',
974
675
  properties: {
975
676
  light: {
976
- description: ( localizeWithPath(
977
- 'vs/workbench/services/actions/common/menusExtensionPoint',
978
- 'vscode.extension.contributes.submenu.icon.light',
979
- 'Icon path when a light theme is used'
980
- )),
677
+ description: ( localizeWithPath(_moduleId, 86, 'Icon path when a light theme is used')),
981
678
  type: 'string'
982
679
  },
983
680
  dark: {
984
- description: ( localizeWithPath(
985
- 'vs/workbench/services/actions/common/menusExtensionPoint',
986
- 'vscode.extension.contributes.submenu.icon.dark',
987
- 'Icon path when a dark theme is used'
988
- )),
681
+ description: ( localizeWithPath(_moduleId, 87, 'Icon path when a dark theme is used')),
989
682
  type: 'string'
990
683
  }
991
684
  }
@@ -994,16 +687,12 @@ var schema;
994
687
  }
995
688
  };
996
689
  schema.menusContribution = {
997
- description: ( localizeWithPath(
998
- 'vs/workbench/services/actions/common/menusExtensionPoint',
999
- 'vscode.extension.contributes.menus',
1000
- "Contributes menu items to the editor"
1001
- )),
690
+ description: ( localizeWithPath(_moduleId, 88, "Contributes menu items to the editor")),
1002
691
  type: 'object',
1003
692
  properties: index(apiMenus, menu => menu.key, menu => ({
1004
693
  markdownDescription: menu.proposed ? ( localizeWithPath(
1005
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1006
- 'proposed',
694
+ _moduleId,
695
+ 89,
1007
696
  "Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
1008
697
  menu.proposed,
1009
698
  menu.description
@@ -1018,27 +707,19 @@ var schema;
1018
707
  }
1019
708
  };
1020
709
  schema.submenusContribution = {
1021
- description: ( localizeWithPath(
1022
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1023
- 'vscode.extension.contributes.submenus',
1024
- "Contributes submenu items to the editor"
1025
- )),
710
+ description: ( localizeWithPath(_moduleId, 90, "Contributes submenu items to the editor")),
1026
711
  type: 'array',
1027
712
  items: submenu
1028
713
  };
1029
714
  function isValidCommand(command, collector) {
1030
715
  if (!command) {
1031
- collector.error(( localizeWithPath(
1032
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1033
- 'nonempty',
1034
- "expected non-empty value."
1035
- )));
716
+ collector.error(( localizeWithPath(_moduleId, 91, "expected non-empty value.")));
1036
717
  return false;
1037
718
  }
1038
719
  if (isFalsyOrWhitespace(command.command)) {
1039
720
  collector.error(( localizeWithPath(
1040
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1041
- 'requirestring',
721
+ _moduleId,
722
+ 74,
1042
723
  "property `{0}` is mandatory and must be of type `string`",
1043
724
  'command'
1044
725
  )));
@@ -1052,8 +733,8 @@ var schema;
1052
733
  }
1053
734
  if (command.enablement && typeof command.enablement !== 'string') {
1054
735
  collector.error(( localizeWithPath(
1055
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1056
- 'optstring',
736
+ _moduleId,
737
+ 75,
1057
738
  "property `{0}` can be omitted or must be of type `string`",
1058
739
  'precondition'
1059
740
  )));
@@ -1079,8 +760,8 @@ var schema;
1079
760
  return true;
1080
761
  }
1081
762
  collector.error(( localizeWithPath(
1082
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1083
- 'opticon',
763
+ _moduleId,
764
+ 92,
1084
765
  "property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
1085
766
  )));
1086
767
  return false;
@@ -1088,8 +769,8 @@ var schema;
1088
769
  function isValidLocalizedString(localized, collector, propertyName) {
1089
770
  if (typeof localized === 'undefined') {
1090
771
  collector.error(( localizeWithPath(
1091
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1092
- 'requireStringOrObject',
772
+ _moduleId,
773
+ 93,
1093
774
  "property `{0}` is mandatory and must be of type `string` or `object`",
1094
775
  propertyName
1095
776
  )));
@@ -1097,8 +778,8 @@ var schema;
1097
778
  }
1098
779
  else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
1099
780
  collector.error(( localizeWithPath(
1100
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1101
- 'requirestring',
781
+ _moduleId,
782
+ 74,
1102
783
  "property `{0}` is mandatory and must be of type `string`",
1103
784
  propertyName
1104
785
  )));
@@ -1106,8 +787,8 @@ var schema;
1106
787
  }
1107
788
  else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
1108
789
  collector.error(( localizeWithPath(
1109
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1110
- 'requirestrings',
790
+ _moduleId,
791
+ 94,
1111
792
  "properties `{0}` and `{1}` are mandatory and must be of type `string`",
1112
793
  `${propertyName}.value`,
1113
794
  `${propertyName}.original`
@@ -1121,49 +802,41 @@ var schema;
1121
802
  required: ['command', 'title'],
1122
803
  properties: {
1123
804
  command: {
1124
- description: ( localizeWithPath(
1125
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1126
- 'vscode.extension.contributes.commandType.command',
1127
- 'Identifier of the command to execute'
1128
- )),
805
+ description: ( localizeWithPath(_moduleId, 95, 'Identifier of the command to execute')),
1129
806
  type: 'string'
1130
807
  },
1131
808
  title: {
1132
- description: ( localizeWithPath(
1133
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1134
- 'vscode.extension.contributes.commandType.title',
1135
- 'Title by which the command is represented in the UI'
1136
- )),
809
+ description: ( localizeWithPath(_moduleId, 96, 'Title by which the command is represented in the UI')),
1137
810
  type: 'string'
1138
811
  },
1139
812
  shortTitle: {
1140
813
  markdownDescription: ( localizeWithPath(
1141
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1142
- 'vscode.extension.contributes.commandType.shortTitle',
814
+ _moduleId,
815
+ 97,
1143
816
  '(Optional) Short title by which the command is represented in the UI. Menus pick either `title` or `shortTitle` depending on the context in which they show commands.'
1144
817
  )),
1145
818
  type: 'string'
1146
819
  },
1147
820
  category: {
1148
821
  description: ( localizeWithPath(
1149
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1150
- 'vscode.extension.contributes.commandType.category',
822
+ _moduleId,
823
+ 98,
1151
824
  '(Optional) Category string by which the command is grouped in the UI'
1152
825
  )),
1153
826
  type: 'string'
1154
827
  },
1155
828
  enablement: {
1156
829
  description: ( localizeWithPath(
1157
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1158
- 'vscode.extension.contributes.commandType.precondition',
830
+ _moduleId,
831
+ 99,
1159
832
  '(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.'
1160
833
  )),
1161
834
  type: 'string'
1162
835
  },
1163
836
  icon: {
1164
837
  description: ( localizeWithPath(
1165
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1166
- { key: 'vscode.extension.contributes.commandType.icon', comment: ['do not translate or change `\\$(zap)`, \\ in front of $ is important.'] },
838
+ _moduleId,
839
+ 100,
1167
840
  '(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)`'
1168
841
  )),
1169
842
  anyOf: [{
@@ -1173,19 +846,11 @@ var schema;
1173
846
  type: 'object',
1174
847
  properties: {
1175
848
  light: {
1176
- description: ( localizeWithPath(
1177
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1178
- 'vscode.extension.contributes.commandType.icon.light',
1179
- 'Icon path when a light theme is used'
1180
- )),
849
+ description: ( localizeWithPath(_moduleId, 101, 'Icon path when a light theme is used')),
1181
850
  type: 'string'
1182
851
  },
1183
852
  dark: {
1184
- description: ( localizeWithPath(
1185
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1186
- 'vscode.extension.contributes.commandType.icon.dark',
1187
- 'Icon path when a dark theme is used'
1188
- )),
853
+ description: ( localizeWithPath(_moduleId, 102, 'Icon path when a dark theme is used')),
1189
854
  type: 'string'
1190
855
  }
1191
856
  }
@@ -1194,11 +859,7 @@ var schema;
1194
859
  }
1195
860
  };
1196
861
  schema.commandsContribution = {
1197
- description: ( localizeWithPath(
1198
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1199
- 'vscode.extension.contributes.commands',
1200
- "Contributes commands to the command palette."
1201
- )),
862
+ description: ( localizeWithPath(_moduleId, 103, "Contributes commands to the command palette.")),
1202
863
  oneOf: [
1203
864
  commandType,
1204
865
  {
@@ -1207,8 +868,8 @@ var schema;
1207
868
  }
1208
869
  ]
1209
870
  };
1210
- })(schema || (schema = {})));
1211
- const _commandRegistrations = ( new DisposableStore());
871
+ })(schema || (schema = {}))));
872
+ const _commandRegistrations = ( (new DisposableStore()));
1212
873
  const commandsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
1213
874
  extensionPoint: 'commands',
1214
875
  jsonSchema: schema.commandsContribution,
@@ -1242,8 +903,8 @@ commandsExtensionPoint.setHandler(extensions => {
1242
903
  if (existingCmd) {
1243
904
  if (existingCmd.source) {
1244
905
  extension.collector.info(( localizeWithPath(
1245
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1246
- 'dup1',
906
+ _moduleId,
907
+ 104,
1247
908
  "Command `{0}` already registered by {1} ({2})",
1248
909
  userFriendlyCommand.command,
1249
910
  existingCmd.source.title,
@@ -1252,8 +913,8 @@ commandsExtensionPoint.setHandler(extensions => {
1252
913
  }
1253
914
  else {
1254
915
  extension.collector.info(( localizeWithPath(
1255
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1256
- 'dup0',
916
+ _moduleId,
917
+ 105,
1257
918
  "Command `{0}` already registered",
1258
919
  userFriendlyCommand.command
1259
920
  )));
@@ -1283,7 +944,7 @@ commandsExtensionPoint.setHandler(extensions => {
1283
944
  }
1284
945
  }
1285
946
  });
1286
- const _submenus = ( new Map());
947
+ const _submenus = ( (new Map()));
1287
948
  const submenusExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
1288
949
  extensionPoint: 'submenus',
1289
950
  jsonSchema: schema.submenusContribution
@@ -1297,30 +958,20 @@ submenusExtensionPoint.setHandler(extensions => {
1297
958
  continue;
1298
959
  }
1299
960
  if (!submenuInfo.id) {
1300
- collector.warn(( localizeWithPath(
1301
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1302
- 'submenuId.invalid.id',
1303
- "`{0}` is not a valid submenu identifier",
1304
- submenuInfo.id
1305
- )));
961
+ collector.warn(( localizeWithPath(_moduleId, 106, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
1306
962
  continue;
1307
963
  }
1308
- if (( _submenus.has(submenuInfo.id))) {
964
+ if (( (_submenus.has(submenuInfo.id)))) {
1309
965
  collector.info(( localizeWithPath(
1310
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1311
- 'submenuId.duplicate.id',
966
+ _moduleId,
967
+ 107,
1312
968
  "The `{0}` submenu was already previously registered.",
1313
969
  submenuInfo.id
1314
970
  )));
1315
971
  continue;
1316
972
  }
1317
973
  if (!submenuInfo.label) {
1318
- collector.warn(( localizeWithPath(
1319
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1320
- 'submenuId.invalid.label',
1321
- "`{0}` is not a valid submenu label",
1322
- submenuInfo.label
1323
- )));
974
+ collector.warn(( localizeWithPath(_moduleId, 108, "`{0}` is not a valid submenu label", submenuInfo.label)));
1324
975
  continue;
1325
976
  }
1326
977
  let absoluteIcon;
@@ -1344,9 +995,9 @@ submenusExtensionPoint.setHandler(extensions => {
1344
995
  }
1345
996
  }
1346
997
  });
1347
- const _apiMenusByKey = ( new Map(( apiMenus.map(menu => ([menu.key, menu])))));
1348
- const _menuRegistrations = ( new DisposableStore());
1349
- const _submenuMenuItems = ( new Map());
998
+ const _apiMenusByKey = ( (new Map( (apiMenus.map(menu => ([menu.key, menu]))))));
999
+ const _menuRegistrations = ( (new DisposableStore()));
1000
+ const _submenuMenuItems = ( (new Map()));
1350
1001
  const menusExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
1351
1002
  extensionPoint: 'menus',
1352
1003
  jsonSchema: schema.menusContribution,
@@ -1377,8 +1028,8 @@ menusExtensionPoint.setHandler(extensions => {
1377
1028
  }
1378
1029
  if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
1379
1030
  collector.error(( localizeWithPath(
1380
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1381
- 'proposedAPI.invalid',
1031
+ _moduleId,
1032
+ 109,
1382
1033
  "{0} is a proposed menu identifier. It requires 'package.json#enabledApiProposals: [\"{1}\"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api {2}",
1383
1034
  entry[0],
1384
1035
  menu.proposed,
@@ -1393,8 +1044,8 @@ menusExtensionPoint.setHandler(extensions => {
1393
1044
  const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
1394
1045
  if (!command) {
1395
1046
  collector.error(( localizeWithPath(
1396
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1397
- 'missing.command',
1047
+ _moduleId,
1048
+ 110,
1398
1049
  "Menu item references a command `{0}` which is not defined in the 'commands' section.",
1399
1050
  menuItem.command
1400
1051
  )));
@@ -1402,16 +1053,16 @@ menusExtensionPoint.setHandler(extensions => {
1402
1053
  }
1403
1054
  if (menuItem.alt && !alt) {
1404
1055
  collector.warn(( localizeWithPath(
1405
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1406
- 'missing.altCommand',
1056
+ _moduleId,
1057
+ 111,
1407
1058
  "Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
1408
1059
  menuItem.alt
1409
1060
  )));
1410
1061
  }
1411
1062
  if (menuItem.command === menuItem.alt) {
1412
1063
  collector.info(( localizeWithPath(
1413
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1414
- 'dupe.command',
1064
+ _moduleId,
1065
+ 112,
1415
1066
  "Menu item references the same command as default and alt-command"
1416
1067
  )));
1417
1068
  }
@@ -1420,8 +1071,8 @@ menusExtensionPoint.setHandler(extensions => {
1420
1071
  else {
1421
1072
  if (menu.supportsSubmenus === false) {
1422
1073
  collector.error(( localizeWithPath(
1423
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1424
- 'unsupported.submenureference',
1074
+ _moduleId,
1075
+ 113,
1425
1076
  "Menu item references a submenu for a menu which doesn't have submenu support."
1426
1077
  )));
1427
1078
  continue;
@@ -1429,8 +1080,8 @@ menusExtensionPoint.setHandler(extensions => {
1429
1080
  const submenu = _submenus.get(menuItem.submenu);
1430
1081
  if (!submenu) {
1431
1082
  collector.error(( localizeWithPath(
1432
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1433
- 'missing.submenu',
1083
+ _moduleId,
1084
+ 114,
1434
1085
  "Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
1435
1086
  menuItem.submenu
1436
1087
  )));
@@ -1438,13 +1089,13 @@ menusExtensionPoint.setHandler(extensions => {
1438
1089
  }
1439
1090
  let submenuRegistrations = _submenuMenuItems.get(menu.id.id);
1440
1091
  if (!submenuRegistrations) {
1441
- submenuRegistrations = ( new Set());
1092
+ submenuRegistrations = ( (new Set()));
1442
1093
  _submenuMenuItems.set(menu.id.id, submenuRegistrations);
1443
1094
  }
1444
- if (( submenuRegistrations.has(submenu.id.id))) {
1095
+ if (( (submenuRegistrations.has(submenu.id.id)))) {
1445
1096
  collector.warn(( localizeWithPath(
1446
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1447
- 'submenuItem.duplicate',
1097
+ _moduleId,
1098
+ 115,
1448
1099
  "The `{0}` submenu was already contributed to the `{1}` menu.",
1449
1100
  menuItem.submenu,
1450
1101
  entry[0]
@@ -1481,12 +1132,12 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
1481
1132
  }
1482
1133
  render(manifest) {
1483
1134
  const rawCommands = manifest.contributes?.commands || [];
1484
- const commands = ( rawCommands.map(c => ({
1135
+ const commands = ( (rawCommands.map(c => ({
1485
1136
  id: c.command,
1486
1137
  title: c.title,
1487
1138
  keybindings: [],
1488
1139
  menus: []
1489
- })));
1140
+ }))));
1490
1141
  const byId = index(commands, c => c.id);
1491
1142
  const menus = manifest.contributes?.menus || {};
1492
1143
  for (const context in menus) {
@@ -1524,36 +1175,20 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
1524
1175
  return { data: { headers: [], rows: [] }, dispose: () => { } };
1525
1176
  }
1526
1177
  const headers = [
1527
- ( localizeWithPath(
1528
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1529
- 'command name',
1530
- "ID"
1531
- )),
1532
- ( localizeWithPath(
1533
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1534
- 'command title',
1535
- "Title"
1536
- )),
1537
- ( localizeWithPath(
1538
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1539
- 'keyboard shortcuts',
1540
- "Keyboard Shortcuts"
1541
- )),
1542
- ( localizeWithPath(
1543
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1544
- 'menuContexts',
1545
- "Menu Contexts"
1546
- ))
1178
+ ( localizeWithPath(_moduleId, 116, "ID")),
1179
+ ( localizeWithPath(_moduleId, 117, "Title")),
1180
+ ( localizeWithPath(_moduleId, 118, "Keyboard Shortcuts")),
1181
+ ( localizeWithPath(_moduleId, 119, "Menu Contexts"))
1547
1182
  ];
1548
- const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id))
1183
+ const rows = ( (commands.sort((a, b) => a.id.localeCompare(b.id))
1549
1184
  .map(command => {
1550
1185
  return [
1551
- ( new MarkdownString()).appendMarkdown(`\`${command.id}\``),
1186
+ ( (new MarkdownString())).appendMarkdown(`\`${command.id}\``),
1552
1187
  typeof command.title === 'string' ? command.title : command.title.value,
1553
1188
  command.keybindings,
1554
- ( new MarkdownString()).appendMarkdown(`${( command.menus.map(menu => `\`${menu}\``)).join(' ')}`),
1189
+ ( (new MarkdownString())).appendMarkdown(`${( (command.menus.map(menu => `\`${menu}\``))).join(' ')}`),
1555
1190
  ];
1556
- }));
1191
+ })));
1557
1192
  return {
1558
1193
  data: {
1559
1194
  headers,
@@ -1578,20 +1213,16 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
1578
1213
  return this._keybindingService.resolveUserBinding(key ?? rawKeyBinding.key)[0];
1579
1214
  }
1580
1215
  };
1581
- CommandsTableRenderer = ( __decorate([
1582
- ( __param(0, IKeybindingService))
1583
- ], CommandsTableRenderer));
1584
- ( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
1216
+ CommandsTableRenderer = ( (__decorate([
1217
+ ( (__param(0, IKeybindingService)))
1218
+ ], CommandsTableRenderer)));
1219
+ ( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
1585
1220
  id: 'commands',
1586
- label: ( localizeWithPath(
1587
- 'vs/workbench/services/actions/common/menusExtensionPoint',
1588
- 'commands',
1589
- "Commands"
1590
- )),
1221
+ label: ( localizeWithPath(_moduleId, 120, "Commands")),
1591
1222
  access: {
1592
1223
  canToggle: false,
1593
1224
  },
1594
- renderer: ( new SyncDescriptor(CommandsTableRenderer)),
1225
+ renderer: ( (new SyncDescriptor(CommandsTableRenderer))),
1595
1226
  });
1596
1227
 
1597
1228
  export { commandsExtensionPoint };