@codingame/monaco-vscode-keybindings-service-override 23.3.0 → 24.1.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 +1 -1
- package/package.json +3 -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 +6 -6
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +156 -144
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +26 -26
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +3 -3
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingIO.d.ts +1 -1
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingIO.js +1 -1
- package/vscode/src/vs/workbench/services/keybinding/common/keymapInfo.d.ts +1 -1
- package/vscode/src/vs/workbench/services/keybinding/common/keymapInfo.js +1 -1
- package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.d.ts +1 -1
- package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +2 -2
- package/vscode/src/vs/workbench/services/keybinding/common/windowsKeyboardMapper.d.ts +1 -1
|
@@ -21,231 +21,231 @@ const apiMenus = [
|
|
|
21
21
|
{
|
|
22
22
|
key: 'commandPalette',
|
|
23
23
|
id: MenuId.CommandPalette,
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(13530, "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(13531, "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(13532, "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(13533, "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(13534, "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(13535, "'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(13536, "'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(13537, "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(13538, "'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(13539, "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(13540, "'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(13541, "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(13542, "The debug variables view context menu"))
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
key: 'debug/watch/context',
|
|
93
93
|
id: MenuId.DebugWatchContext,
|
|
94
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(13543, "The debug watch view context menu"))
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
key: 'debug/toolBar',
|
|
98
98
|
id: MenuId.DebugToolBar,
|
|
99
|
-
description: ( localize(
|
|
99
|
+
description: ( localize(13544, "The debug toolbar menu"))
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
key: 'debug/createConfiguration',
|
|
103
103
|
id: MenuId.DebugCreateConfiguration,
|
|
104
104
|
proposed: 'contribDebugCreateConfiguration',
|
|
105
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(13545, "The debug create configuration menu"))
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
key: 'notebook/variables/context',
|
|
109
109
|
id: MenuId.NotebookVariablesContext,
|
|
110
|
-
description: ( localize(
|
|
110
|
+
description: ( localize(13546, "The notebook variables view context menu"))
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
key: 'menuBar/home',
|
|
114
114
|
id: MenuId.MenubarHomeMenu,
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(13547, "The home indicator context menu (web only)")),
|
|
116
116
|
proposed: 'contribMenuBarHome',
|
|
117
117
|
supportsSubmenus: false
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
key: 'menuBar/edit/copy',
|
|
121
121
|
id: MenuId.MenubarCopy,
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(13548, "'Copy as' submenu in the top level Edit menu"))
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
key: 'scm/title',
|
|
126
126
|
id: MenuId.SCMTitle,
|
|
127
|
-
description: ( localize(
|
|
127
|
+
description: ( localize(13549, "The Source Control title menu"))
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
key: 'scm/sourceControl',
|
|
131
131
|
id: MenuId.SCMSourceControl,
|
|
132
|
-
description: ( localize(
|
|
132
|
+
description: ( localize(13550, "The Source Control menu"))
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
key: 'scm/repositories/title',
|
|
136
136
|
id: MenuId.SCMSourceControlTitle,
|
|
137
|
-
description: ( localize(
|
|
137
|
+
description: ( localize(13551, "The Source Control Repositories title menu")),
|
|
138
138
|
proposed: 'contribSourceControlTitleMenu'
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
key: 'scm/repository',
|
|
142
142
|
id: MenuId.SCMSourceControlInline,
|
|
143
|
-
description: ( localize(
|
|
143
|
+
description: ( localize(13552, "The Source Control repository menu")),
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
key: 'scm/resourceState/context',
|
|
147
147
|
id: MenuId.SCMResourceContext,
|
|
148
|
-
description: ( localize(
|
|
148
|
+
description: ( localize(13553, "The Source Control resource state context menu"))
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
key: 'scm/resourceFolder/context',
|
|
152
152
|
id: MenuId.SCMResourceFolderContext,
|
|
153
|
-
description: ( localize(
|
|
153
|
+
description: ( localize(13554, "The Source Control resource folder context menu"))
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
key: 'scm/resourceGroup/context',
|
|
157
157
|
id: MenuId.SCMResourceGroupContext,
|
|
158
|
-
description: ( localize(
|
|
158
|
+
description: ( localize(13555, "The Source Control resource group context menu"))
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
key: 'scm/change/title',
|
|
162
162
|
id: MenuId.SCMChangeContext,
|
|
163
|
-
description: ( localize(
|
|
163
|
+
description: ( localize(13556, "The Source Control inline change menu"))
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
key: 'scm/inputBox',
|
|
167
167
|
id: MenuId.SCMInputBox,
|
|
168
|
-
description: ( localize(
|
|
168
|
+
description: ( localize(13557, "The Source Control input box menu")),
|
|
169
169
|
proposed: 'contribSourceControlInputBoxMenu'
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
key: 'scm/history/title',
|
|
173
173
|
id: MenuId.SCMHistoryTitle,
|
|
174
|
-
description: ( localize(
|
|
174
|
+
description: ( localize(13558, "The Source Control History title menu")),
|
|
175
175
|
proposed: 'contribSourceControlHistoryTitleMenu'
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
key: 'scm/historyItem/context',
|
|
179
179
|
id: MenuId.SCMHistoryItemContext,
|
|
180
|
-
description: ( localize(
|
|
180
|
+
description: ( localize(13559, "The Source Control history item context menu")),
|
|
181
181
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
key: 'scm/historyItemRef/context',
|
|
185
185
|
id: MenuId.SCMHistoryItemRefContext,
|
|
186
|
-
description: ( localize(
|
|
186
|
+
description: ( localize(13560, "The Source Control history item reference context menu")),
|
|
187
187
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
key: 'scm/artifactGroup/context',
|
|
191
191
|
id: MenuId.SCMArtifactGroupContext,
|
|
192
|
-
description: ( localize(
|
|
192
|
+
description: ( localize(13561, "The Source Control artifact group context menu")),
|
|
193
193
|
proposed: 'contribSourceControlArtifactGroupMenu'
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
key: 'scm/artifact/context',
|
|
197
197
|
id: MenuId.SCMArtifactContext,
|
|
198
|
-
description: ( localize(
|
|
198
|
+
description: ( localize(13562, "The Source Control artifact context menu")),
|
|
199
199
|
proposed: 'contribSourceControlArtifactMenu'
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
key: 'statusBar/remoteIndicator',
|
|
203
203
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
204
|
-
description: ( localize(
|
|
204
|
+
description: ( localize(13563, "The remote indicator menu in the status bar")),
|
|
205
205
|
supportsSubmenus: false
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
key: 'terminal/context',
|
|
209
209
|
id: MenuId.TerminalInstanceContext,
|
|
210
|
-
description: ( localize(
|
|
210
|
+
description: ( localize(13564, "The terminal context menu"))
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
key: 'terminal/title/context',
|
|
214
214
|
id: MenuId.TerminalTabContext,
|
|
215
|
-
description: ( localize(
|
|
215
|
+
description: ( localize(13565, "The terminal tabs context menu"))
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
key: 'view/title',
|
|
219
219
|
id: MenuId.ViewTitle,
|
|
220
|
-
description: ( localize(
|
|
220
|
+
description: ( localize(13566, "The contributed view title menu"))
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
key: 'viewContainer/title',
|
|
224
224
|
id: MenuId.ViewContainerTitle,
|
|
225
|
-
description: ( localize(
|
|
225
|
+
description: ( localize(13567, "The contributed view container title menu")),
|
|
226
226
|
proposed: 'contribViewContainerTitle'
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
key: 'view/item/context',
|
|
230
230
|
id: MenuId.ViewItemContext,
|
|
231
|
-
description: ( localize(
|
|
231
|
+
description: ( localize(13568, "The contributed view item context menu"))
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
key: 'comments/comment/editorActions',
|
|
235
235
|
id: MenuId.CommentEditorActions,
|
|
236
|
-
description: ( localize(
|
|
236
|
+
description: ( localize(13569, "The contributed comment editor actions")),
|
|
237
237
|
proposed: 'contribCommentEditorActionsMenu'
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
240
|
key: 'comments/commentThread/title',
|
|
241
241
|
id: MenuId.CommentThreadTitle,
|
|
242
|
-
description: ( localize(
|
|
242
|
+
description: ( localize(13570, "The contributed comment thread title menu"))
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
245
|
key: 'comments/commentThread/context',
|
|
246
246
|
id: MenuId.CommentThreadActions,
|
|
247
247
|
description: ( localize(
|
|
248
|
-
|
|
248
|
+
13571,
|
|
249
249
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
250
250
|
)),
|
|
251
251
|
supportsSubmenus: false
|
|
@@ -254,7 +254,7 @@ const apiMenus = [
|
|
|
254
254
|
key: 'comments/commentThread/additionalActions',
|
|
255
255
|
id: MenuId.CommentThreadAdditionalActions,
|
|
256
256
|
description: ( localize(
|
|
257
|
-
|
|
257
|
+
13571,
|
|
258
258
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
259
259
|
)),
|
|
260
260
|
supportsSubmenus: true,
|
|
@@ -264,7 +264,7 @@ const apiMenus = [
|
|
|
264
264
|
key: 'comments/commentThread/title/context',
|
|
265
265
|
id: MenuId.CommentThreadTitleContext,
|
|
266
266
|
description: ( localize(
|
|
267
|
-
|
|
267
|
+
13572,
|
|
268
268
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
269
269
|
)),
|
|
270
270
|
proposed: 'contribCommentPeekContext'
|
|
@@ -272,13 +272,13 @@ const apiMenus = [
|
|
|
272
272
|
{
|
|
273
273
|
key: 'comments/comment/title',
|
|
274
274
|
id: MenuId.CommentTitle,
|
|
275
|
-
description: ( localize(
|
|
275
|
+
description: ( localize(13573, "The contributed comment title menu"))
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
key: 'comments/comment/context',
|
|
279
279
|
id: MenuId.CommentActions,
|
|
280
280
|
description: ( localize(
|
|
281
|
-
|
|
281
|
+
13574,
|
|
282
282
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
283
283
|
)),
|
|
284
284
|
supportsSubmenus: false
|
|
@@ -287,7 +287,7 @@ const apiMenus = [
|
|
|
287
287
|
key: 'comments/commentThread/comment/context',
|
|
288
288
|
id: MenuId.CommentThreadCommentContext,
|
|
289
289
|
description: ( localize(
|
|
290
|
-
|
|
290
|
+
13575,
|
|
291
291
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
292
292
|
)),
|
|
293
293
|
proposed: 'contribCommentPeekContext'
|
|
@@ -295,113 +295,113 @@ const apiMenus = [
|
|
|
295
295
|
{
|
|
296
296
|
key: 'commentsView/commentThread/context',
|
|
297
297
|
id: MenuId.CommentsViewThreadActions,
|
|
298
|
-
description: ( localize(
|
|
298
|
+
description: ( localize(13576, "The contributed comment thread context menu in the comments view")),
|
|
299
299
|
proposed: 'contribCommentsViewThreadMenus'
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
key: 'notebook/toolbar',
|
|
303
303
|
id: MenuId.NotebookToolbar,
|
|
304
|
-
description: ( localize(
|
|
304
|
+
description: ( localize(13577, "The contributed notebook toolbar menu"))
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
key: 'notebook/kernelSource',
|
|
308
308
|
id: MenuId.NotebookKernelSource,
|
|
309
|
-
description: ( localize(
|
|
309
|
+
description: ( localize(13578, "The contributed notebook kernel sources menu")),
|
|
310
310
|
proposed: 'notebookKernelSource'
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
313
|
key: 'notebook/cell/title',
|
|
314
314
|
id: MenuId.NotebookCellTitle,
|
|
315
|
-
description: ( localize(
|
|
315
|
+
description: ( localize(13579, "The contributed notebook cell title menu"))
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
key: 'notebook/cell/execute',
|
|
319
319
|
id: MenuId.NotebookCellExecute,
|
|
320
|
-
description: ( localize(
|
|
320
|
+
description: ( localize(13580, "The contributed notebook cell execution menu"))
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
323
|
key: 'interactive/toolbar',
|
|
324
324
|
id: MenuId.InteractiveToolbar,
|
|
325
|
-
description: ( localize(
|
|
325
|
+
description: ( localize(13581, "The contributed interactive toolbar menu")),
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
key: 'interactive/cell/title',
|
|
329
329
|
id: MenuId.InteractiveCellTitle,
|
|
330
|
-
description: ( localize(
|
|
330
|
+
description: ( localize(13582, "The contributed interactive cell title menu")),
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
key: 'issue/reporter',
|
|
334
334
|
id: MenuId.IssueReporter,
|
|
335
|
-
description: ( localize(
|
|
335
|
+
description: ( localize(13583, "The contributed issue reporter menu"))
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
key: 'testing/item/context',
|
|
339
339
|
id: MenuId.TestItem,
|
|
340
|
-
description: ( localize(
|
|
340
|
+
description: ( localize(13584, "The contributed test item menu")),
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
key: 'testing/item/gutter',
|
|
344
344
|
id: MenuId.TestItemGutter,
|
|
345
|
-
description: ( localize(
|
|
345
|
+
description: ( localize(13585, "The menu for a gutter decoration for a test item")),
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
key: 'testing/profiles/context',
|
|
349
349
|
id: MenuId.TestProfilesContext,
|
|
350
|
-
description: ( localize(
|
|
350
|
+
description: ( localize(13586, "The menu for configuring testing profiles.")),
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
key: 'testing/item/result',
|
|
354
354
|
id: MenuId.TestPeekElement,
|
|
355
|
-
description: ( localize(
|
|
355
|
+
description: ( localize(13587, "The menu for an item in the Test Results view or peek.")),
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
key: 'testing/message/context',
|
|
359
359
|
id: MenuId.TestMessageContext,
|
|
360
360
|
description: ( localize(
|
|
361
|
-
|
|
361
|
+
13588,
|
|
362
362
|
"A prominent button overlaying editor content where the message is displayed"
|
|
363
363
|
)),
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
key: 'testing/message/content',
|
|
367
367
|
id: MenuId.TestMessageContent,
|
|
368
|
-
description: ( localize(
|
|
368
|
+
description: ( localize(13589, "Context menu for the message in the results tree")),
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
371
|
key: 'extension/context',
|
|
372
372
|
id: MenuId.ExtensionContext,
|
|
373
|
-
description: ( localize(
|
|
373
|
+
description: ( localize(13590, "The extension context menu"))
|
|
374
374
|
},
|
|
375
375
|
{
|
|
376
376
|
key: 'timeline/title',
|
|
377
377
|
id: MenuId.TimelineTitle,
|
|
378
|
-
description: ( localize(
|
|
378
|
+
description: ( localize(13591, "The Timeline view title menu"))
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
381
|
key: 'timeline/item/context',
|
|
382
382
|
id: MenuId.TimelineItemContext,
|
|
383
|
-
description: ( localize(
|
|
383
|
+
description: ( localize(13592, "The Timeline view item context menu"))
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
386
|
key: 'ports/item/context',
|
|
387
387
|
id: MenuId.TunnelContext,
|
|
388
|
-
description: ( localize(
|
|
388
|
+
description: ( localize(13593, "The Ports view item context menu"))
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
391
|
key: 'ports/item/origin/inline',
|
|
392
392
|
id: MenuId.TunnelOriginInline,
|
|
393
|
-
description: ( localize(
|
|
393
|
+
description: ( localize(13594, "The Ports view item origin inline menu"))
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
396
|
key: 'ports/item/port/inline',
|
|
397
397
|
id: MenuId.TunnelPortInline,
|
|
398
|
-
description: ( localize(
|
|
398
|
+
description: ( localize(13595, "The Ports view item port inline menu"))
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
key: 'file/newFile',
|
|
402
402
|
id: MenuId.NewFile,
|
|
403
403
|
description: ( localize(
|
|
404
|
-
|
|
404
|
+
13596,
|
|
405
405
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
406
406
|
)),
|
|
407
407
|
supportsSubmenus: false,
|
|
@@ -409,89 +409,101 @@ const apiMenus = [
|
|
|
409
409
|
{
|
|
410
410
|
key: 'webview/context',
|
|
411
411
|
id: MenuId.WebviewContext,
|
|
412
|
-
description: ( localize(
|
|
412
|
+
description: ( localize(13597, "The webview context menu"))
|
|
413
413
|
},
|
|
414
414
|
{
|
|
415
415
|
key: 'file/share',
|
|
416
416
|
id: MenuId.MenubarShare,
|
|
417
|
-
description: ( localize(
|
|
417
|
+
description: ( localize(13598, "Share submenu shown in the top level File menu.")),
|
|
418
418
|
proposed: 'contribShareMenu'
|
|
419
419
|
},
|
|
420
420
|
{
|
|
421
421
|
key: 'editor/inlineCompletions/actions',
|
|
422
422
|
id: MenuId.InlineCompletionsActions,
|
|
423
|
-
description: ( localize(
|
|
423
|
+
description: ( localize(13599, "The actions shown when hovering on an inline completion")),
|
|
424
424
|
supportsSubmenus: false,
|
|
425
425
|
proposed: 'inlineCompletionsAdditions'
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
428
|
key: 'editor/content',
|
|
429
429
|
id: MenuId.EditorContent,
|
|
430
|
-
description: ( localize(
|
|
430
|
+
description: ( localize(13600, "The prominent button in an editor, overlays its content")),
|
|
431
431
|
proposed: 'contribEditorContentMenu'
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
434
|
key: 'editor/lineNumber/context',
|
|
435
435
|
id: MenuId.EditorLineNumberContext,
|
|
436
|
-
description: ( localize(
|
|
436
|
+
description: ( localize(13601, "The contributed editor line number context menu"))
|
|
437
437
|
},
|
|
438
438
|
{
|
|
439
439
|
key: 'mergeEditor/result/title',
|
|
440
440
|
id: MenuId.MergeInputResultToolbar,
|
|
441
|
-
description: ( localize(
|
|
441
|
+
description: ( localize(13602, "The result toolbar of the merge editor")),
|
|
442
442
|
proposed: 'contribMergeEditorMenus'
|
|
443
443
|
},
|
|
444
|
+
{
|
|
445
|
+
key: 'multiDiffEditor/content',
|
|
446
|
+
id: MenuId.MultiDiffEditorContent,
|
|
447
|
+
description: ( localize(13603, "A prominent button overlaying the multi diff editor")),
|
|
448
|
+
proposed: 'contribEditorContentMenu'
|
|
449
|
+
},
|
|
444
450
|
{
|
|
445
451
|
key: 'multiDiffEditor/resource/title',
|
|
446
452
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
447
|
-
description: ( localize(
|
|
453
|
+
description: ( localize(13604, "The resource toolbar in the multi diff editor")),
|
|
448
454
|
proposed: 'contribMultiDiffEditorMenus'
|
|
449
455
|
},
|
|
450
456
|
{
|
|
451
457
|
key: 'diffEditor/gutter/hunk',
|
|
452
458
|
id: MenuId.DiffEditorHunkToolbar,
|
|
453
|
-
description: ( localize(
|
|
459
|
+
description: ( localize(13605, "The gutter toolbar in the diff editor")),
|
|
454
460
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
455
461
|
},
|
|
456
462
|
{
|
|
457
463
|
key: 'diffEditor/gutter/selection',
|
|
458
464
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
459
|
-
description: ( localize(
|
|
465
|
+
description: ( localize(13605, "The gutter toolbar in the diff editor")),
|
|
460
466
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
461
467
|
},
|
|
462
468
|
{
|
|
463
469
|
key: 'searchPanel/aiResults/commands',
|
|
464
470
|
id: MenuId.SearchActionMenu,
|
|
465
471
|
description: ( localize(
|
|
466
|
-
|
|
472
|
+
13606,
|
|
467
473
|
"The commands that will contribute to the menu rendered as buttons next to the AI search title"
|
|
468
474
|
)),
|
|
469
475
|
},
|
|
470
476
|
{
|
|
471
477
|
key: 'editor/context/chat',
|
|
472
478
|
id: MenuId.ChatTextEditorMenu,
|
|
473
|
-
description: ( localize(
|
|
479
|
+
description: ( localize(13607, "The Chat submenu in the text editor context menu.")),
|
|
474
480
|
supportsSubmenus: false,
|
|
475
481
|
proposed: 'chatParticipantPrivate'
|
|
476
482
|
},
|
|
483
|
+
{
|
|
484
|
+
key: 'chat/input/editing/sessionToolbar',
|
|
485
|
+
id: MenuId.ChatEditingSessionChangesToolbar,
|
|
486
|
+
description: ( localize(13608, "The Chat Editing widget toolbar menu for session changes.")),
|
|
487
|
+
proposed: 'chatSessionsProvider'
|
|
488
|
+
},
|
|
477
489
|
{
|
|
478
490
|
key: 'chat/chatSessions',
|
|
479
|
-
id: MenuId.
|
|
480
|
-
description: ( localize(
|
|
491
|
+
id: MenuId.AgentSessionsContext,
|
|
492
|
+
description: ( localize(13609, "The Chat Sessions menu.")),
|
|
481
493
|
supportsSubmenus: false,
|
|
482
494
|
proposed: 'chatSessionsProvider'
|
|
483
495
|
},
|
|
484
496
|
{
|
|
485
497
|
key: 'chatSessions/newSession',
|
|
486
|
-
id: MenuId.
|
|
487
|
-
description: ( localize(
|
|
498
|
+
id: MenuId.AgentSessionsCreateSubMenu,
|
|
499
|
+
description: ( localize(13610, "Menu for new chat sessions.")),
|
|
488
500
|
supportsSubmenus: false,
|
|
489
501
|
proposed: 'chatSessionsProvider'
|
|
490
502
|
},
|
|
491
503
|
{
|
|
492
504
|
key: 'chat/multiDiff/context',
|
|
493
505
|
id: MenuId.ChatMultiDiffContext,
|
|
494
|
-
description: ( localize(
|
|
506
|
+
description: ( localize(13611, "The Chat Multi-Diff context menu.")),
|
|
495
507
|
supportsSubmenus: false,
|
|
496
508
|
proposed: 'chatSessionsProvider',
|
|
497
509
|
},
|
|
@@ -505,23 +517,23 @@ var schema;
|
|
|
505
517
|
function isValidMenuItem(item, collector) {
|
|
506
518
|
if (typeof item.command !== 'string') {
|
|
507
519
|
collector.error(( localize(
|
|
508
|
-
|
|
520
|
+
13612,
|
|
509
521
|
"property `{0}` is mandatory and must be of type `string`",
|
|
510
522
|
'command'
|
|
511
523
|
)));
|
|
512
524
|
return false;
|
|
513
525
|
}
|
|
514
526
|
if (item.alt && typeof item.alt !== 'string') {
|
|
515
|
-
collector.error(( localize(
|
|
527
|
+
collector.error(( localize(13613, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
516
528
|
return false;
|
|
517
529
|
}
|
|
518
530
|
if (item.when && typeof item.when !== 'string') {
|
|
519
|
-
collector.error(( localize(
|
|
531
|
+
collector.error(( localize(13613, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
520
532
|
return false;
|
|
521
533
|
}
|
|
522
534
|
if (item.group && typeof item.group !== 'string') {
|
|
523
535
|
collector.error(( localize(
|
|
524
|
-
|
|
536
|
+
13613,
|
|
525
537
|
"property `{0}` can be omitted or must be of type `string`",
|
|
526
538
|
'group'
|
|
527
539
|
)));
|
|
@@ -533,19 +545,19 @@ var schema;
|
|
|
533
545
|
function isValidSubmenuItem(item, collector) {
|
|
534
546
|
if (typeof item.submenu !== 'string') {
|
|
535
547
|
collector.error(( localize(
|
|
536
|
-
|
|
548
|
+
13612,
|
|
537
549
|
"property `{0}` is mandatory and must be of type `string`",
|
|
538
550
|
'submenu'
|
|
539
551
|
)));
|
|
540
552
|
return false;
|
|
541
553
|
}
|
|
542
554
|
if (item.when && typeof item.when !== 'string') {
|
|
543
|
-
collector.error(( localize(
|
|
555
|
+
collector.error(( localize(13613, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
544
556
|
return false;
|
|
545
557
|
}
|
|
546
558
|
if (item.group && typeof item.group !== 'string') {
|
|
547
559
|
collector.error(( localize(
|
|
548
|
-
|
|
560
|
+
13613,
|
|
549
561
|
"property `{0}` can be omitted or must be of type `string`",
|
|
550
562
|
'group'
|
|
551
563
|
)));
|
|
@@ -556,7 +568,7 @@ var schema;
|
|
|
556
568
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
557
569
|
function isValidItems(items, collector) {
|
|
558
570
|
if (!Array.isArray(items)) {
|
|
559
|
-
collector.error(( localize(
|
|
571
|
+
collector.error(( localize(13614, "submenu items must be an array")));
|
|
560
572
|
return false;
|
|
561
573
|
}
|
|
562
574
|
for (const item of items) {
|
|
@@ -576,15 +588,15 @@ var schema;
|
|
|
576
588
|
schema.isValidItems = isValidItems;
|
|
577
589
|
function isValidSubmenu(submenu, collector) {
|
|
578
590
|
if (typeof submenu !== 'object') {
|
|
579
|
-
collector.error(( localize(
|
|
591
|
+
collector.error(( localize(13615, "submenu items must be an object")));
|
|
580
592
|
return false;
|
|
581
593
|
}
|
|
582
594
|
if (typeof submenu.id !== 'string') {
|
|
583
|
-
collector.error(( localize(
|
|
595
|
+
collector.error(( localize(13612, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
584
596
|
return false;
|
|
585
597
|
}
|
|
586
598
|
if (typeof submenu.label !== 'string') {
|
|
587
|
-
collector.error(( localize(
|
|
599
|
+
collector.error(( localize(13612, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
588
600
|
return false;
|
|
589
601
|
}
|
|
590
602
|
return true;
|
|
@@ -596,24 +608,24 @@ var schema;
|
|
|
596
608
|
properties: {
|
|
597
609
|
command: {
|
|
598
610
|
description: ( localize(
|
|
599
|
-
|
|
611
|
+
13616,
|
|
600
612
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
601
613
|
)),
|
|
602
614
|
type: 'string'
|
|
603
615
|
},
|
|
604
616
|
alt: {
|
|
605
617
|
description: ( localize(
|
|
606
|
-
|
|
618
|
+
13617,
|
|
607
619
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
608
620
|
)),
|
|
609
621
|
type: 'string'
|
|
610
622
|
},
|
|
611
623
|
when: {
|
|
612
|
-
description: ( localize(
|
|
624
|
+
description: ( localize(13618, 'Condition which must be true to show this item')),
|
|
613
625
|
type: 'string'
|
|
614
626
|
},
|
|
615
627
|
group: {
|
|
616
|
-
description: ( localize(
|
|
628
|
+
description: ( localize(13619, 'Group into which this item belongs')),
|
|
617
629
|
type: 'string'
|
|
618
630
|
}
|
|
619
631
|
}
|
|
@@ -623,15 +635,15 @@ var schema;
|
|
|
623
635
|
required: ['submenu'],
|
|
624
636
|
properties: {
|
|
625
637
|
submenu: {
|
|
626
|
-
description: ( localize(
|
|
638
|
+
description: ( localize(13620, 'Identifier of the submenu to display in this item.')),
|
|
627
639
|
type: 'string'
|
|
628
640
|
},
|
|
629
641
|
when: {
|
|
630
|
-
description: ( localize(
|
|
642
|
+
description: ( localize(13618, 'Condition which must be true to show this item')),
|
|
631
643
|
type: 'string'
|
|
632
644
|
},
|
|
633
645
|
group: {
|
|
634
|
-
description: ( localize(
|
|
646
|
+
description: ( localize(13619, 'Group into which this item belongs')),
|
|
635
647
|
type: 'string'
|
|
636
648
|
}
|
|
637
649
|
}
|
|
@@ -641,16 +653,16 @@ var schema;
|
|
|
641
653
|
required: ['id', 'label'],
|
|
642
654
|
properties: {
|
|
643
655
|
id: {
|
|
644
|
-
description: ( localize(
|
|
656
|
+
description: ( localize(13621, 'Identifier of the menu to display as a submenu.')),
|
|
645
657
|
type: 'string'
|
|
646
658
|
},
|
|
647
659
|
label: {
|
|
648
|
-
description: ( localize(
|
|
660
|
+
description: ( localize(13622, 'The label of the menu item which leads to this submenu.')),
|
|
649
661
|
type: 'string'
|
|
650
662
|
},
|
|
651
663
|
icon: {
|
|
652
664
|
description: ( localize(
|
|
653
|
-
|
|
665
|
+
13623,
|
|
654
666
|
'(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)"'
|
|
655
667
|
)),
|
|
656
668
|
anyOf: [{
|
|
@@ -660,11 +672,11 @@ var schema;
|
|
|
660
672
|
type: 'object',
|
|
661
673
|
properties: {
|
|
662
674
|
light: {
|
|
663
|
-
description: ( localize(
|
|
675
|
+
description: ( localize(13624, 'Icon path when a light theme is used')),
|
|
664
676
|
type: 'string'
|
|
665
677
|
},
|
|
666
678
|
dark: {
|
|
667
|
-
description: ( localize(
|
|
679
|
+
description: ( localize(13625, 'Icon path when a dark theme is used')),
|
|
668
680
|
type: 'string'
|
|
669
681
|
}
|
|
670
682
|
}
|
|
@@ -673,11 +685,11 @@ var schema;
|
|
|
673
685
|
}
|
|
674
686
|
};
|
|
675
687
|
schema.menusContribution = {
|
|
676
|
-
description: ( localize(
|
|
688
|
+
description: ( localize(13626, "Contributes menu items to the editor")),
|
|
677
689
|
type: 'object',
|
|
678
690
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
679
691
|
markdownDescription: menu.proposed ? ( localize(
|
|
680
|
-
|
|
692
|
+
13627,
|
|
681
693
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
682
694
|
menu.proposed,
|
|
683
695
|
menu.description
|
|
@@ -692,18 +704,18 @@ var schema;
|
|
|
692
704
|
}
|
|
693
705
|
};
|
|
694
706
|
schema.submenusContribution = {
|
|
695
|
-
description: ( localize(
|
|
707
|
+
description: ( localize(13628, "Contributes submenu items to the editor")),
|
|
696
708
|
type: 'array',
|
|
697
709
|
items: submenu
|
|
698
710
|
};
|
|
699
711
|
function isValidCommand(command, collector) {
|
|
700
712
|
if (!command) {
|
|
701
|
-
collector.error(( localize(
|
|
713
|
+
collector.error(( localize(13629, "expected non-empty value.")));
|
|
702
714
|
return false;
|
|
703
715
|
}
|
|
704
716
|
if (isFalsyOrWhitespace(command.command)) {
|
|
705
717
|
collector.error(( localize(
|
|
706
|
-
|
|
718
|
+
13612,
|
|
707
719
|
"property `{0}` is mandatory and must be of type `string`",
|
|
708
720
|
'command'
|
|
709
721
|
)));
|
|
@@ -717,7 +729,7 @@ var schema;
|
|
|
717
729
|
}
|
|
718
730
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
719
731
|
collector.error(( localize(
|
|
720
|
-
|
|
732
|
+
13613,
|
|
721
733
|
"property `{0}` can be omitted or must be of type `string`",
|
|
722
734
|
'precondition'
|
|
723
735
|
)));
|
|
@@ -743,7 +755,7 @@ var schema;
|
|
|
743
755
|
return true;
|
|
744
756
|
}
|
|
745
757
|
collector.error(( localize(
|
|
746
|
-
|
|
758
|
+
13630,
|
|
747
759
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
748
760
|
)));
|
|
749
761
|
return false;
|
|
@@ -751,7 +763,7 @@ var schema;
|
|
|
751
763
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
752
764
|
if (typeof localized === 'undefined') {
|
|
753
765
|
collector.error(( localize(
|
|
754
|
-
|
|
766
|
+
13631,
|
|
755
767
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
756
768
|
propertyName
|
|
757
769
|
)));
|
|
@@ -759,7 +771,7 @@ var schema;
|
|
|
759
771
|
}
|
|
760
772
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
761
773
|
collector.error(( localize(
|
|
762
|
-
|
|
774
|
+
13612,
|
|
763
775
|
"property `{0}` is mandatory and must be of type `string`",
|
|
764
776
|
propertyName
|
|
765
777
|
)));
|
|
@@ -767,7 +779,7 @@ var schema;
|
|
|
767
779
|
}
|
|
768
780
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
769
781
|
collector.error(( localize(
|
|
770
|
-
|
|
782
|
+
13632,
|
|
771
783
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
772
784
|
`${propertyName}.value`,
|
|
773
785
|
`${propertyName}.original`
|
|
@@ -781,37 +793,37 @@ var schema;
|
|
|
781
793
|
required: ['command', 'title'],
|
|
782
794
|
properties: {
|
|
783
795
|
command: {
|
|
784
|
-
description: ( localize(
|
|
796
|
+
description: ( localize(13633, 'Identifier of the command to execute')),
|
|
785
797
|
type: 'string'
|
|
786
798
|
},
|
|
787
799
|
title: {
|
|
788
|
-
description: ( localize(
|
|
800
|
+
description: ( localize(13634, 'Title by which the command is represented in the UI')),
|
|
789
801
|
type: 'string'
|
|
790
802
|
},
|
|
791
803
|
shortTitle: {
|
|
792
804
|
markdownDescription: ( localize(
|
|
793
|
-
|
|
805
|
+
13635,
|
|
794
806
|
'(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.'
|
|
795
807
|
)),
|
|
796
808
|
type: 'string'
|
|
797
809
|
},
|
|
798
810
|
category: {
|
|
799
811
|
description: ( localize(
|
|
800
|
-
|
|
812
|
+
13636,
|
|
801
813
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
802
814
|
)),
|
|
803
815
|
type: 'string'
|
|
804
816
|
},
|
|
805
817
|
enablement: {
|
|
806
818
|
description: ( localize(
|
|
807
|
-
|
|
819
|
+
13637,
|
|
808
820
|
'(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.'
|
|
809
821
|
)),
|
|
810
822
|
type: 'string'
|
|
811
823
|
},
|
|
812
824
|
icon: {
|
|
813
825
|
description: ( localize(
|
|
814
|
-
|
|
826
|
+
13638,
|
|
815
827
|
'(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)"'
|
|
816
828
|
)),
|
|
817
829
|
anyOf: [{
|
|
@@ -821,11 +833,11 @@ var schema;
|
|
|
821
833
|
type: 'object',
|
|
822
834
|
properties: {
|
|
823
835
|
light: {
|
|
824
|
-
description: ( localize(
|
|
836
|
+
description: ( localize(13639, 'Icon path when a light theme is used')),
|
|
825
837
|
type: 'string'
|
|
826
838
|
},
|
|
827
839
|
dark: {
|
|
828
|
-
description: ( localize(
|
|
840
|
+
description: ( localize(13640, 'Icon path when a dark theme is used')),
|
|
829
841
|
type: 'string'
|
|
830
842
|
}
|
|
831
843
|
}
|
|
@@ -834,7 +846,7 @@ var schema;
|
|
|
834
846
|
}
|
|
835
847
|
};
|
|
836
848
|
schema.commandsContribution = {
|
|
837
|
-
description: ( localize(
|
|
849
|
+
description: ( localize(13641, "Contributes commands to the command palette.")),
|
|
838
850
|
oneOf: [
|
|
839
851
|
commandType,
|
|
840
852
|
{
|
|
@@ -878,7 +890,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
878
890
|
if (existingCmd) {
|
|
879
891
|
if (existingCmd.source) {
|
|
880
892
|
extension.collector.info(( localize(
|
|
881
|
-
|
|
893
|
+
13642,
|
|
882
894
|
"Command `{0}` already registered by {1} ({2})",
|
|
883
895
|
userFriendlyCommand.command,
|
|
884
896
|
existingCmd.source.title,
|
|
@@ -886,7 +898,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
886
898
|
)));
|
|
887
899
|
}
|
|
888
900
|
else {
|
|
889
|
-
extension.collector.info(( localize(
|
|
901
|
+
extension.collector.info(( localize(13643, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
890
902
|
}
|
|
891
903
|
}
|
|
892
904
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -927,19 +939,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
927
939
|
continue;
|
|
928
940
|
}
|
|
929
941
|
if (!submenuInfo.id) {
|
|
930
|
-
collector.warn(( localize(
|
|
942
|
+
collector.warn(( localize(13644, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
931
943
|
continue;
|
|
932
944
|
}
|
|
933
945
|
if (( _submenus.has(submenuInfo.id))) {
|
|
934
946
|
collector.info(( localize(
|
|
935
|
-
|
|
947
|
+
13645,
|
|
936
948
|
"The `{0}` submenu was already previously registered.",
|
|
937
949
|
submenuInfo.id
|
|
938
950
|
)));
|
|
939
951
|
continue;
|
|
940
952
|
}
|
|
941
953
|
if (!submenuInfo.label) {
|
|
942
|
-
collector.warn(( localize(
|
|
954
|
+
collector.warn(( localize(13646, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
943
955
|
continue;
|
|
944
956
|
}
|
|
945
957
|
let absoluteIcon;
|
|
@@ -996,7 +1008,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
996
1008
|
}
|
|
997
1009
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
998
1010
|
collector.error(( localize(
|
|
999
|
-
|
|
1011
|
+
13647,
|
|
1000
1012
|
"{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}",
|
|
1001
1013
|
entry[0],
|
|
1002
1014
|
menu.proposed,
|
|
@@ -1011,7 +1023,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1011
1023
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
1012
1024
|
if (!command) {
|
|
1013
1025
|
collector.error(( localize(
|
|
1014
|
-
|
|
1026
|
+
13648,
|
|
1015
1027
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
1016
1028
|
menuItem.command
|
|
1017
1029
|
)));
|
|
@@ -1019,20 +1031,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1019
1031
|
}
|
|
1020
1032
|
if (menuItem.alt && !alt) {
|
|
1021
1033
|
collector.warn(( localize(
|
|
1022
|
-
|
|
1034
|
+
13649,
|
|
1023
1035
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
1024
1036
|
menuItem.alt
|
|
1025
1037
|
)));
|
|
1026
1038
|
}
|
|
1027
1039
|
if (menuItem.command === menuItem.alt) {
|
|
1028
|
-
collector.info(( localize(
|
|
1040
|
+
collector.info(( localize(13650, "Menu item references the same command as default and alt-command")));
|
|
1029
1041
|
}
|
|
1030
1042
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
1031
1043
|
}
|
|
1032
1044
|
else {
|
|
1033
1045
|
if (menu.supportsSubmenus === false) {
|
|
1034
1046
|
collector.error(( localize(
|
|
1035
|
-
|
|
1047
|
+
13651,
|
|
1036
1048
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1037
1049
|
)));
|
|
1038
1050
|
continue;
|
|
@@ -1040,7 +1052,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1040
1052
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1041
1053
|
if (!submenu) {
|
|
1042
1054
|
collector.error(( localize(
|
|
1043
|
-
|
|
1055
|
+
13652,
|
|
1044
1056
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1045
1057
|
menuItem.submenu
|
|
1046
1058
|
)));
|
|
@@ -1053,7 +1065,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1053
1065
|
}
|
|
1054
1066
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1055
1067
|
collector.warn(( localize(
|
|
1056
|
-
|
|
1068
|
+
13653,
|
|
1057
1069
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1058
1070
|
menuItem.submenu,
|
|
1059
1071
|
entry[0]
|
|
@@ -1075,7 +1087,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1075
1087
|
}
|
|
1076
1088
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes('viewContainer == workbench.view.debug')) {
|
|
1077
1089
|
collector.error(( localize(
|
|
1078
|
-
|
|
1090
|
+
13654,
|
|
1079
1091
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1080
1092
|
'`viewContainer/title`',
|
|
1081
1093
|
'`viewContainer == workbench.view.debug`',
|
|
@@ -1162,10 +1174,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1162
1174
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1163
1175
|
}
|
|
1164
1176
|
const headers = [
|
|
1165
|
-
( localize(
|
|
1166
|
-
( localize(
|
|
1167
|
-
( localize(
|
|
1168
|
-
( localize(
|
|
1177
|
+
( localize(13655, "ID")),
|
|
1178
|
+
( localize(13656, "Title")),
|
|
1179
|
+
( localize(13657, "Keyboard Shortcuts")),
|
|
1180
|
+
( localize(13658, "Menu Contexts"))
|
|
1169
1181
|
];
|
|
1170
1182
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1171
1183
|
.map(command => {
|
|
@@ -1205,7 +1217,7 @@ CommandsTableRenderer = ( __decorate([
|
|
|
1205
1217
|
], CommandsTableRenderer));
|
|
1206
1218
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1207
1219
|
id: 'commands',
|
|
1208
|
-
label: ( localize(
|
|
1220
|
+
label: ( localize(13659, "Commands")),
|
|
1209
1221
|
access: {
|
|
1210
1222
|
canToggle: false,
|
|
1211
1223
|
},
|