@codingame/monaco-vscode-keybindings-service-override 18.3.1 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -5
- package/package.json +8 -8
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +3 -3
- package/vscode/src/vs/workbench/contrib/commands/common/commands.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +7 -7
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +157 -136
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.d.ts +4 -4
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +48 -42
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
|
@@ -21,215 +21,215 @@ const apiMenus = [
|
|
|
21
21
|
{
|
|
22
22
|
key: 'commandPalette',
|
|
23
23
|
id: MenuId.CommandPalette,
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(12470, "The Command Palette")),
|
|
25
25
|
supportsSubmenus: false
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
key: 'touchBar',
|
|
29
29
|
id: MenuId.TouchBarContext,
|
|
30
|
-
description: ( localize(
|
|
30
|
+
description: ( localize(12471, "The touch bar (macOS only)")),
|
|
31
31
|
supportsSubmenus: false
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
key: 'editor/title',
|
|
35
35
|
id: MenuId.EditorTitle,
|
|
36
|
-
description: ( localize(
|
|
36
|
+
description: ( localize(12472, "The editor title menu"))
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
key: 'editor/title/run',
|
|
40
40
|
id: MenuId.EditorTitleRun,
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(12473, "Run submenu inside the editor title menu"))
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
key: 'editor/context',
|
|
45
45
|
id: MenuId.EditorContext,
|
|
46
|
-
description: ( localize(
|
|
46
|
+
description: ( localize(12474, "The editor context menu"))
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
key: 'editor/context/copy',
|
|
50
50
|
id: MenuId.EditorContextCopy,
|
|
51
|
-
description: ( localize(
|
|
51
|
+
description: ( localize(12475, "'Copy as' submenu in the editor context menu"))
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
key: 'editor/context/share',
|
|
55
55
|
id: MenuId.EditorContextShare,
|
|
56
|
-
description: ( localize(
|
|
56
|
+
description: ( localize(12476, "'Share' submenu in the editor context menu")),
|
|
57
57
|
proposed: 'contribShareMenu'
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
key: 'explorer/context',
|
|
61
61
|
id: MenuId.ExplorerContext,
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(12477, "The file explorer context menu"))
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
key: 'explorer/context/share',
|
|
66
66
|
id: MenuId.ExplorerContextShare,
|
|
67
|
-
description: ( localize(
|
|
67
|
+
description: ( localize(12478, "'Share' submenu in the file explorer context menu")),
|
|
68
68
|
proposed: 'contribShareMenu'
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
key: 'editor/title/context',
|
|
72
72
|
id: MenuId.EditorTitleContext,
|
|
73
|
-
description: ( localize(
|
|
73
|
+
description: ( localize(12479, "The editor tabs context menu"))
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
key: 'editor/title/context/share',
|
|
77
77
|
id: MenuId.EditorTitleContextShare,
|
|
78
|
-
description: ( localize(
|
|
78
|
+
description: ( localize(12480, "'Share' submenu inside the editor title context menu")),
|
|
79
79
|
proposed: 'contribShareMenu'
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
key: 'debug/callstack/context',
|
|
83
83
|
id: MenuId.DebugCallStackContext,
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(12481, "The debug callstack view context menu"))
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
key: 'debug/variables/context',
|
|
88
88
|
id: MenuId.DebugVariablesContext,
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(12482, "The debug variables view context menu"))
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
key: 'debug/toolBar',
|
|
93
93
|
id: MenuId.DebugToolBar,
|
|
94
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(12483, "The debug toolbar menu"))
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
key: 'debug/createConfiguration',
|
|
98
98
|
id: MenuId.DebugCreateConfiguration,
|
|
99
99
|
proposed: 'contribDebugCreateConfiguration',
|
|
100
|
-
description: ( localize(
|
|
100
|
+
description: ( localize(12484, "The debug create configuration menu"))
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
key: 'notebook/variables/context',
|
|
104
104
|
id: MenuId.NotebookVariablesContext,
|
|
105
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(12485, "The notebook variables view context menu"))
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
key: 'menuBar/home',
|
|
109
109
|
id: MenuId.MenubarHomeMenu,
|
|
110
|
-
description: ( localize(
|
|
110
|
+
description: ( localize(12486, "The home indicator context menu (web only)")),
|
|
111
111
|
proposed: 'contribMenuBarHome',
|
|
112
112
|
supportsSubmenus: false
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
key: 'menuBar/edit/copy',
|
|
116
116
|
id: MenuId.MenubarCopy,
|
|
117
|
-
description: ( localize(
|
|
117
|
+
description: ( localize(12487, "'Copy as' submenu in the top level Edit menu"))
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
key: 'scm/title',
|
|
121
121
|
id: MenuId.SCMTitle,
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(12488, "The Source Control title menu"))
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
key: 'scm/sourceControl',
|
|
126
126
|
id: MenuId.SCMSourceControl,
|
|
127
|
-
description: ( localize(
|
|
127
|
+
description: ( localize(12489, "The Source Control menu"))
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
key: 'scm/sourceControl/title',
|
|
131
131
|
id: MenuId.SCMSourceControlTitle,
|
|
132
|
-
description: ( localize(
|
|
132
|
+
description: ( localize(12490, "The Source Control title menu")),
|
|
133
133
|
proposed: 'contribSourceControlTitleMenu'
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
key: 'scm/resourceState/context',
|
|
137
137
|
id: MenuId.SCMResourceContext,
|
|
138
|
-
description: ( localize(
|
|
138
|
+
description: ( localize(12491, "The Source Control resource state context menu"))
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
key: 'scm/resourceFolder/context',
|
|
142
142
|
id: MenuId.SCMResourceFolderContext,
|
|
143
|
-
description: ( localize(
|
|
143
|
+
description: ( localize(12492, "The Source Control resource folder context menu"))
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
key: 'scm/resourceGroup/context',
|
|
147
147
|
id: MenuId.SCMResourceGroupContext,
|
|
148
|
-
description: ( localize(
|
|
148
|
+
description: ( localize(12493, "The Source Control resource group context menu"))
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
key: 'scm/change/title',
|
|
152
152
|
id: MenuId.SCMChangeContext,
|
|
153
|
-
description: ( localize(
|
|
153
|
+
description: ( localize(12494, "The Source Control inline change menu"))
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
key: 'scm/inputBox',
|
|
157
157
|
id: MenuId.SCMInputBox,
|
|
158
|
-
description: ( localize(
|
|
158
|
+
description: ( localize(12495, "The Source Control input box menu")),
|
|
159
159
|
proposed: 'contribSourceControlInputBoxMenu'
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
key: 'scm/history/title',
|
|
163
163
|
id: MenuId.SCMHistoryTitle,
|
|
164
|
-
description: ( localize(
|
|
164
|
+
description: ( localize(12496, "The Source Control History title menu")),
|
|
165
165
|
proposed: 'contribSourceControlHistoryTitleMenu'
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
key: 'scm/historyItem/context',
|
|
169
169
|
id: MenuId.SCMHistoryItemContext,
|
|
170
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(12497, "The Source Control history item context menu")),
|
|
171
171
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
key: 'scm/historyItem/hover',
|
|
175
175
|
id: MenuId.SCMHistoryItemHover,
|
|
176
|
-
description: ( localize(
|
|
176
|
+
description: ( localize(12498, "The Source Control history item hover menu")),
|
|
177
177
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
key: 'scm/historyItemRef/context',
|
|
181
181
|
id: MenuId.SCMHistoryItemRefContext,
|
|
182
|
-
description: ( localize(
|
|
182
|
+
description: ( localize(12499, "The Source Control history item reference context menu")),
|
|
183
183
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
key: 'statusBar/remoteIndicator',
|
|
187
187
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
188
|
-
description: ( localize(
|
|
188
|
+
description: ( localize(12500, "The remote indicator menu in the status bar")),
|
|
189
189
|
supportsSubmenus: false
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
key: 'terminal/context',
|
|
193
193
|
id: MenuId.TerminalInstanceContext,
|
|
194
|
-
description: ( localize(
|
|
194
|
+
description: ( localize(12501, "The terminal context menu"))
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
key: 'terminal/title/context',
|
|
198
198
|
id: MenuId.TerminalTabContext,
|
|
199
|
-
description: ( localize(
|
|
199
|
+
description: ( localize(12502, "The terminal tabs context menu"))
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
key: 'view/title',
|
|
203
203
|
id: MenuId.ViewTitle,
|
|
204
|
-
description: ( localize(
|
|
204
|
+
description: ( localize(12503, "The contributed view title menu"))
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
key: 'viewContainer/title',
|
|
208
208
|
id: MenuId.ViewContainerTitle,
|
|
209
|
-
description: ( localize(
|
|
209
|
+
description: ( localize(12504, "The contributed view container title menu")),
|
|
210
210
|
proposed: 'contribViewContainerTitle'
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
key: 'view/item/context',
|
|
214
214
|
id: MenuId.ViewItemContext,
|
|
215
|
-
description: ( localize(
|
|
215
|
+
description: ( localize(12505, "The contributed view item context menu"))
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
key: 'comments/comment/editorActions',
|
|
219
219
|
id: MenuId.CommentEditorActions,
|
|
220
|
-
description: ( localize(
|
|
220
|
+
description: ( localize(12506, "The contributed comment editor actions")),
|
|
221
221
|
proposed: 'contribCommentEditorActionsMenu'
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
key: 'comments/commentThread/title',
|
|
225
225
|
id: MenuId.CommentThreadTitle,
|
|
226
|
-
description: ( localize(
|
|
226
|
+
description: ( localize(12507, "The contributed comment thread title menu"))
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
key: 'comments/commentThread/context',
|
|
230
230
|
id: MenuId.CommentThreadActions,
|
|
231
231
|
description: ( localize(
|
|
232
|
-
|
|
232
|
+
12508,
|
|
233
233
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
234
234
|
)),
|
|
235
235
|
supportsSubmenus: false
|
|
@@ -238,7 +238,7 @@ const apiMenus = [
|
|
|
238
238
|
key: 'comments/commentThread/additionalActions',
|
|
239
239
|
id: MenuId.CommentThreadAdditionalActions,
|
|
240
240
|
description: ( localize(
|
|
241
|
-
|
|
241
|
+
12508,
|
|
242
242
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
243
243
|
)),
|
|
244
244
|
supportsSubmenus: true,
|
|
@@ -248,7 +248,7 @@ const apiMenus = [
|
|
|
248
248
|
key: 'comments/commentThread/title/context',
|
|
249
249
|
id: MenuId.CommentThreadTitleContext,
|
|
250
250
|
description: ( localize(
|
|
251
|
-
|
|
251
|
+
12509,
|
|
252
252
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
253
253
|
)),
|
|
254
254
|
proposed: 'contribCommentPeekContext'
|
|
@@ -256,13 +256,13 @@ const apiMenus = [
|
|
|
256
256
|
{
|
|
257
257
|
key: 'comments/comment/title',
|
|
258
258
|
id: MenuId.CommentTitle,
|
|
259
|
-
description: ( localize(
|
|
259
|
+
description: ( localize(12510, "The contributed comment title menu"))
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
key: 'comments/comment/context',
|
|
263
263
|
id: MenuId.CommentActions,
|
|
264
264
|
description: ( localize(
|
|
265
|
-
|
|
265
|
+
12511,
|
|
266
266
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
267
267
|
)),
|
|
268
268
|
supportsSubmenus: false
|
|
@@ -271,7 +271,7 @@ const apiMenus = [
|
|
|
271
271
|
key: 'comments/commentThread/comment/context',
|
|
272
272
|
id: MenuId.CommentThreadCommentContext,
|
|
273
273
|
description: ( localize(
|
|
274
|
-
|
|
274
|
+
12512,
|
|
275
275
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
276
276
|
)),
|
|
277
277
|
proposed: 'contribCommentPeekContext'
|
|
@@ -279,113 +279,113 @@ const apiMenus = [
|
|
|
279
279
|
{
|
|
280
280
|
key: 'commentsView/commentThread/context',
|
|
281
281
|
id: MenuId.CommentsViewThreadActions,
|
|
282
|
-
description: ( localize(
|
|
282
|
+
description: ( localize(12513, "The contributed comment thread context menu in the comments view")),
|
|
283
283
|
proposed: 'contribCommentsViewThreadMenus'
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
key: 'notebook/toolbar',
|
|
287
287
|
id: MenuId.NotebookToolbar,
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(12514, "The contributed notebook toolbar menu"))
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
291
|
key: 'notebook/kernelSource',
|
|
292
292
|
id: MenuId.NotebookKernelSource,
|
|
293
|
-
description: ( localize(
|
|
293
|
+
description: ( localize(12515, "The contributed notebook kernel sources menu")),
|
|
294
294
|
proposed: 'notebookKernelSource'
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
297
|
key: 'notebook/cell/title',
|
|
298
298
|
id: MenuId.NotebookCellTitle,
|
|
299
|
-
description: ( localize(
|
|
299
|
+
description: ( localize(12516, "The contributed notebook cell title menu"))
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
key: 'notebook/cell/execute',
|
|
303
303
|
id: MenuId.NotebookCellExecute,
|
|
304
|
-
description: ( localize(
|
|
304
|
+
description: ( localize(12517, "The contributed notebook cell execution menu"))
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
key: 'interactive/toolbar',
|
|
308
308
|
id: MenuId.InteractiveToolbar,
|
|
309
|
-
description: ( localize(
|
|
309
|
+
description: ( localize(12518, "The contributed interactive toolbar menu")),
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
key: 'interactive/cell/title',
|
|
313
313
|
id: MenuId.InteractiveCellTitle,
|
|
314
|
-
description: ( localize(
|
|
314
|
+
description: ( localize(12519, "The contributed interactive cell title menu")),
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
key: 'issue/reporter',
|
|
318
318
|
id: MenuId.IssueReporter,
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(12520, "The contributed issue reporter menu"))
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
key: 'testing/item/context',
|
|
323
323
|
id: MenuId.TestItem,
|
|
324
|
-
description: ( localize(
|
|
324
|
+
description: ( localize(12521, "The contributed test item menu")),
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
key: 'testing/item/gutter',
|
|
328
328
|
id: MenuId.TestItemGutter,
|
|
329
|
-
description: ( localize(
|
|
329
|
+
description: ( localize(12522, "The menu for a gutter decoration for a test item")),
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
key: 'testing/profiles/context',
|
|
333
333
|
id: MenuId.TestProfilesContext,
|
|
334
|
-
description: ( localize(
|
|
334
|
+
description: ( localize(12523, "The menu for configuring testing profiles.")),
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
key: 'testing/item/result',
|
|
338
338
|
id: MenuId.TestPeekElement,
|
|
339
|
-
description: ( localize(
|
|
339
|
+
description: ( localize(12524, "The menu for an item in the Test Results view or peek.")),
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
key: 'testing/message/context',
|
|
343
343
|
id: MenuId.TestMessageContext,
|
|
344
344
|
description: ( localize(
|
|
345
|
-
|
|
345
|
+
12525,
|
|
346
346
|
"A prominent button overlaying editor content where the message is displayed"
|
|
347
347
|
)),
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
key: 'testing/message/content',
|
|
351
351
|
id: MenuId.TestMessageContent,
|
|
352
|
-
description: ( localize(
|
|
352
|
+
description: ( localize(12526, "Context menu for the message in the results tree")),
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
355
|
key: 'extension/context',
|
|
356
356
|
id: MenuId.ExtensionContext,
|
|
357
|
-
description: ( localize(
|
|
357
|
+
description: ( localize(12527, "The extension context menu"))
|
|
358
358
|
},
|
|
359
359
|
{
|
|
360
360
|
key: 'timeline/title',
|
|
361
361
|
id: MenuId.TimelineTitle,
|
|
362
|
-
description: ( localize(
|
|
362
|
+
description: ( localize(12528, "The Timeline view title menu"))
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
365
|
key: 'timeline/item/context',
|
|
366
366
|
id: MenuId.TimelineItemContext,
|
|
367
|
-
description: ( localize(
|
|
367
|
+
description: ( localize(12529, "The Timeline view item context menu"))
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
370
|
key: 'ports/item/context',
|
|
371
371
|
id: MenuId.TunnelContext,
|
|
372
|
-
description: ( localize(
|
|
372
|
+
description: ( localize(12530, "The Ports view item context menu"))
|
|
373
373
|
},
|
|
374
374
|
{
|
|
375
375
|
key: 'ports/item/origin/inline',
|
|
376
376
|
id: MenuId.TunnelOriginInline,
|
|
377
|
-
description: ( localize(
|
|
377
|
+
description: ( localize(12531, "The Ports view item origin inline menu"))
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
380
|
key: 'ports/item/port/inline',
|
|
381
381
|
id: MenuId.TunnelPortInline,
|
|
382
|
-
description: ( localize(
|
|
382
|
+
description: ( localize(12532, "The Ports view item port inline menu"))
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
385
|
key: 'file/newFile',
|
|
386
386
|
id: MenuId.NewFile,
|
|
387
387
|
description: ( localize(
|
|
388
|
-
|
|
388
|
+
12533,
|
|
389
389
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
390
390
|
)),
|
|
391
391
|
supportsSubmenus: false,
|
|
@@ -393,68 +393,89 @@ const apiMenus = [
|
|
|
393
393
|
{
|
|
394
394
|
key: 'webview/context',
|
|
395
395
|
id: MenuId.WebviewContext,
|
|
396
|
-
description: ( localize(
|
|
396
|
+
description: ( localize(12534, "The webview context menu"))
|
|
397
397
|
},
|
|
398
398
|
{
|
|
399
399
|
key: 'file/share',
|
|
400
400
|
id: MenuId.MenubarShare,
|
|
401
|
-
description: ( localize(
|
|
401
|
+
description: ( localize(12535, "Share submenu shown in the top level File menu.")),
|
|
402
402
|
proposed: 'contribShareMenu'
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
405
|
key: 'editor/inlineCompletions/actions',
|
|
406
406
|
id: MenuId.InlineCompletionsActions,
|
|
407
|
-
description: ( localize(
|
|
407
|
+
description: ( localize(12536, "The actions shown when hovering on an inline completion")),
|
|
408
408
|
supportsSubmenus: false,
|
|
409
409
|
proposed: 'inlineCompletionsAdditions'
|
|
410
410
|
},
|
|
411
411
|
{
|
|
412
412
|
key: 'editor/content',
|
|
413
413
|
id: MenuId.EditorContent,
|
|
414
|
-
description: ( localize(
|
|
414
|
+
description: ( localize(12537, "The prominent button in an editor, overlays its content")),
|
|
415
415
|
proposed: 'contribEditorContentMenu'
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
key: 'editor/lineNumber/context',
|
|
419
419
|
id: MenuId.EditorLineNumberContext,
|
|
420
|
-
description: ( localize(
|
|
420
|
+
description: ( localize(12538, "The contributed editor line number context menu"))
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
key: 'mergeEditor/result/title',
|
|
424
424
|
id: MenuId.MergeInputResultToolbar,
|
|
425
|
-
description: ( localize(
|
|
425
|
+
description: ( localize(12539, "The result toolbar of the merge editor")),
|
|
426
426
|
proposed: 'contribMergeEditorMenus'
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
429
|
key: 'multiDiffEditor/resource/title',
|
|
430
430
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
431
|
-
description: ( localize(
|
|
431
|
+
description: ( localize(12540, "The resource toolbar in the multi diff editor")),
|
|
432
432
|
proposed: 'contribMultiDiffEditorMenus'
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
435
|
key: 'diffEditor/gutter/hunk',
|
|
436
436
|
id: MenuId.DiffEditorHunkToolbar,
|
|
437
|
-
description: ( localize(
|
|
437
|
+
description: ( localize(12541, "The gutter toolbar in the diff editor")),
|
|
438
438
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
key: 'diffEditor/gutter/selection',
|
|
442
442
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
443
|
-
description: ( localize(
|
|
443
|
+
description: ( localize(12541, "The gutter toolbar in the diff editor")),
|
|
444
444
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
447
|
key: 'searchPanel/aiResults/commands',
|
|
448
448
|
id: MenuId.SearchActionMenu,
|
|
449
449
|
description: ( localize(
|
|
450
|
-
|
|
450
|
+
12542,
|
|
451
451
|
"The commands that will contribute to the menu rendered as buttons next to the AI search title"
|
|
452
452
|
)),
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
key: 'chat/modelPicker',
|
|
456
456
|
id: MenuId.ChatModelPicker,
|
|
457
|
-
description: ( localize(
|
|
457
|
+
description: ( localize(12543, "The chat model picker dropdown menu")),
|
|
458
|
+
supportsSubmenus: false,
|
|
459
|
+
proposed: 'chatParticipantPrivate'
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
key: 'explorer/context/chat',
|
|
463
|
+
id: MenuId.ChatExplorerMenu,
|
|
464
|
+
description: ( localize(12544, "The Chat submenu in the explorer context menu.")),
|
|
465
|
+
supportsSubmenus: false,
|
|
466
|
+
proposed: 'chatParticipantPrivate'
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
key: 'editor/context/chat',
|
|
470
|
+
id: MenuId.ChatTextEditorMenu,
|
|
471
|
+
description: ( localize(12545, "The Chat submenu in the text editor context menu.")),
|
|
472
|
+
supportsSubmenus: false,
|
|
473
|
+
proposed: 'chatParticipantPrivate'
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
key: 'terminal/context/chat',
|
|
477
|
+
id: MenuId.ChatTerminalMenu,
|
|
478
|
+
description: ( localize(12546, "The Chat submenu in the terminal context menu.")),
|
|
458
479
|
supportsSubmenus: false,
|
|
459
480
|
proposed: 'chatParticipantPrivate'
|
|
460
481
|
}
|
|
@@ -468,23 +489,23 @@ var schema;
|
|
|
468
489
|
function isValidMenuItem(item, collector) {
|
|
469
490
|
if (typeof item.command !== 'string') {
|
|
470
491
|
collector.error(( localize(
|
|
471
|
-
|
|
492
|
+
12547,
|
|
472
493
|
"property `{0}` is mandatory and must be of type `string`",
|
|
473
494
|
'command'
|
|
474
495
|
)));
|
|
475
496
|
return false;
|
|
476
497
|
}
|
|
477
498
|
if (item.alt && typeof item.alt !== 'string') {
|
|
478
|
-
collector.error(( localize(
|
|
499
|
+
collector.error(( localize(12548, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
479
500
|
return false;
|
|
480
501
|
}
|
|
481
502
|
if (item.when && typeof item.when !== 'string') {
|
|
482
|
-
collector.error(( localize(
|
|
503
|
+
collector.error(( localize(12548, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
483
504
|
return false;
|
|
484
505
|
}
|
|
485
506
|
if (item.group && typeof item.group !== 'string') {
|
|
486
507
|
collector.error(( localize(
|
|
487
|
-
|
|
508
|
+
12548,
|
|
488
509
|
"property `{0}` can be omitted or must be of type `string`",
|
|
489
510
|
'group'
|
|
490
511
|
)));
|
|
@@ -496,19 +517,19 @@ var schema;
|
|
|
496
517
|
function isValidSubmenuItem(item, collector) {
|
|
497
518
|
if (typeof item.submenu !== 'string') {
|
|
498
519
|
collector.error(( localize(
|
|
499
|
-
|
|
520
|
+
12547,
|
|
500
521
|
"property `{0}` is mandatory and must be of type `string`",
|
|
501
522
|
'submenu'
|
|
502
523
|
)));
|
|
503
524
|
return false;
|
|
504
525
|
}
|
|
505
526
|
if (item.when && typeof item.when !== 'string') {
|
|
506
|
-
collector.error(( localize(
|
|
527
|
+
collector.error(( localize(12548, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
507
528
|
return false;
|
|
508
529
|
}
|
|
509
530
|
if (item.group && typeof item.group !== 'string') {
|
|
510
531
|
collector.error(( localize(
|
|
511
|
-
|
|
532
|
+
12548,
|
|
512
533
|
"property `{0}` can be omitted or must be of type `string`",
|
|
513
534
|
'group'
|
|
514
535
|
)));
|
|
@@ -519,7 +540,7 @@ var schema;
|
|
|
519
540
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
520
541
|
function isValidItems(items, collector) {
|
|
521
542
|
if (!Array.isArray(items)) {
|
|
522
|
-
collector.error(( localize(
|
|
543
|
+
collector.error(( localize(12549, "submenu items must be an array")));
|
|
523
544
|
return false;
|
|
524
545
|
}
|
|
525
546
|
for (const item of items) {
|
|
@@ -539,15 +560,15 @@ var schema;
|
|
|
539
560
|
schema.isValidItems = isValidItems;
|
|
540
561
|
function isValidSubmenu(submenu, collector) {
|
|
541
562
|
if (typeof submenu !== 'object') {
|
|
542
|
-
collector.error(( localize(
|
|
563
|
+
collector.error(( localize(12550, "submenu items must be an object")));
|
|
543
564
|
return false;
|
|
544
565
|
}
|
|
545
566
|
if (typeof submenu.id !== 'string') {
|
|
546
|
-
collector.error(( localize(
|
|
567
|
+
collector.error(( localize(12547, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
547
568
|
return false;
|
|
548
569
|
}
|
|
549
570
|
if (typeof submenu.label !== 'string') {
|
|
550
|
-
collector.error(( localize(
|
|
571
|
+
collector.error(( localize(12547, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
551
572
|
return false;
|
|
552
573
|
}
|
|
553
574
|
return true;
|
|
@@ -559,24 +580,24 @@ var schema;
|
|
|
559
580
|
properties: {
|
|
560
581
|
command: {
|
|
561
582
|
description: ( localize(
|
|
562
|
-
|
|
583
|
+
12551,
|
|
563
584
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
564
585
|
)),
|
|
565
586
|
type: 'string'
|
|
566
587
|
},
|
|
567
588
|
alt: {
|
|
568
589
|
description: ( localize(
|
|
569
|
-
|
|
590
|
+
12552,
|
|
570
591
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
571
592
|
)),
|
|
572
593
|
type: 'string'
|
|
573
594
|
},
|
|
574
595
|
when: {
|
|
575
|
-
description: ( localize(
|
|
596
|
+
description: ( localize(12553, 'Condition which must be true to show this item')),
|
|
576
597
|
type: 'string'
|
|
577
598
|
},
|
|
578
599
|
group: {
|
|
579
|
-
description: ( localize(
|
|
600
|
+
description: ( localize(12554, 'Group into which this item belongs')),
|
|
580
601
|
type: 'string'
|
|
581
602
|
}
|
|
582
603
|
}
|
|
@@ -586,15 +607,15 @@ var schema;
|
|
|
586
607
|
required: ['submenu'],
|
|
587
608
|
properties: {
|
|
588
609
|
submenu: {
|
|
589
|
-
description: ( localize(
|
|
610
|
+
description: ( localize(12555, 'Identifier of the submenu to display in this item.')),
|
|
590
611
|
type: 'string'
|
|
591
612
|
},
|
|
592
613
|
when: {
|
|
593
|
-
description: ( localize(
|
|
614
|
+
description: ( localize(12553, 'Condition which must be true to show this item')),
|
|
594
615
|
type: 'string'
|
|
595
616
|
},
|
|
596
617
|
group: {
|
|
597
|
-
description: ( localize(
|
|
618
|
+
description: ( localize(12554, 'Group into which this item belongs')),
|
|
598
619
|
type: 'string'
|
|
599
620
|
}
|
|
600
621
|
}
|
|
@@ -604,16 +625,16 @@ var schema;
|
|
|
604
625
|
required: ['id', 'label'],
|
|
605
626
|
properties: {
|
|
606
627
|
id: {
|
|
607
|
-
description: ( localize(
|
|
628
|
+
description: ( localize(12556, 'Identifier of the menu to display as a submenu.')),
|
|
608
629
|
type: 'string'
|
|
609
630
|
},
|
|
610
631
|
label: {
|
|
611
|
-
description: ( localize(
|
|
632
|
+
description: ( localize(12557, 'The label of the menu item which leads to this submenu.')),
|
|
612
633
|
type: 'string'
|
|
613
634
|
},
|
|
614
635
|
icon: {
|
|
615
636
|
description: ( localize(
|
|
616
|
-
|
|
637
|
+
12558,
|
|
617
638
|
'(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)`'
|
|
618
639
|
)),
|
|
619
640
|
anyOf: [{
|
|
@@ -623,11 +644,11 @@ var schema;
|
|
|
623
644
|
type: 'object',
|
|
624
645
|
properties: {
|
|
625
646
|
light: {
|
|
626
|
-
description: ( localize(
|
|
647
|
+
description: ( localize(12559, 'Icon path when a light theme is used')),
|
|
627
648
|
type: 'string'
|
|
628
649
|
},
|
|
629
650
|
dark: {
|
|
630
|
-
description: ( localize(
|
|
651
|
+
description: ( localize(12560, 'Icon path when a dark theme is used')),
|
|
631
652
|
type: 'string'
|
|
632
653
|
}
|
|
633
654
|
}
|
|
@@ -636,11 +657,11 @@ var schema;
|
|
|
636
657
|
}
|
|
637
658
|
};
|
|
638
659
|
schema.menusContribution = {
|
|
639
|
-
description: ( localize(
|
|
660
|
+
description: ( localize(12561, "Contributes menu items to the editor")),
|
|
640
661
|
type: 'object',
|
|
641
662
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
642
663
|
markdownDescription: menu.proposed ? ( localize(
|
|
643
|
-
|
|
664
|
+
12562,
|
|
644
665
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
645
666
|
menu.proposed,
|
|
646
667
|
menu.description
|
|
@@ -655,18 +676,18 @@ var schema;
|
|
|
655
676
|
}
|
|
656
677
|
};
|
|
657
678
|
schema.submenusContribution = {
|
|
658
|
-
description: ( localize(
|
|
679
|
+
description: ( localize(12563, "Contributes submenu items to the editor")),
|
|
659
680
|
type: 'array',
|
|
660
681
|
items: submenu
|
|
661
682
|
};
|
|
662
683
|
function isValidCommand(command, collector) {
|
|
663
684
|
if (!command) {
|
|
664
|
-
collector.error(( localize(
|
|
685
|
+
collector.error(( localize(12564, "expected non-empty value.")));
|
|
665
686
|
return false;
|
|
666
687
|
}
|
|
667
688
|
if (isFalsyOrWhitespace(command.command)) {
|
|
668
689
|
collector.error(( localize(
|
|
669
|
-
|
|
690
|
+
12547,
|
|
670
691
|
"property `{0}` is mandatory and must be of type `string`",
|
|
671
692
|
'command'
|
|
672
693
|
)));
|
|
@@ -680,7 +701,7 @@ var schema;
|
|
|
680
701
|
}
|
|
681
702
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
682
703
|
collector.error(( localize(
|
|
683
|
-
|
|
704
|
+
12548,
|
|
684
705
|
"property `{0}` can be omitted or must be of type `string`",
|
|
685
706
|
'precondition'
|
|
686
707
|
)));
|
|
@@ -706,7 +727,7 @@ var schema;
|
|
|
706
727
|
return true;
|
|
707
728
|
}
|
|
708
729
|
collector.error(( localize(
|
|
709
|
-
|
|
730
|
+
12565,
|
|
710
731
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
711
732
|
)));
|
|
712
733
|
return false;
|
|
@@ -714,7 +735,7 @@ var schema;
|
|
|
714
735
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
715
736
|
if (typeof localized === 'undefined') {
|
|
716
737
|
collector.error(( localize(
|
|
717
|
-
|
|
738
|
+
12566,
|
|
718
739
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
719
740
|
propertyName
|
|
720
741
|
)));
|
|
@@ -722,7 +743,7 @@ var schema;
|
|
|
722
743
|
}
|
|
723
744
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
724
745
|
collector.error(( localize(
|
|
725
|
-
|
|
746
|
+
12547,
|
|
726
747
|
"property `{0}` is mandatory and must be of type `string`",
|
|
727
748
|
propertyName
|
|
728
749
|
)));
|
|
@@ -730,7 +751,7 @@ var schema;
|
|
|
730
751
|
}
|
|
731
752
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
732
753
|
collector.error(( localize(
|
|
733
|
-
|
|
754
|
+
12567,
|
|
734
755
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
735
756
|
`${propertyName}.value`,
|
|
736
757
|
`${propertyName}.original`
|
|
@@ -744,37 +765,37 @@ var schema;
|
|
|
744
765
|
required: ['command', 'title'],
|
|
745
766
|
properties: {
|
|
746
767
|
command: {
|
|
747
|
-
description: ( localize(
|
|
768
|
+
description: ( localize(12568, 'Identifier of the command to execute')),
|
|
748
769
|
type: 'string'
|
|
749
770
|
},
|
|
750
771
|
title: {
|
|
751
|
-
description: ( localize(
|
|
772
|
+
description: ( localize(12569, 'Title by which the command is represented in the UI')),
|
|
752
773
|
type: 'string'
|
|
753
774
|
},
|
|
754
775
|
shortTitle: {
|
|
755
776
|
markdownDescription: ( localize(
|
|
756
|
-
|
|
777
|
+
12570,
|
|
757
778
|
'(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.'
|
|
758
779
|
)),
|
|
759
780
|
type: 'string'
|
|
760
781
|
},
|
|
761
782
|
category: {
|
|
762
783
|
description: ( localize(
|
|
763
|
-
|
|
784
|
+
12571,
|
|
764
785
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
765
786
|
)),
|
|
766
787
|
type: 'string'
|
|
767
788
|
},
|
|
768
789
|
enablement: {
|
|
769
790
|
description: ( localize(
|
|
770
|
-
|
|
791
|
+
12572,
|
|
771
792
|
'(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.'
|
|
772
793
|
)),
|
|
773
794
|
type: 'string'
|
|
774
795
|
},
|
|
775
796
|
icon: {
|
|
776
797
|
description: ( localize(
|
|
777
|
-
|
|
798
|
+
12573,
|
|
778
799
|
'(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)`'
|
|
779
800
|
)),
|
|
780
801
|
anyOf: [{
|
|
@@ -784,11 +805,11 @@ var schema;
|
|
|
784
805
|
type: 'object',
|
|
785
806
|
properties: {
|
|
786
807
|
light: {
|
|
787
|
-
description: ( localize(
|
|
808
|
+
description: ( localize(12574, 'Icon path when a light theme is used')),
|
|
788
809
|
type: 'string'
|
|
789
810
|
},
|
|
790
811
|
dark: {
|
|
791
|
-
description: ( localize(
|
|
812
|
+
description: ( localize(12575, 'Icon path when a dark theme is used')),
|
|
792
813
|
type: 'string'
|
|
793
814
|
}
|
|
794
815
|
}
|
|
@@ -797,7 +818,7 @@ var schema;
|
|
|
797
818
|
}
|
|
798
819
|
};
|
|
799
820
|
schema.commandsContribution = {
|
|
800
|
-
description: ( localize(
|
|
821
|
+
description: ( localize(12576, "Contributes commands to the command palette.")),
|
|
801
822
|
oneOf: [
|
|
802
823
|
commandType,
|
|
803
824
|
{
|
|
@@ -841,7 +862,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
841
862
|
if (existingCmd) {
|
|
842
863
|
if (existingCmd.source) {
|
|
843
864
|
extension.collector.info(( localize(
|
|
844
|
-
|
|
865
|
+
12577,
|
|
845
866
|
"Command `{0}` already registered by {1} ({2})",
|
|
846
867
|
userFriendlyCommand.command,
|
|
847
868
|
existingCmd.source.title,
|
|
@@ -849,7 +870,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
849
870
|
)));
|
|
850
871
|
}
|
|
851
872
|
else {
|
|
852
|
-
extension.collector.info(( localize(
|
|
873
|
+
extension.collector.info(( localize(12578, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
853
874
|
}
|
|
854
875
|
}
|
|
855
876
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -890,19 +911,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
890
911
|
continue;
|
|
891
912
|
}
|
|
892
913
|
if (!submenuInfo.id) {
|
|
893
|
-
collector.warn(( localize(
|
|
914
|
+
collector.warn(( localize(12579, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
894
915
|
continue;
|
|
895
916
|
}
|
|
896
917
|
if (( _submenus.has(submenuInfo.id))) {
|
|
897
918
|
collector.info(( localize(
|
|
898
|
-
|
|
919
|
+
12580,
|
|
899
920
|
"The `{0}` submenu was already previously registered.",
|
|
900
921
|
submenuInfo.id
|
|
901
922
|
)));
|
|
902
923
|
continue;
|
|
903
924
|
}
|
|
904
925
|
if (!submenuInfo.label) {
|
|
905
|
-
collector.warn(( localize(
|
|
926
|
+
collector.warn(( localize(12581, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
906
927
|
continue;
|
|
907
928
|
}
|
|
908
929
|
let absoluteIcon;
|
|
@@ -959,7 +980,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
959
980
|
}
|
|
960
981
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
961
982
|
collector.error(( localize(
|
|
962
|
-
|
|
983
|
+
12582,
|
|
963
984
|
"{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}",
|
|
964
985
|
entry[0],
|
|
965
986
|
menu.proposed,
|
|
@@ -974,7 +995,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
974
995
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
975
996
|
if (!command) {
|
|
976
997
|
collector.error(( localize(
|
|
977
|
-
|
|
998
|
+
12583,
|
|
978
999
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
979
1000
|
menuItem.command
|
|
980
1001
|
)));
|
|
@@ -982,20 +1003,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
982
1003
|
}
|
|
983
1004
|
if (menuItem.alt && !alt) {
|
|
984
1005
|
collector.warn(( localize(
|
|
985
|
-
|
|
1006
|
+
12584,
|
|
986
1007
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
987
1008
|
menuItem.alt
|
|
988
1009
|
)));
|
|
989
1010
|
}
|
|
990
1011
|
if (menuItem.command === menuItem.alt) {
|
|
991
|
-
collector.info(( localize(
|
|
1012
|
+
collector.info(( localize(12585, "Menu item references the same command as default and alt-command")));
|
|
992
1013
|
}
|
|
993
1014
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
994
1015
|
}
|
|
995
1016
|
else {
|
|
996
1017
|
if (menu.supportsSubmenus === false) {
|
|
997
1018
|
collector.error(( localize(
|
|
998
|
-
|
|
1019
|
+
12586,
|
|
999
1020
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1000
1021
|
)));
|
|
1001
1022
|
continue;
|
|
@@ -1003,7 +1024,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1003
1024
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1004
1025
|
if (!submenu) {
|
|
1005
1026
|
collector.error(( localize(
|
|
1006
|
-
|
|
1027
|
+
12587,
|
|
1007
1028
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1008
1029
|
menuItem.submenu
|
|
1009
1030
|
)));
|
|
@@ -1016,7 +1037,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1016
1037
|
}
|
|
1017
1038
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1018
1039
|
collector.warn(( localize(
|
|
1019
|
-
|
|
1040
|
+
12588,
|
|
1020
1041
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1021
1042
|
menuItem.submenu,
|
|
1022
1043
|
entry[0]
|
|
@@ -1038,7 +1059,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1038
1059
|
}
|
|
1039
1060
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes('viewContainer == workbench.view.debug')) {
|
|
1040
1061
|
collector.error(( localize(
|
|
1041
|
-
|
|
1062
|
+
12589,
|
|
1042
1063
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1043
1064
|
'`viewContainer/title`',
|
|
1044
1065
|
'`viewContainer == workbench.view.debug`',
|
|
@@ -1125,10 +1146,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1125
1146
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1126
1147
|
}
|
|
1127
1148
|
const headers = [
|
|
1128
|
-
( localize(
|
|
1129
|
-
( localize(
|
|
1130
|
-
( localize(
|
|
1131
|
-
( localize(
|
|
1149
|
+
( localize(12590, "ID")),
|
|
1150
|
+
( localize(12591, "Title")),
|
|
1151
|
+
( localize(12592, "Keyboard Shortcuts")),
|
|
1152
|
+
( localize(12593, "Menu Contexts"))
|
|
1132
1153
|
];
|
|
1133
1154
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1134
1155
|
.map(command => {
|
|
@@ -1168,7 +1189,7 @@ CommandsTableRenderer = ( __decorate([
|
|
|
1168
1189
|
], CommandsTableRenderer));
|
|
1169
1190
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1170
1191
|
id: 'commands',
|
|
1171
|
-
label: ( localize(
|
|
1192
|
+
label: ( localize(12594, "Commands")),
|
|
1172
1193
|
access: {
|
|
1173
1194
|
canToggle: false,
|
|
1174
1195
|
},
|