@codingame/monaco-vscode-keybindings-service-override 9.0.3 → 10.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/keybindings.js +8 -2
- package/package.json +3 -3
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +11 -16
- package/vscode/src/vs/workbench/browser/contextkeys.js +16 -16
- 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/contrib/preferences/common/smartSnippetInserter.js +11 -11
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +134 -188
- package/vscode/src/vs/workbench/services/commands/common/commandService.js +0 -1
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +73 -75
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +6 -7
- package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +178 -175
- package/vscode/src/vs/workbench/services/keybinding/common/windowsKeyboardMapper.js +68 -70
|
@@ -20,257 +20,203 @@ const apiMenus = [
|
|
|
20
20
|
{
|
|
21
21
|
key: 'commandPalette',
|
|
22
22
|
id: MenuId.CommandPalette,
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(8663, "The Command Palette")),
|
|
24
24
|
supportsSubmenus: false
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
key: 'touchBar',
|
|
28
28
|
id: MenuId.TouchBarContext,
|
|
29
|
-
description: ( localize(
|
|
29
|
+
description: ( localize(8664, "The touch bar (macOS only)")),
|
|
30
30
|
supportsSubmenus: false
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
key: 'editor/title',
|
|
34
34
|
id: MenuId.EditorTitle,
|
|
35
|
-
description: ( localize(
|
|
35
|
+
description: ( localize(8665, "The editor title menu"))
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
key: 'editor/title/run',
|
|
39
39
|
id: MenuId.EditorTitleRun,
|
|
40
|
-
description: ( localize(
|
|
40
|
+
description: ( localize(8666, "Run submenu inside the editor title menu"))
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
key: 'editor/context',
|
|
44
44
|
id: MenuId.EditorContext,
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(8667, "The editor context menu"))
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
key: 'editor/context/copy',
|
|
49
49
|
id: MenuId.EditorContextCopy,
|
|
50
|
-
description: ( localize(
|
|
50
|
+
description: ( localize(8668, "'Copy as' submenu in the editor context menu"))
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
key: 'editor/context/share',
|
|
54
54
|
id: MenuId.EditorContextShare,
|
|
55
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(8669, "'Share' submenu in the editor context menu")),
|
|
56
56
|
proposed: 'contribShareMenu'
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
key: 'explorer/context',
|
|
60
60
|
id: MenuId.ExplorerContext,
|
|
61
|
-
description: ( localize(
|
|
61
|
+
description: ( localize(8670, "The file explorer context menu"))
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
key: 'explorer/context/share',
|
|
65
65
|
id: MenuId.ExplorerContextShare,
|
|
66
|
-
description: ( localize(
|
|
66
|
+
description: ( localize(8671, "'Share' submenu in the file explorer context menu")),
|
|
67
67
|
proposed: 'contribShareMenu'
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
key: 'editor/title/context',
|
|
71
71
|
id: MenuId.EditorTitleContext,
|
|
72
|
-
description: ( localize(
|
|
72
|
+
description: ( localize(8672, "The editor tabs context menu"))
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
key: 'editor/title/context/share',
|
|
76
76
|
id: MenuId.EditorTitleContextShare,
|
|
77
|
-
description: ( localize(
|
|
77
|
+
description: ( localize(8673, "'Share' submenu inside the editor title context menu")),
|
|
78
78
|
proposed: 'contribShareMenu'
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
key: 'debug/callstack/context',
|
|
82
82
|
id: MenuId.DebugCallStackContext,
|
|
83
|
-
description: ( localize(
|
|
83
|
+
description: ( localize(8674, "The debug callstack view context menu"))
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
key: 'debug/variables/context',
|
|
87
87
|
id: MenuId.DebugVariablesContext,
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(8675, "The debug variables view context menu"))
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
key: 'debug/toolBar',
|
|
92
92
|
id: MenuId.DebugToolBar,
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(8676, "The debug toolbar menu"))
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
key: 'debug/createConfiguration',
|
|
97
97
|
id: MenuId.DebugCreateConfiguration,
|
|
98
98
|
proposed: 'contribDebugCreateConfiguration',
|
|
99
|
-
description: ( localize(
|
|
99
|
+
description: ( localize(8677, "The debug create configuration menu"))
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
key: 'notebook/variables/context',
|
|
103
103
|
id: MenuId.NotebookVariablesContext,
|
|
104
|
-
description: ( localize(
|
|
104
|
+
description: ( localize(8678, "The notebook variables view context menu"))
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
key: 'menuBar/home',
|
|
108
108
|
id: MenuId.MenubarHomeMenu,
|
|
109
|
-
description: ( localize(
|
|
109
|
+
description: ( localize(8679, "The home indicator context menu (web only)")),
|
|
110
110
|
proposed: 'contribMenuBarHome',
|
|
111
111
|
supportsSubmenus: false
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
key: 'menuBar/edit/copy',
|
|
115
115
|
id: MenuId.MenubarCopy,
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(8680, "'Copy as' submenu in the top level Edit menu"))
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
key: 'scm/title',
|
|
120
120
|
id: MenuId.SCMTitle,
|
|
121
|
-
description: ( localize(
|
|
121
|
+
description: ( localize(8681, "The Source Control title menu"))
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
key: 'scm/sourceControl',
|
|
125
125
|
id: MenuId.SCMSourceControl,
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(8682, "The Source Control menu"))
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
key: 'scm/sourceControl/title',
|
|
130
130
|
id: MenuId.SCMSourceControlTitle,
|
|
131
|
-
description: ( localize(
|
|
131
|
+
description: ( localize(8683, "The Source Control title menu")),
|
|
132
132
|
proposed: 'contribSourceControlTitleMenu'
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
key: 'scm/resourceState/context',
|
|
136
136
|
id: MenuId.SCMResourceContext,
|
|
137
|
-
description: ( localize(
|
|
137
|
+
description: ( localize(8684, "The Source Control resource state context menu"))
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
key: 'scm/resourceFolder/context',
|
|
141
141
|
id: MenuId.SCMResourceFolderContext,
|
|
142
|
-
description: ( localize(
|
|
142
|
+
description: ( localize(8685, "The Source Control resource folder context menu"))
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
key: 'scm/resourceGroup/context',
|
|
146
146
|
id: MenuId.SCMResourceGroupContext,
|
|
147
|
-
description: ( localize(
|
|
147
|
+
description: ( localize(8686, "The Source Control resource group context menu"))
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
key: 'scm/change/title',
|
|
151
151
|
id: MenuId.SCMChangeContext,
|
|
152
|
-
description: ( localize(
|
|
152
|
+
description: ( localize(8687, "The Source Control inline change menu"))
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
key: 'scm/inputBox',
|
|
156
156
|
id: MenuId.SCMInputBox,
|
|
157
|
-
description: ( localize(
|
|
157
|
+
description: ( localize(8688, "The Source Control input box menu")),
|
|
158
158
|
proposed: 'contribSourceControlInputBoxMenu'
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
key: 'scm/history/title',
|
|
162
162
|
id: MenuId.SCMHistoryTitle,
|
|
163
|
-
description: ( localize(
|
|
163
|
+
description: ( localize(8689, "The Source Control History title menu")),
|
|
164
164
|
proposed: 'contribSourceControlHistoryTitleMenu'
|
|
165
165
|
},
|
|
166
|
-
{
|
|
167
|
-
key: 'scm/historyItemChanges/title',
|
|
168
|
-
id: MenuId.SCMChangesSeparator,
|
|
169
|
-
description: ( localize(8614, "The Source Control incoming/outgoing changes title menu")),
|
|
170
|
-
proposed: 'contribSourceControlHistoryItemChangesMenu'
|
|
171
|
-
},
|
|
172
166
|
{
|
|
173
167
|
key: 'scm/historyItem/context',
|
|
174
168
|
id: MenuId.SCMChangesContext,
|
|
175
|
-
description: ( localize(
|
|
176
|
-
proposed: 'contribSourceControlHistoryItemChangesMenu'
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
key: 'scm/incomingChanges',
|
|
180
|
-
id: MenuId.SCMIncomingChanges,
|
|
181
|
-
description: ( localize(8616, "The Source Control incoming changes menu")),
|
|
182
|
-
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
key: 'scm/incomingChanges/context',
|
|
186
|
-
id: MenuId.SCMIncomingChangesContext,
|
|
187
|
-
description: ( localize(8617, "The Source Control incoming changes context menu")),
|
|
188
|
-
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
key: 'scm/outgoingChanges',
|
|
192
|
-
id: MenuId.SCMOutgoingChanges,
|
|
193
|
-
description: ( localize(8618, "The Source Control outgoing changes menu")),
|
|
194
|
-
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
key: 'scm/outgoingChanges/context',
|
|
198
|
-
id: MenuId.SCMOutgoingChangesContext,
|
|
199
|
-
description: ( localize(8619, "The Source Control outgoing changes context menu")),
|
|
200
|
-
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
key: 'scm/incomingChanges/allChanges/context',
|
|
204
|
-
id: MenuId.SCMIncomingChangesAllChangesContext,
|
|
205
|
-
description: ( localize(8620, "The Source Control all incoming changes context menu")),
|
|
206
|
-
proposed: 'contribSourceControlHistoryItemMenu'
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
key: 'scm/incomingChanges/historyItem/context',
|
|
210
|
-
id: MenuId.SCMIncomingChangesHistoryItemContext,
|
|
211
|
-
description: ( localize(8621, "The Source Control incoming changes history item context menu")),
|
|
212
|
-
proposed: 'contribSourceControlHistoryItemMenu'
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
key: 'scm/outgoingChanges/allChanges/context',
|
|
216
|
-
id: MenuId.SCMOutgoingChangesAllChangesContext,
|
|
217
|
-
description: ( localize(8622, "The Source Control all outgoing changes context menu")),
|
|
218
|
-
proposed: 'contribSourceControlHistoryItemMenu'
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
key: 'scm/outgoingChanges/historyItem/context',
|
|
222
|
-
id: MenuId.SCMOutgoingChangesHistoryItemContext,
|
|
223
|
-
description: ( localize(8623, "The Source Control outgoing changes history item context menu")),
|
|
169
|
+
description: ( localize(8690, "The Source Control history item context menu")),
|
|
224
170
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
225
171
|
},
|
|
226
172
|
{
|
|
227
173
|
key: 'statusBar/remoteIndicator',
|
|
228
174
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
229
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(8691, "The remote indicator menu in the status bar")),
|
|
230
176
|
supportsSubmenus: false
|
|
231
177
|
},
|
|
232
178
|
{
|
|
233
179
|
key: 'terminal/context',
|
|
234
180
|
id: MenuId.TerminalInstanceContext,
|
|
235
|
-
description: ( localize(
|
|
181
|
+
description: ( localize(8692, "The terminal context menu"))
|
|
236
182
|
},
|
|
237
183
|
{
|
|
238
184
|
key: 'terminal/title/context',
|
|
239
185
|
id: MenuId.TerminalTabContext,
|
|
240
|
-
description: ( localize(
|
|
186
|
+
description: ( localize(8693, "The terminal tabs context menu"))
|
|
241
187
|
},
|
|
242
188
|
{
|
|
243
189
|
key: 'view/title',
|
|
244
190
|
id: MenuId.ViewTitle,
|
|
245
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(8694, "The contributed view title menu"))
|
|
246
192
|
},
|
|
247
193
|
{
|
|
248
194
|
key: 'viewContainer/title',
|
|
249
195
|
id: MenuId.ViewContainerTitle,
|
|
250
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(8695, "The contributed view container title menu")),
|
|
251
197
|
proposed: 'contribViewContainerTitle'
|
|
252
198
|
},
|
|
253
199
|
{
|
|
254
200
|
key: 'view/item/context',
|
|
255
201
|
id: MenuId.ViewItemContext,
|
|
256
|
-
description: ( localize(
|
|
202
|
+
description: ( localize(8696, "The contributed view item context menu"))
|
|
257
203
|
},
|
|
258
204
|
{
|
|
259
205
|
key: 'comments/comment/editorActions',
|
|
260
206
|
id: MenuId.CommentEditorActions,
|
|
261
|
-
description: ( localize(
|
|
207
|
+
description: ( localize(8697, "The contributed comment editor actions")),
|
|
262
208
|
proposed: 'contribCommentEditorActionsMenu'
|
|
263
209
|
},
|
|
264
210
|
{
|
|
265
211
|
key: 'comments/commentThread/title',
|
|
266
212
|
id: MenuId.CommentThreadTitle,
|
|
267
|
-
description: ( localize(
|
|
213
|
+
description: ( localize(8698, "The contributed comment thread title menu"))
|
|
268
214
|
},
|
|
269
215
|
{
|
|
270
216
|
key: 'comments/commentThread/context',
|
|
271
217
|
id: MenuId.CommentThreadActions,
|
|
272
218
|
description: ( localize(
|
|
273
|
-
|
|
219
|
+
8699,
|
|
274
220
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
275
221
|
)),
|
|
276
222
|
supportsSubmenus: false
|
|
@@ -279,17 +225,17 @@ const apiMenus = [
|
|
|
279
225
|
key: 'comments/commentThread/additionalActions',
|
|
280
226
|
id: MenuId.CommentThreadAdditionalActions,
|
|
281
227
|
description: ( localize(
|
|
282
|
-
|
|
228
|
+
8699,
|
|
283
229
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
284
230
|
)),
|
|
285
|
-
supportsSubmenus:
|
|
231
|
+
supportsSubmenus: true,
|
|
286
232
|
proposed: 'contribCommentThreadAdditionalMenu'
|
|
287
233
|
},
|
|
288
234
|
{
|
|
289
235
|
key: 'comments/commentThread/title/context',
|
|
290
236
|
id: MenuId.CommentThreadTitleContext,
|
|
291
237
|
description: ( localize(
|
|
292
|
-
|
|
238
|
+
8700,
|
|
293
239
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
294
240
|
)),
|
|
295
241
|
proposed: 'contribCommentPeekContext'
|
|
@@ -297,13 +243,13 @@ const apiMenus = [
|
|
|
297
243
|
{
|
|
298
244
|
key: 'comments/comment/title',
|
|
299
245
|
id: MenuId.CommentTitle,
|
|
300
|
-
description: ( localize(
|
|
246
|
+
description: ( localize(8701, "The contributed comment title menu"))
|
|
301
247
|
},
|
|
302
248
|
{
|
|
303
249
|
key: 'comments/comment/context',
|
|
304
250
|
id: MenuId.CommentActions,
|
|
305
251
|
description: ( localize(
|
|
306
|
-
|
|
252
|
+
8702,
|
|
307
253
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
308
254
|
)),
|
|
309
255
|
supportsSubmenus: false
|
|
@@ -312,7 +258,7 @@ const apiMenus = [
|
|
|
312
258
|
key: 'comments/commentThread/comment/context',
|
|
313
259
|
id: MenuId.CommentThreadCommentContext,
|
|
314
260
|
description: ( localize(
|
|
315
|
-
|
|
261
|
+
8703,
|
|
316
262
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
317
263
|
)),
|
|
318
264
|
proposed: 'contribCommentPeekContext'
|
|
@@ -320,173 +266,173 @@ const apiMenus = [
|
|
|
320
266
|
{
|
|
321
267
|
key: 'commentsView/commentThread/context',
|
|
322
268
|
id: MenuId.CommentsViewThreadActions,
|
|
323
|
-
description: ( localize(
|
|
269
|
+
description: ( localize(8704, "The contributed comment thread context menu in the comments view")),
|
|
324
270
|
proposed: 'contribCommentsViewThreadMenus'
|
|
325
271
|
},
|
|
326
272
|
{
|
|
327
273
|
key: 'notebook/toolbar',
|
|
328
274
|
id: MenuId.NotebookToolbar,
|
|
329
|
-
description: ( localize(
|
|
275
|
+
description: ( localize(8705, "The contributed notebook toolbar menu"))
|
|
330
276
|
},
|
|
331
277
|
{
|
|
332
278
|
key: 'notebook/kernelSource',
|
|
333
279
|
id: MenuId.NotebookKernelSource,
|
|
334
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(8706, "The contributed notebook kernel sources menu")),
|
|
335
281
|
proposed: 'notebookKernelSource'
|
|
336
282
|
},
|
|
337
283
|
{
|
|
338
284
|
key: 'notebook/cell/title',
|
|
339
285
|
id: MenuId.NotebookCellTitle,
|
|
340
|
-
description: ( localize(
|
|
286
|
+
description: ( localize(8707, "The contributed notebook cell title menu"))
|
|
341
287
|
},
|
|
342
288
|
{
|
|
343
289
|
key: 'notebook/cell/execute',
|
|
344
290
|
id: MenuId.NotebookCellExecute,
|
|
345
|
-
description: ( localize(
|
|
291
|
+
description: ( localize(8708, "The contributed notebook cell execution menu"))
|
|
346
292
|
},
|
|
347
293
|
{
|
|
348
294
|
key: 'interactive/toolbar',
|
|
349
295
|
id: MenuId.InteractiveToolbar,
|
|
350
|
-
description: ( localize(
|
|
296
|
+
description: ( localize(8709, "The contributed interactive toolbar menu")),
|
|
351
297
|
},
|
|
352
298
|
{
|
|
353
299
|
key: 'interactive/cell/title',
|
|
354
300
|
id: MenuId.InteractiveCellTitle,
|
|
355
|
-
description: ( localize(
|
|
301
|
+
description: ( localize(8710, "The contributed interactive cell title menu")),
|
|
356
302
|
},
|
|
357
303
|
{
|
|
358
304
|
key: 'issue/reporter',
|
|
359
305
|
id: MenuId.IssueReporter,
|
|
360
|
-
description: ( localize(
|
|
306
|
+
description: ( localize(8711, "The contributed issue reporter menu")),
|
|
361
307
|
proposed: 'contribIssueReporter'
|
|
362
308
|
},
|
|
363
309
|
{
|
|
364
310
|
key: 'testing/item/context',
|
|
365
311
|
id: MenuId.TestItem,
|
|
366
|
-
description: ( localize(
|
|
312
|
+
description: ( localize(8712, "The contributed test item menu")),
|
|
367
313
|
},
|
|
368
314
|
{
|
|
369
315
|
key: 'testing/item/gutter',
|
|
370
316
|
id: MenuId.TestItemGutter,
|
|
371
|
-
description: ( localize(
|
|
317
|
+
description: ( localize(8713, "The menu for a gutter decoration for a test item")),
|
|
372
318
|
},
|
|
373
319
|
{
|
|
374
320
|
key: 'testing/profiles/context',
|
|
375
321
|
id: MenuId.TestProfilesContext,
|
|
376
|
-
description: ( localize(
|
|
322
|
+
description: ( localize(8714, "The menu for configuring testing profiles.")),
|
|
377
323
|
},
|
|
378
324
|
{
|
|
379
325
|
key: 'testing/item/result',
|
|
380
326
|
id: MenuId.TestPeekElement,
|
|
381
|
-
description: ( localize(
|
|
327
|
+
description: ( localize(8715, "The menu for an item in the Test Results view or peek.")),
|
|
382
328
|
},
|
|
383
329
|
{
|
|
384
330
|
key: 'testing/message/context',
|
|
385
331
|
id: MenuId.TestMessageContext,
|
|
386
332
|
description: ( localize(
|
|
387
|
-
|
|
333
|
+
8716,
|
|
388
334
|
"A prominent button overlaying editor content where the message is displayed"
|
|
389
335
|
)),
|
|
390
336
|
},
|
|
391
337
|
{
|
|
392
338
|
key: 'testing/message/content',
|
|
393
339
|
id: MenuId.TestMessageContent,
|
|
394
|
-
description: ( localize(
|
|
340
|
+
description: ( localize(8717, "Context menu for the message in the results tree")),
|
|
395
341
|
},
|
|
396
342
|
{
|
|
397
343
|
key: 'extension/context',
|
|
398
344
|
id: MenuId.ExtensionContext,
|
|
399
|
-
description: ( localize(
|
|
345
|
+
description: ( localize(8718, "The extension context menu"))
|
|
400
346
|
},
|
|
401
347
|
{
|
|
402
348
|
key: 'timeline/title',
|
|
403
349
|
id: MenuId.TimelineTitle,
|
|
404
|
-
description: ( localize(
|
|
350
|
+
description: ( localize(8719, "The Timeline view title menu"))
|
|
405
351
|
},
|
|
406
352
|
{
|
|
407
353
|
key: 'timeline/item/context',
|
|
408
354
|
id: MenuId.TimelineItemContext,
|
|
409
|
-
description: ( localize(
|
|
355
|
+
description: ( localize(8720, "The Timeline view item context menu"))
|
|
410
356
|
},
|
|
411
357
|
{
|
|
412
358
|
key: 'ports/item/context',
|
|
413
359
|
id: MenuId.TunnelContext,
|
|
414
|
-
description: ( localize(
|
|
360
|
+
description: ( localize(8721, "The Ports view item context menu"))
|
|
415
361
|
},
|
|
416
362
|
{
|
|
417
363
|
key: 'ports/item/origin/inline',
|
|
418
364
|
id: MenuId.TunnelOriginInline,
|
|
419
|
-
description: ( localize(
|
|
365
|
+
description: ( localize(8722, "The Ports view item origin inline menu"))
|
|
420
366
|
},
|
|
421
367
|
{
|
|
422
368
|
key: 'ports/item/port/inline',
|
|
423
369
|
id: MenuId.TunnelPortInline,
|
|
424
|
-
description: ( localize(
|
|
370
|
+
description: ( localize(8723, "The Ports view item port inline menu"))
|
|
425
371
|
},
|
|
426
372
|
{
|
|
427
373
|
key: 'file/newFile',
|
|
428
374
|
id: MenuId.NewFile,
|
|
429
|
-
description: ( localize(
|
|
375
|
+
description: ( localize(8724, "The 'New File...' quick pick, shown on welcome page and File menu.")),
|
|
430
376
|
supportsSubmenus: false,
|
|
431
377
|
},
|
|
432
378
|
{
|
|
433
379
|
key: 'webview/context',
|
|
434
380
|
id: MenuId.WebviewContext,
|
|
435
|
-
description: ( localize(
|
|
381
|
+
description: ( localize(8725, "The webview context menu"))
|
|
436
382
|
},
|
|
437
383
|
{
|
|
438
384
|
key: 'file/share',
|
|
439
385
|
id: MenuId.MenubarShare,
|
|
440
|
-
description: ( localize(
|
|
386
|
+
description: ( localize(8726, "Share submenu shown in the top level File menu.")),
|
|
441
387
|
proposed: 'contribShareMenu'
|
|
442
388
|
},
|
|
443
389
|
{
|
|
444
390
|
key: 'editor/inlineCompletions/actions',
|
|
445
391
|
id: MenuId.InlineCompletionsActions,
|
|
446
|
-
description: ( localize(
|
|
392
|
+
description: ( localize(8727, "The actions shown when hovering on an inline completion")),
|
|
447
393
|
supportsSubmenus: false,
|
|
448
394
|
proposed: 'inlineCompletionsAdditions'
|
|
449
395
|
},
|
|
450
396
|
{
|
|
451
397
|
key: 'editor/inlineEdit/actions',
|
|
452
398
|
id: MenuId.InlineEditActions,
|
|
453
|
-
description: ( localize(
|
|
399
|
+
description: ( localize(8728, "The actions shown when hovering on an inline edit")),
|
|
454
400
|
supportsSubmenus: false,
|
|
455
401
|
proposed: 'inlineEdit'
|
|
456
402
|
},
|
|
457
403
|
{
|
|
458
404
|
key: 'editor/content',
|
|
459
405
|
id: MenuId.EditorContent,
|
|
460
|
-
description: ( localize(
|
|
406
|
+
description: ( localize(8729, "The prominent button in an editor, overlays its content")),
|
|
461
407
|
proposed: 'contribEditorContentMenu'
|
|
462
408
|
},
|
|
463
409
|
{
|
|
464
410
|
key: 'editor/lineNumber/context',
|
|
465
411
|
id: MenuId.EditorLineNumberContext,
|
|
466
|
-
description: ( localize(
|
|
412
|
+
description: ( localize(8730, "The contributed editor line number context menu"))
|
|
467
413
|
},
|
|
468
414
|
{
|
|
469
415
|
key: 'mergeEditor/result/title',
|
|
470
416
|
id: MenuId.MergeInputResultToolbar,
|
|
471
|
-
description: ( localize(
|
|
417
|
+
description: ( localize(8731, "The result toolbar of the merge editor")),
|
|
472
418
|
proposed: 'contribMergeEditorMenus'
|
|
473
419
|
},
|
|
474
420
|
{
|
|
475
421
|
key: 'multiDiffEditor/resource/title',
|
|
476
422
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
477
|
-
description: ( localize(
|
|
423
|
+
description: ( localize(8732, "The resource toolbar in the multi diff editor")),
|
|
478
424
|
proposed: 'contribMultiDiffEditorMenus'
|
|
479
425
|
},
|
|
480
426
|
{
|
|
481
427
|
key: 'diffEditor/gutter/hunk',
|
|
482
428
|
id: MenuId.DiffEditorHunkToolbar,
|
|
483
|
-
description: ( localize(
|
|
429
|
+
description: ( localize(8733, "The gutter toolbar in the diff editor")),
|
|
484
430
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
485
431
|
},
|
|
486
432
|
{
|
|
487
433
|
key: 'diffEditor/gutter/selection',
|
|
488
434
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
489
|
-
description: ( localize(
|
|
435
|
+
description: ( localize(8733, "The gutter toolbar in the diff editor")),
|
|
490
436
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
491
437
|
}
|
|
492
438
|
];
|
|
@@ -499,22 +445,22 @@ var schema;
|
|
|
499
445
|
function isValidMenuItem(item, collector) {
|
|
500
446
|
if (typeof item.command !== 'string') {
|
|
501
447
|
collector.error(( localize(
|
|
502
|
-
|
|
448
|
+
8734,
|
|
503
449
|
"property `{0}` is mandatory and must be of type `string`",
|
|
504
450
|
'command'
|
|
505
451
|
)));
|
|
506
452
|
return false;
|
|
507
453
|
}
|
|
508
454
|
if (item.alt && typeof item.alt !== 'string') {
|
|
509
|
-
collector.error(( localize(
|
|
455
|
+
collector.error(( localize(8735, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
510
456
|
return false;
|
|
511
457
|
}
|
|
512
458
|
if (item.when && typeof item.when !== 'string') {
|
|
513
|
-
collector.error(( localize(
|
|
459
|
+
collector.error(( localize(8735, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
514
460
|
return false;
|
|
515
461
|
}
|
|
516
462
|
if (item.group && typeof item.group !== 'string') {
|
|
517
|
-
collector.error(( localize(
|
|
463
|
+
collector.error(( localize(8735, "property `{0}` can be omitted or must be of type `string`", 'group')));
|
|
518
464
|
return false;
|
|
519
465
|
}
|
|
520
466
|
return true;
|
|
@@ -523,18 +469,18 @@ var schema;
|
|
|
523
469
|
function isValidSubmenuItem(item, collector) {
|
|
524
470
|
if (typeof item.submenu !== 'string') {
|
|
525
471
|
collector.error(( localize(
|
|
526
|
-
|
|
472
|
+
8734,
|
|
527
473
|
"property `{0}` is mandatory and must be of type `string`",
|
|
528
474
|
'submenu'
|
|
529
475
|
)));
|
|
530
476
|
return false;
|
|
531
477
|
}
|
|
532
478
|
if (item.when && typeof item.when !== 'string') {
|
|
533
|
-
collector.error(( localize(
|
|
479
|
+
collector.error(( localize(8735, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
534
480
|
return false;
|
|
535
481
|
}
|
|
536
482
|
if (item.group && typeof item.group !== 'string') {
|
|
537
|
-
collector.error(( localize(
|
|
483
|
+
collector.error(( localize(8735, "property `{0}` can be omitted or must be of type `string`", 'group')));
|
|
538
484
|
return false;
|
|
539
485
|
}
|
|
540
486
|
return true;
|
|
@@ -542,7 +488,7 @@ var schema;
|
|
|
542
488
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
543
489
|
function isValidItems(items, collector) {
|
|
544
490
|
if (!Array.isArray(items)) {
|
|
545
|
-
collector.error(( localize(
|
|
491
|
+
collector.error(( localize(8736, "submenu items must be an array")));
|
|
546
492
|
return false;
|
|
547
493
|
}
|
|
548
494
|
for (const item of items) {
|
|
@@ -562,15 +508,15 @@ var schema;
|
|
|
562
508
|
schema.isValidItems = isValidItems;
|
|
563
509
|
function isValidSubmenu(submenu, collector) {
|
|
564
510
|
if (typeof submenu !== 'object') {
|
|
565
|
-
collector.error(( localize(
|
|
511
|
+
collector.error(( localize(8737, "submenu items must be an object")));
|
|
566
512
|
return false;
|
|
567
513
|
}
|
|
568
514
|
if (typeof submenu.id !== 'string') {
|
|
569
|
-
collector.error(( localize(
|
|
515
|
+
collector.error(( localize(8734, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
570
516
|
return false;
|
|
571
517
|
}
|
|
572
518
|
if (typeof submenu.label !== 'string') {
|
|
573
|
-
collector.error(( localize(
|
|
519
|
+
collector.error(( localize(8734, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
574
520
|
return false;
|
|
575
521
|
}
|
|
576
522
|
return true;
|
|
@@ -582,24 +528,24 @@ var schema;
|
|
|
582
528
|
properties: {
|
|
583
529
|
command: {
|
|
584
530
|
description: ( localize(
|
|
585
|
-
|
|
531
|
+
8738,
|
|
586
532
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
587
533
|
)),
|
|
588
534
|
type: 'string'
|
|
589
535
|
},
|
|
590
536
|
alt: {
|
|
591
537
|
description: ( localize(
|
|
592
|
-
|
|
538
|
+
8739,
|
|
593
539
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
594
540
|
)),
|
|
595
541
|
type: 'string'
|
|
596
542
|
},
|
|
597
543
|
when: {
|
|
598
|
-
description: ( localize(
|
|
544
|
+
description: ( localize(8740, 'Condition which must be true to show this item')),
|
|
599
545
|
type: 'string'
|
|
600
546
|
},
|
|
601
547
|
group: {
|
|
602
|
-
description: ( localize(
|
|
548
|
+
description: ( localize(8741, 'Group into which this item belongs')),
|
|
603
549
|
type: 'string'
|
|
604
550
|
}
|
|
605
551
|
}
|
|
@@ -609,15 +555,15 @@ var schema;
|
|
|
609
555
|
required: ['submenu'],
|
|
610
556
|
properties: {
|
|
611
557
|
submenu: {
|
|
612
|
-
description: ( localize(
|
|
558
|
+
description: ( localize(8742, 'Identifier of the submenu to display in this item.')),
|
|
613
559
|
type: 'string'
|
|
614
560
|
},
|
|
615
561
|
when: {
|
|
616
|
-
description: ( localize(
|
|
562
|
+
description: ( localize(8740, 'Condition which must be true to show this item')),
|
|
617
563
|
type: 'string'
|
|
618
564
|
},
|
|
619
565
|
group: {
|
|
620
|
-
description: ( localize(
|
|
566
|
+
description: ( localize(8741, 'Group into which this item belongs')),
|
|
621
567
|
type: 'string'
|
|
622
568
|
}
|
|
623
569
|
}
|
|
@@ -627,16 +573,16 @@ var schema;
|
|
|
627
573
|
required: ['id', 'label'],
|
|
628
574
|
properties: {
|
|
629
575
|
id: {
|
|
630
|
-
description: ( localize(
|
|
576
|
+
description: ( localize(8743, 'Identifier of the menu to display as a submenu.')),
|
|
631
577
|
type: 'string'
|
|
632
578
|
},
|
|
633
579
|
label: {
|
|
634
|
-
description: ( localize(
|
|
580
|
+
description: ( localize(8744, 'The label of the menu item which leads to this submenu.')),
|
|
635
581
|
type: 'string'
|
|
636
582
|
},
|
|
637
583
|
icon: {
|
|
638
584
|
description: ( localize(
|
|
639
|
-
|
|
585
|
+
8745,
|
|
640
586
|
'(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)`'
|
|
641
587
|
)),
|
|
642
588
|
anyOf: [{
|
|
@@ -646,11 +592,11 @@ var schema;
|
|
|
646
592
|
type: 'object',
|
|
647
593
|
properties: {
|
|
648
594
|
light: {
|
|
649
|
-
description: ( localize(
|
|
595
|
+
description: ( localize(8746, 'Icon path when a light theme is used')),
|
|
650
596
|
type: 'string'
|
|
651
597
|
},
|
|
652
598
|
dark: {
|
|
653
|
-
description: ( localize(
|
|
599
|
+
description: ( localize(8747, 'Icon path when a dark theme is used')),
|
|
654
600
|
type: 'string'
|
|
655
601
|
}
|
|
656
602
|
}
|
|
@@ -659,11 +605,11 @@ var schema;
|
|
|
659
605
|
}
|
|
660
606
|
};
|
|
661
607
|
schema.menusContribution = {
|
|
662
|
-
description: ( localize(
|
|
608
|
+
description: ( localize(8748, "Contributes menu items to the editor")),
|
|
663
609
|
type: 'object',
|
|
664
610
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
665
611
|
markdownDescription: menu.proposed ? ( localize(
|
|
666
|
-
|
|
612
|
+
8749,
|
|
667
613
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
668
614
|
menu.proposed,
|
|
669
615
|
menu.description
|
|
@@ -678,18 +624,18 @@ var schema;
|
|
|
678
624
|
}
|
|
679
625
|
};
|
|
680
626
|
schema.submenusContribution = {
|
|
681
|
-
description: ( localize(
|
|
627
|
+
description: ( localize(8750, "Contributes submenu items to the editor")),
|
|
682
628
|
type: 'array',
|
|
683
629
|
items: submenu
|
|
684
630
|
};
|
|
685
631
|
function isValidCommand(command, collector) {
|
|
686
632
|
if (!command) {
|
|
687
|
-
collector.error(( localize(
|
|
633
|
+
collector.error(( localize(8751, "expected non-empty value.")));
|
|
688
634
|
return false;
|
|
689
635
|
}
|
|
690
636
|
if (isFalsyOrWhitespace(command.command)) {
|
|
691
637
|
collector.error(( localize(
|
|
692
|
-
|
|
638
|
+
8734,
|
|
693
639
|
"property `{0}` is mandatory and must be of type `string`",
|
|
694
640
|
'command'
|
|
695
641
|
)));
|
|
@@ -703,7 +649,7 @@ var schema;
|
|
|
703
649
|
}
|
|
704
650
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
705
651
|
collector.error(( localize(
|
|
706
|
-
|
|
652
|
+
8735,
|
|
707
653
|
"property `{0}` can be omitted or must be of type `string`",
|
|
708
654
|
'precondition'
|
|
709
655
|
)));
|
|
@@ -729,7 +675,7 @@ var schema;
|
|
|
729
675
|
return true;
|
|
730
676
|
}
|
|
731
677
|
collector.error(( localize(
|
|
732
|
-
|
|
678
|
+
8752,
|
|
733
679
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
734
680
|
)));
|
|
735
681
|
return false;
|
|
@@ -737,7 +683,7 @@ var schema;
|
|
|
737
683
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
738
684
|
if (typeof localized === 'undefined') {
|
|
739
685
|
collector.error(( localize(
|
|
740
|
-
|
|
686
|
+
8753,
|
|
741
687
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
742
688
|
propertyName
|
|
743
689
|
)));
|
|
@@ -745,7 +691,7 @@ var schema;
|
|
|
745
691
|
}
|
|
746
692
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
747
693
|
collector.error(( localize(
|
|
748
|
-
|
|
694
|
+
8734,
|
|
749
695
|
"property `{0}` is mandatory and must be of type `string`",
|
|
750
696
|
propertyName
|
|
751
697
|
)));
|
|
@@ -753,7 +699,7 @@ var schema;
|
|
|
753
699
|
}
|
|
754
700
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
755
701
|
collector.error(( localize(
|
|
756
|
-
|
|
702
|
+
8754,
|
|
757
703
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
758
704
|
`${propertyName}.value`,
|
|
759
705
|
`${propertyName}.original`
|
|
@@ -767,37 +713,37 @@ var schema;
|
|
|
767
713
|
required: ['command', 'title'],
|
|
768
714
|
properties: {
|
|
769
715
|
command: {
|
|
770
|
-
description: ( localize(
|
|
716
|
+
description: ( localize(8755, 'Identifier of the command to execute')),
|
|
771
717
|
type: 'string'
|
|
772
718
|
},
|
|
773
719
|
title: {
|
|
774
|
-
description: ( localize(
|
|
720
|
+
description: ( localize(8756, 'Title by which the command is represented in the UI')),
|
|
775
721
|
type: 'string'
|
|
776
722
|
},
|
|
777
723
|
shortTitle: {
|
|
778
724
|
markdownDescription: ( localize(
|
|
779
|
-
|
|
725
|
+
8757,
|
|
780
726
|
'(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.'
|
|
781
727
|
)),
|
|
782
728
|
type: 'string'
|
|
783
729
|
},
|
|
784
730
|
category: {
|
|
785
731
|
description: ( localize(
|
|
786
|
-
|
|
732
|
+
8758,
|
|
787
733
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
788
734
|
)),
|
|
789
735
|
type: 'string'
|
|
790
736
|
},
|
|
791
737
|
enablement: {
|
|
792
738
|
description: ( localize(
|
|
793
|
-
|
|
739
|
+
8759,
|
|
794
740
|
'(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.'
|
|
795
741
|
)),
|
|
796
742
|
type: 'string'
|
|
797
743
|
},
|
|
798
744
|
icon: {
|
|
799
745
|
description: ( localize(
|
|
800
|
-
|
|
746
|
+
8760,
|
|
801
747
|
'(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)`'
|
|
802
748
|
)),
|
|
803
749
|
anyOf: [{
|
|
@@ -807,11 +753,11 @@ var schema;
|
|
|
807
753
|
type: 'object',
|
|
808
754
|
properties: {
|
|
809
755
|
light: {
|
|
810
|
-
description: ( localize(
|
|
756
|
+
description: ( localize(8761, 'Icon path when a light theme is used')),
|
|
811
757
|
type: 'string'
|
|
812
758
|
},
|
|
813
759
|
dark: {
|
|
814
|
-
description: ( localize(
|
|
760
|
+
description: ( localize(8762, 'Icon path when a dark theme is used')),
|
|
815
761
|
type: 'string'
|
|
816
762
|
}
|
|
817
763
|
}
|
|
@@ -820,7 +766,7 @@ var schema;
|
|
|
820
766
|
}
|
|
821
767
|
};
|
|
822
768
|
schema.commandsContribution = {
|
|
823
|
-
description: ( localize(
|
|
769
|
+
description: ( localize(8763, "Contributes commands to the command palette.")),
|
|
824
770
|
oneOf: [
|
|
825
771
|
commandType,
|
|
826
772
|
{
|
|
@@ -864,7 +810,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
864
810
|
if (existingCmd) {
|
|
865
811
|
if (existingCmd.source) {
|
|
866
812
|
extension.collector.info(( localize(
|
|
867
|
-
|
|
813
|
+
8764,
|
|
868
814
|
"Command `{0}` already registered by {1} ({2})",
|
|
869
815
|
userFriendlyCommand.command,
|
|
870
816
|
existingCmd.source.title,
|
|
@@ -872,7 +818,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
872
818
|
)));
|
|
873
819
|
}
|
|
874
820
|
else {
|
|
875
|
-
extension.collector.info(( localize(
|
|
821
|
+
extension.collector.info(( localize(8765, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
876
822
|
}
|
|
877
823
|
}
|
|
878
824
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -913,19 +859,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
913
859
|
continue;
|
|
914
860
|
}
|
|
915
861
|
if (!submenuInfo.id) {
|
|
916
|
-
collector.warn(( localize(
|
|
862
|
+
collector.warn(( localize(8766, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
917
863
|
continue;
|
|
918
864
|
}
|
|
919
865
|
if (( (_submenus.has(submenuInfo.id)))) {
|
|
920
866
|
collector.info(( localize(
|
|
921
|
-
|
|
867
|
+
8767,
|
|
922
868
|
"The `{0}` submenu was already previously registered.",
|
|
923
869
|
submenuInfo.id
|
|
924
870
|
)));
|
|
925
871
|
continue;
|
|
926
872
|
}
|
|
927
873
|
if (!submenuInfo.label) {
|
|
928
|
-
collector.warn(( localize(
|
|
874
|
+
collector.warn(( localize(8768, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
929
875
|
continue;
|
|
930
876
|
}
|
|
931
877
|
let absoluteIcon;
|
|
@@ -982,7 +928,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
982
928
|
}
|
|
983
929
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
984
930
|
collector.error(( localize(
|
|
985
|
-
|
|
931
|
+
8769,
|
|
986
932
|
"{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}",
|
|
987
933
|
entry[0],
|
|
988
934
|
menu.proposed,
|
|
@@ -997,7 +943,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
997
943
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
998
944
|
if (!command) {
|
|
999
945
|
collector.error(( localize(
|
|
1000
|
-
|
|
946
|
+
8770,
|
|
1001
947
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
1002
948
|
menuItem.command
|
|
1003
949
|
)));
|
|
@@ -1005,20 +951,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1005
951
|
}
|
|
1006
952
|
if (menuItem.alt && !alt) {
|
|
1007
953
|
collector.warn(( localize(
|
|
1008
|
-
|
|
954
|
+
8771,
|
|
1009
955
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
1010
956
|
menuItem.alt
|
|
1011
957
|
)));
|
|
1012
958
|
}
|
|
1013
959
|
if (menuItem.command === menuItem.alt) {
|
|
1014
|
-
collector.info(( localize(
|
|
960
|
+
collector.info(( localize(8772, "Menu item references the same command as default and alt-command")));
|
|
1015
961
|
}
|
|
1016
962
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
1017
963
|
}
|
|
1018
964
|
else {
|
|
1019
965
|
if (menu.supportsSubmenus === false) {
|
|
1020
966
|
collector.error(( localize(
|
|
1021
|
-
|
|
967
|
+
8773,
|
|
1022
968
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1023
969
|
)));
|
|
1024
970
|
continue;
|
|
@@ -1026,7 +972,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1026
972
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1027
973
|
if (!submenu) {
|
|
1028
974
|
collector.error(( localize(
|
|
1029
|
-
|
|
975
|
+
8774,
|
|
1030
976
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1031
977
|
menuItem.submenu
|
|
1032
978
|
)));
|
|
@@ -1039,7 +985,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1039
985
|
}
|
|
1040
986
|
if (( (submenuRegistrations.has(submenu.id.id)))) {
|
|
1041
987
|
collector.warn(( localize(
|
|
1042
|
-
|
|
988
|
+
8775,
|
|
1043
989
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1044
990
|
menuItem.submenu,
|
|
1045
991
|
entry[0]
|
|
@@ -1061,7 +1007,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1061
1007
|
}
|
|
1062
1008
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes('viewContainer == workbench.view.debug')) {
|
|
1063
1009
|
collector.error(( localize(
|
|
1064
|
-
|
|
1010
|
+
8776,
|
|
1065
1011
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1066
1012
|
'`viewContainer/title`',
|
|
1067
1013
|
'`viewContainer == workbench.view.debug`',
|
|
@@ -1129,10 +1075,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1129
1075
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1130
1076
|
}
|
|
1131
1077
|
const headers = [
|
|
1132
|
-
( localize(
|
|
1133
|
-
( localize(
|
|
1134
|
-
( localize(
|
|
1135
|
-
( localize(
|
|
1078
|
+
( localize(8777, "ID")),
|
|
1079
|
+
( localize(8778, "Title")),
|
|
1080
|
+
( localize(8779, "Keyboard Shortcuts")),
|
|
1081
|
+
( localize(8780, "Menu Contexts"))
|
|
1136
1082
|
];
|
|
1137
1083
|
const rows = ( (commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1138
1084
|
.map(command => {
|
|
@@ -1172,7 +1118,7 @@ CommandsTableRenderer = ( (__decorate([
|
|
|
1172
1118
|
], CommandsTableRenderer)));
|
|
1173
1119
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
1174
1120
|
id: 'commands',
|
|
1175
|
-
label: ( localize(
|
|
1121
|
+
label: ( localize(8781, "Commands")),
|
|
1176
1122
|
access: {
|
|
1177
1123
|
canToggle: false,
|
|
1178
1124
|
},
|