@codingame/monaco-vscode-keybindings-service-override 34.1.3 → 35.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/package.json +3 -3
- 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 +3 -3
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +153 -153
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +44 -26
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingIO.d.ts +1 -0
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingIO.js +7 -0
|
@@ -20,202 +20,202 @@ import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
20
20
|
const apiMenus = [{
|
|
21
21
|
key: "commandPalette",
|
|
22
22
|
id: MenuId.CommandPalette,
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(17210, "The Command Palette")),
|
|
24
24
|
supportsSubmenus: false
|
|
25
25
|
}, {
|
|
26
26
|
key: "touchBar",
|
|
27
27
|
id: MenuId.TouchBarContext,
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(17211, "The touch bar (macOS only)")),
|
|
29
29
|
supportsSubmenus: false
|
|
30
30
|
}, {
|
|
31
31
|
key: "editor/title",
|
|
32
32
|
id: MenuId.EditorTitle,
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(17212, "The editor title menu"))
|
|
34
34
|
}, {
|
|
35
35
|
key: "modalEditor/editorTitle",
|
|
36
36
|
id: MenuId.ModalEditorEditorTitle,
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(17213, "The editor title menu in the modal editor"))
|
|
38
38
|
}, {
|
|
39
39
|
key: "editor/title/run",
|
|
40
40
|
id: MenuId.EditorTitleRun,
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(17214, "Run submenu inside the editor title menu"))
|
|
42
42
|
}, {
|
|
43
43
|
key: "editor/context",
|
|
44
44
|
id: MenuId.EditorContext,
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(17215, "The editor context menu"))
|
|
46
46
|
}, {
|
|
47
47
|
key: "editor/context/copy",
|
|
48
48
|
id: MenuId.EditorContextCopy,
|
|
49
|
-
description: ( localize(
|
|
49
|
+
description: ( localize(17216, "'Copy as' submenu in the editor context menu"))
|
|
50
50
|
}, {
|
|
51
51
|
key: "editor/context/share",
|
|
52
52
|
id: MenuId.EditorContextShare,
|
|
53
|
-
description: ( localize(
|
|
53
|
+
description: ( localize(17217, "'Share' submenu in the editor context menu")),
|
|
54
54
|
proposed: "contribShareMenu"
|
|
55
55
|
}, {
|
|
56
56
|
key: "explorer/context",
|
|
57
57
|
id: MenuId.ExplorerContext,
|
|
58
|
-
description: ( localize(
|
|
58
|
+
description: ( localize(17218, "The file explorer context menu"))
|
|
59
59
|
}, {
|
|
60
60
|
key: "explorer/context/share",
|
|
61
61
|
id: MenuId.ExplorerContextShare,
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(17219, "'Share' submenu in the file explorer context menu")),
|
|
63
63
|
proposed: "contribShareMenu"
|
|
64
64
|
}, {
|
|
65
65
|
key: "editor/title/context",
|
|
66
66
|
id: MenuId.EditorTitleContext,
|
|
67
|
-
description: ( localize(
|
|
67
|
+
description: ( localize(17220, "The editor tabs context menu"))
|
|
68
68
|
}, {
|
|
69
69
|
key: "editor/title/context/share",
|
|
70
70
|
id: MenuId.EditorTitleContextShare,
|
|
71
|
-
description: ( localize(
|
|
71
|
+
description: ( localize(17221, "'Share' submenu inside the editor title context menu")),
|
|
72
72
|
proposed: "contribShareMenu"
|
|
73
73
|
}, {
|
|
74
74
|
key: "debug/callstack/context",
|
|
75
75
|
id: MenuId.DebugCallStackContext,
|
|
76
|
-
description: ( localize(
|
|
76
|
+
description: ( localize(17222, "The debug callstack view context menu"))
|
|
77
77
|
}, {
|
|
78
78
|
key: "debug/variables/context",
|
|
79
79
|
id: MenuId.DebugVariablesContext,
|
|
80
|
-
description: ( localize(
|
|
80
|
+
description: ( localize(17223, "The debug variables view context menu"))
|
|
81
81
|
}, {
|
|
82
82
|
key: "debug/watch/context",
|
|
83
83
|
id: MenuId.DebugWatchContext,
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(17224, "The debug watch view context menu"))
|
|
85
85
|
}, {
|
|
86
86
|
key: "debug/toolBar",
|
|
87
87
|
id: MenuId.DebugToolBar,
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(17225, "The debug toolbar menu"))
|
|
89
89
|
}, {
|
|
90
90
|
key: "debug/createConfiguration",
|
|
91
91
|
id: MenuId.DebugCreateConfiguration,
|
|
92
92
|
proposed: "contribDebugCreateConfiguration",
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(17226, "The debug create configuration menu"))
|
|
94
94
|
}, {
|
|
95
95
|
key: "notebook/variables/context",
|
|
96
96
|
id: MenuId.NotebookVariablesContext,
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(17227, "The notebook variables view context menu"))
|
|
98
98
|
}, {
|
|
99
99
|
key: "menuBar/home",
|
|
100
100
|
id: MenuId.MenubarHomeMenu,
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(17228, "The home indicator context menu (web only)")),
|
|
102
102
|
proposed: "contribMenuBarHome",
|
|
103
103
|
supportsSubmenus: false
|
|
104
104
|
}, {
|
|
105
105
|
key: "menuBar/edit/copy",
|
|
106
106
|
id: MenuId.MenubarCopy,
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(17229, "'Copy as' submenu in the top level Edit menu"))
|
|
108
108
|
}, {
|
|
109
109
|
key: "chat/input/status",
|
|
110
110
|
id: MenuId.ChatInputStatus,
|
|
111
111
|
description: ( localize(
|
|
112
|
-
|
|
112
|
+
17230,
|
|
113
113
|
"The status indicator area at the rightmost end of the toolbar shown beneath the chat input"
|
|
114
114
|
)),
|
|
115
115
|
supportsSubmenus: false
|
|
116
116
|
}, {
|
|
117
117
|
key: "scm/title",
|
|
118
118
|
id: MenuId.SCMTitle,
|
|
119
|
-
description: ( localize(
|
|
119
|
+
description: ( localize(17231, "The Source Control title menu"))
|
|
120
120
|
}, {
|
|
121
121
|
key: "scm/sourceControl",
|
|
122
122
|
id: MenuId.SCMSourceControl,
|
|
123
|
-
description: ( localize(
|
|
123
|
+
description: ( localize(17232, "The Source Control menu"))
|
|
124
124
|
}, {
|
|
125
125
|
key: "scm/repositories/title",
|
|
126
126
|
id: MenuId.SCMSourceControlTitle,
|
|
127
|
-
description: ( localize(
|
|
127
|
+
description: ( localize(17233, "The Source Control Repositories title menu")),
|
|
128
128
|
proposed: "contribSourceControlTitleMenu"
|
|
129
129
|
}, {
|
|
130
130
|
key: "scm/repository",
|
|
131
131
|
id: MenuId.SCMSourceControlInline,
|
|
132
|
-
description: ( localize(
|
|
132
|
+
description: ( localize(17234, "The Source Control repository menu"))
|
|
133
133
|
}, {
|
|
134
134
|
key: "scm/resourceState/context",
|
|
135
135
|
id: MenuId.SCMResourceContext,
|
|
136
|
-
description: ( localize(
|
|
136
|
+
description: ( localize(17235, "The Source Control resource state context menu"))
|
|
137
137
|
}, {
|
|
138
138
|
key: "scm/resourceFolder/context",
|
|
139
139
|
id: MenuId.SCMResourceFolderContext,
|
|
140
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(17236, "The Source Control resource folder context menu"))
|
|
141
141
|
}, {
|
|
142
142
|
key: "scm/resourceGroup/context",
|
|
143
143
|
id: MenuId.SCMResourceGroupContext,
|
|
144
|
-
description: ( localize(
|
|
144
|
+
description: ( localize(17237, "The Source Control resource group context menu"))
|
|
145
145
|
}, {
|
|
146
146
|
key: "scm/change/title",
|
|
147
147
|
id: MenuId.SCMChangeContext,
|
|
148
|
-
description: ( localize(
|
|
148
|
+
description: ( localize(17238, "The Source Control inline change menu"))
|
|
149
149
|
}, {
|
|
150
150
|
key: "scm/inputBox",
|
|
151
151
|
id: MenuId.SCMInputBox,
|
|
152
|
-
description: ( localize(
|
|
152
|
+
description: ( localize(17239, "The Source Control input box menu")),
|
|
153
153
|
proposed: "contribSourceControlInputBoxMenu"
|
|
154
154
|
}, {
|
|
155
155
|
key: "scm/history/title",
|
|
156
156
|
id: MenuId.SCMHistoryTitle,
|
|
157
|
-
description: ( localize(
|
|
157
|
+
description: ( localize(17240, "The Source Control History title menu")),
|
|
158
158
|
proposed: "contribSourceControlHistoryTitleMenu"
|
|
159
159
|
}, {
|
|
160
160
|
key: "scm/historyItem/context",
|
|
161
161
|
id: MenuId.SCMHistoryItemContext,
|
|
162
|
-
description: ( localize(
|
|
162
|
+
description: ( localize(17241, "The Source Control history item context menu")),
|
|
163
163
|
proposed: "contribSourceControlHistoryItemMenu"
|
|
164
164
|
}, {
|
|
165
165
|
key: "scm/historyItemRef/context",
|
|
166
166
|
id: MenuId.SCMHistoryItemRefContext,
|
|
167
|
-
description: ( localize(
|
|
167
|
+
description: ( localize(17242, "The Source Control history item reference context menu")),
|
|
168
168
|
proposed: "contribSourceControlHistoryItemMenu"
|
|
169
169
|
}, {
|
|
170
170
|
key: "scm/artifactGroup/context",
|
|
171
171
|
id: MenuId.SCMArtifactGroupContext,
|
|
172
|
-
description: ( localize(
|
|
172
|
+
description: ( localize(17243, "The Source Control artifact group context menu")),
|
|
173
173
|
proposed: "contribSourceControlArtifactGroupMenu"
|
|
174
174
|
}, {
|
|
175
175
|
key: "scm/artifact/context",
|
|
176
176
|
id: MenuId.SCMArtifactContext,
|
|
177
|
-
description: ( localize(
|
|
177
|
+
description: ( localize(17244, "The Source Control artifact context menu")),
|
|
178
178
|
proposed: "contribSourceControlArtifactMenu"
|
|
179
179
|
}, {
|
|
180
180
|
key: "statusBar/remoteIndicator",
|
|
181
181
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
182
|
-
description: ( localize(
|
|
182
|
+
description: ( localize(17245, "The remote indicator menu in the status bar")),
|
|
183
183
|
supportsSubmenus: false
|
|
184
184
|
}, {
|
|
185
185
|
key: "terminal/context",
|
|
186
186
|
id: MenuId.TerminalInstanceContext,
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(17246, "The terminal context menu"))
|
|
188
188
|
}, {
|
|
189
189
|
key: "terminal/title/context",
|
|
190
190
|
id: MenuId.TerminalTabContext,
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(17247, "The terminal tabs context menu"))
|
|
192
192
|
}, {
|
|
193
193
|
key: "view/title",
|
|
194
194
|
id: MenuId.ViewTitle,
|
|
195
|
-
description: ( localize(
|
|
195
|
+
description: ( localize(17248, "The contributed view title menu"))
|
|
196
196
|
}, {
|
|
197
197
|
key: "viewContainer/title",
|
|
198
198
|
id: MenuId.ViewContainerTitle,
|
|
199
|
-
description: ( localize(
|
|
199
|
+
description: ( localize(17249, "The contributed view container title menu")),
|
|
200
200
|
proposed: "contribViewContainerTitle"
|
|
201
201
|
}, {
|
|
202
202
|
key: "view/item/context",
|
|
203
203
|
id: MenuId.ViewItemContext,
|
|
204
|
-
description: ( localize(
|
|
204
|
+
description: ( localize(17250, "The contributed view item context menu"))
|
|
205
205
|
}, {
|
|
206
206
|
key: "comments/comment/editorActions",
|
|
207
207
|
id: MenuId.CommentEditorActions,
|
|
208
|
-
description: ( localize(
|
|
208
|
+
description: ( localize(17251, "The contributed comment editor actions")),
|
|
209
209
|
proposed: "contribCommentEditorActionsMenu"
|
|
210
210
|
}, {
|
|
211
211
|
key: "comments/commentThread/title",
|
|
212
212
|
id: MenuId.CommentThreadTitle,
|
|
213
|
-
description: ( localize(
|
|
213
|
+
description: ( localize(17252, "The contributed comment thread title menu"))
|
|
214
214
|
}, {
|
|
215
215
|
key: "comments/commentThread/context",
|
|
216
216
|
id: MenuId.CommentThreadActions,
|
|
217
217
|
description: ( localize(
|
|
218
|
-
|
|
218
|
+
17253,
|
|
219
219
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
220
220
|
)),
|
|
221
221
|
supportsSubmenus: false
|
|
@@ -223,7 +223,7 @@ const apiMenus = [{
|
|
|
223
223
|
key: "comments/commentThread/additionalActions",
|
|
224
224
|
id: MenuId.CommentThreadAdditionalActions,
|
|
225
225
|
description: ( localize(
|
|
226
|
-
|
|
226
|
+
17253,
|
|
227
227
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
228
228
|
)),
|
|
229
229
|
supportsSubmenus: true,
|
|
@@ -232,19 +232,19 @@ const apiMenus = [{
|
|
|
232
232
|
key: "comments/commentThread/title/context",
|
|
233
233
|
id: MenuId.CommentThreadTitleContext,
|
|
234
234
|
description: ( localize(
|
|
235
|
-
|
|
235
|
+
17254,
|
|
236
236
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
237
237
|
)),
|
|
238
238
|
proposed: "contribCommentPeekContext"
|
|
239
239
|
}, {
|
|
240
240
|
key: "comments/comment/title",
|
|
241
241
|
id: MenuId.CommentTitle,
|
|
242
|
-
description: ( localize(
|
|
242
|
+
description: ( localize(17255, "The contributed comment title menu"))
|
|
243
243
|
}, {
|
|
244
244
|
key: "comments/comment/context",
|
|
245
245
|
id: MenuId.CommentActions,
|
|
246
246
|
description: ( localize(
|
|
247
|
-
|
|
247
|
+
17256,
|
|
248
248
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
249
249
|
)),
|
|
250
250
|
supportsSubmenus: false
|
|
@@ -252,210 +252,210 @@ const apiMenus = [{
|
|
|
252
252
|
key: "comments/commentThread/comment/context",
|
|
253
253
|
id: MenuId.CommentThreadCommentContext,
|
|
254
254
|
description: ( localize(
|
|
255
|
-
|
|
255
|
+
17257,
|
|
256
256
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
257
257
|
)),
|
|
258
258
|
proposed: "contribCommentPeekContext"
|
|
259
259
|
}, {
|
|
260
260
|
key: "commentsView/commentThread/context",
|
|
261
261
|
id: MenuId.CommentsViewThreadActions,
|
|
262
|
-
description: ( localize(
|
|
262
|
+
description: ( localize(17258, "The contributed comment thread context menu in the comments view")),
|
|
263
263
|
proposed: "contribCommentsViewThreadMenus"
|
|
264
264
|
}, {
|
|
265
265
|
key: "notebook/toolbar",
|
|
266
266
|
id: MenuId.NotebookToolbar,
|
|
267
|
-
description: ( localize(
|
|
267
|
+
description: ( localize(17259, "The contributed notebook toolbar menu"))
|
|
268
268
|
}, {
|
|
269
269
|
key: "notebook/kernelSource",
|
|
270
270
|
id: MenuId.NotebookKernelSource,
|
|
271
|
-
description: ( localize(
|
|
271
|
+
description: ( localize(17260, "The contributed notebook kernel sources menu")),
|
|
272
272
|
proposed: "notebookKernelSource"
|
|
273
273
|
}, {
|
|
274
274
|
key: "notebook/cell/title",
|
|
275
275
|
id: MenuId.NotebookCellTitle,
|
|
276
|
-
description: ( localize(
|
|
276
|
+
description: ( localize(17261, "The contributed notebook cell title menu"))
|
|
277
277
|
}, {
|
|
278
278
|
key: "notebook/cell/execute",
|
|
279
279
|
id: MenuId.NotebookCellExecute,
|
|
280
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(17262, "The contributed notebook cell execution menu"))
|
|
281
281
|
}, {
|
|
282
282
|
key: "interactive/toolbar",
|
|
283
283
|
id: MenuId.InteractiveToolbar,
|
|
284
|
-
description: ( localize(
|
|
284
|
+
description: ( localize(17263, "The contributed interactive toolbar menu"))
|
|
285
285
|
}, {
|
|
286
286
|
key: "interactive/cell/title",
|
|
287
287
|
id: MenuId.InteractiveCellTitle,
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(17264, "The contributed interactive cell title menu"))
|
|
289
289
|
}, {
|
|
290
290
|
key: "issue/reporter",
|
|
291
291
|
id: MenuId.IssueReporter,
|
|
292
|
-
description: ( localize(
|
|
292
|
+
description: ( localize(17265, "The contributed issue reporter menu"))
|
|
293
293
|
}, {
|
|
294
294
|
key: "testing/item/context",
|
|
295
295
|
id: MenuId.TestItem,
|
|
296
|
-
description: ( localize(
|
|
296
|
+
description: ( localize(17266, "The contributed test item menu"))
|
|
297
297
|
}, {
|
|
298
298
|
key: "testing/item/gutter",
|
|
299
299
|
id: MenuId.TestItemGutter,
|
|
300
|
-
description: ( localize(
|
|
300
|
+
description: ( localize(17267, "The menu for a gutter decoration for a test item"))
|
|
301
301
|
}, {
|
|
302
302
|
key: "testing/profiles/context",
|
|
303
303
|
id: MenuId.TestProfilesContext,
|
|
304
|
-
description: ( localize(
|
|
304
|
+
description: ( localize(17268, "The menu for configuring testing profiles."))
|
|
305
305
|
}, {
|
|
306
306
|
key: "testing/item/result",
|
|
307
307
|
id: MenuId.TestPeekElement,
|
|
308
|
-
description: ( localize(
|
|
308
|
+
description: ( localize(17269, "The menu for an item in the Test Results view or peek."))
|
|
309
309
|
}, {
|
|
310
310
|
key: "testing/message/context",
|
|
311
311
|
id: MenuId.TestMessageContext,
|
|
312
312
|
description: ( localize(
|
|
313
|
-
|
|
313
|
+
17270,
|
|
314
314
|
"A prominent button overlaying editor content where the message is displayed"
|
|
315
315
|
))
|
|
316
316
|
}, {
|
|
317
317
|
key: "testing/message/content",
|
|
318
318
|
id: MenuId.TestMessageContent,
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(17271, "Context menu for the message in the results tree"))
|
|
320
320
|
}, {
|
|
321
321
|
key: "extension/context",
|
|
322
322
|
id: MenuId.ExtensionContext,
|
|
323
|
-
description: ( localize(
|
|
323
|
+
description: ( localize(17272, "The extension context menu"))
|
|
324
324
|
}, {
|
|
325
325
|
key: "timeline/title",
|
|
326
326
|
id: MenuId.TimelineTitle,
|
|
327
|
-
description: ( localize(
|
|
327
|
+
description: ( localize(17273, "The Timeline view title menu"))
|
|
328
328
|
}, {
|
|
329
329
|
key: "timeline/item/context",
|
|
330
330
|
id: MenuId.TimelineItemContext,
|
|
331
|
-
description: ( localize(
|
|
331
|
+
description: ( localize(17274, "The Timeline view item context menu"))
|
|
332
332
|
}, {
|
|
333
333
|
key: "ports/item/context",
|
|
334
334
|
id: MenuId.TunnelContext,
|
|
335
|
-
description: ( localize(
|
|
335
|
+
description: ( localize(17275, "The Ports view item context menu"))
|
|
336
336
|
}, {
|
|
337
337
|
key: "ports/item/origin/inline",
|
|
338
338
|
id: MenuId.TunnelOriginInline,
|
|
339
|
-
description: ( localize(
|
|
339
|
+
description: ( localize(17276, "The Ports view item origin inline menu"))
|
|
340
340
|
}, {
|
|
341
341
|
key: "ports/item/port/inline",
|
|
342
342
|
id: MenuId.TunnelPortInline,
|
|
343
|
-
description: ( localize(
|
|
343
|
+
description: ( localize(17277, "The Ports view item port inline menu"))
|
|
344
344
|
}, {
|
|
345
345
|
key: "file/newFile",
|
|
346
346
|
id: MenuId.NewFile,
|
|
347
347
|
description: ( localize(
|
|
348
|
-
|
|
348
|
+
17278,
|
|
349
349
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
350
350
|
)),
|
|
351
351
|
supportsSubmenus: false
|
|
352
352
|
}, {
|
|
353
353
|
key: "webview/context",
|
|
354
354
|
id: MenuId.WebviewContext,
|
|
355
|
-
description: ( localize(
|
|
355
|
+
description: ( localize(17279, "The webview context menu"))
|
|
356
356
|
}, {
|
|
357
357
|
key: "file/share",
|
|
358
358
|
id: MenuId.MenubarShare,
|
|
359
|
-
description: ( localize(
|
|
359
|
+
description: ( localize(17280, "Share submenu shown in the top level File menu.")),
|
|
360
360
|
proposed: "contribShareMenu"
|
|
361
361
|
}, {
|
|
362
362
|
key: "editor/inlineCompletions/actions",
|
|
363
363
|
id: MenuId.InlineCompletionsActions,
|
|
364
|
-
description: ( localize(
|
|
364
|
+
description: ( localize(17281, "The actions shown when hovering on an inline completion")),
|
|
365
365
|
supportsSubmenus: false,
|
|
366
366
|
proposed: "inlineCompletionsAdditions"
|
|
367
367
|
}, {
|
|
368
368
|
key: "editor/content",
|
|
369
369
|
id: MenuId.EditorContent,
|
|
370
|
-
description: ( localize(
|
|
370
|
+
description: ( localize(17282, "The prominent button in an editor, overlays its content")),
|
|
371
371
|
proposed: "contribEditorContentMenu"
|
|
372
372
|
}, {
|
|
373
373
|
key: "editor/lineNumber/context",
|
|
374
374
|
id: MenuId.EditorLineNumberContext,
|
|
375
|
-
description: ( localize(
|
|
375
|
+
description: ( localize(17283, "The contributed editor line number context menu"))
|
|
376
376
|
}, {
|
|
377
377
|
key: "mergeEditor/result/title",
|
|
378
378
|
id: MenuId.MergeInputResultToolbar,
|
|
379
|
-
description: ( localize(
|
|
379
|
+
description: ( localize(17284, "The result toolbar of the merge editor")),
|
|
380
380
|
proposed: "contribMergeEditorMenus"
|
|
381
381
|
}, {
|
|
382
382
|
key: "multiDiffEditor/content",
|
|
383
383
|
id: MenuId.MultiDiffEditorContent,
|
|
384
|
-
description: ( localize(
|
|
384
|
+
description: ( localize(17285, "A prominent button overlaying the multi diff editor")),
|
|
385
385
|
proposed: "contribEditorContentMenu"
|
|
386
386
|
}, {
|
|
387
387
|
key: "multiDiffEditor/resource/title",
|
|
388
388
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
389
|
-
description: ( localize(
|
|
389
|
+
description: ( localize(17286, "The resource toolbar in the multi diff editor")),
|
|
390
390
|
proposed: "contribMultiDiffEditorMenus"
|
|
391
391
|
}, {
|
|
392
392
|
key: "diffEditor/gutter/hunk",
|
|
393
393
|
id: MenuId.DiffEditorHunkToolbar,
|
|
394
|
-
description: ( localize(
|
|
394
|
+
description: ( localize(17287, "The gutter toolbar in the diff editor")),
|
|
395
395
|
proposed: "contribDiffEditorGutterToolBarMenus"
|
|
396
396
|
}, {
|
|
397
397
|
key: "diffEditor/gutter/selection",
|
|
398
398
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
399
|
-
description: ( localize(
|
|
399
|
+
description: ( localize(17287, "The gutter toolbar in the diff editor")),
|
|
400
400
|
proposed: "contribDiffEditorGutterToolBarMenus"
|
|
401
401
|
}, {
|
|
402
402
|
key: "searchPanel/aiResults/commands",
|
|
403
403
|
id: MenuId.SearchActionMenu,
|
|
404
404
|
description: ( localize(
|
|
405
|
-
|
|
405
|
+
17288,
|
|
406
406
|
"The commands that will contribute to the menu rendered as buttons next to the AI search title"
|
|
407
407
|
))
|
|
408
408
|
}, {
|
|
409
409
|
key: "editor/context/chat",
|
|
410
410
|
id: MenuId.ChatTextEditorMenu,
|
|
411
|
-
description: ( localize(
|
|
411
|
+
description: ( localize(17289, "The Chat submenu in the text editor context menu.")),
|
|
412
412
|
supportsSubmenus: false,
|
|
413
413
|
proposed: "chatParticipantPrivate"
|
|
414
414
|
}, {
|
|
415
415
|
key: "chat/input/editing/sessionToolbar",
|
|
416
416
|
id: MenuId.ChatEditingSessionChangesToolbar,
|
|
417
|
-
description: ( localize(
|
|
417
|
+
description: ( localize(17290, "The Chat Editing widget toolbar menu for session changes.")),
|
|
418
418
|
proposed: "chatSessionsProvider"
|
|
419
419
|
}, {
|
|
420
420
|
key: "chat/input/editing/sessionTitleToolbar",
|
|
421
421
|
id: MenuId.ChatEditingSessionTitleToolbar,
|
|
422
|
-
description: ( localize(
|
|
422
|
+
description: ( localize(17291, "The Chat Editing widget toolbar menu for session title.")),
|
|
423
423
|
proposed: "chatSessionsProvider"
|
|
424
424
|
}, {
|
|
425
425
|
key: "chat/chatSessions",
|
|
426
426
|
id: MenuId.AgentSessionsContext,
|
|
427
|
-
description: ( localize(
|
|
427
|
+
description: ( localize(17292, "The Chat Sessions menu.")),
|
|
428
428
|
supportsSubmenus: false,
|
|
429
429
|
proposed: "chatSessionsProvider"
|
|
430
430
|
}, {
|
|
431
431
|
key: "chatSessions/item/context",
|
|
432
432
|
id: MenuId.SessionItemContextMenu,
|
|
433
|
-
description: ( localize(
|
|
433
|
+
description: ( localize(17293, "The context menu for items in the Sessions window's session list.")),
|
|
434
434
|
supportsSubmenus: false,
|
|
435
435
|
proposed: "chatSessionsProvider"
|
|
436
436
|
}, {
|
|
437
437
|
key: "chatSessions/newSession",
|
|
438
438
|
id: MenuId.AgentSessionsCreateSubMenu,
|
|
439
|
-
description: ( localize(
|
|
439
|
+
description: ( localize(17294, "Menu for new chat sessions.")),
|
|
440
440
|
supportsSubmenus: false,
|
|
441
441
|
proposed: "chatSessionsProvider"
|
|
442
442
|
}, {
|
|
443
443
|
key: "chat/multiDiff/context",
|
|
444
444
|
id: MenuId.ChatMultiDiffContext,
|
|
445
|
-
description: ( localize(
|
|
445
|
+
description: ( localize(17295, "The Chat Multi-Diff context menu.")),
|
|
446
446
|
supportsSubmenus: false,
|
|
447
447
|
proposed: "chatSessionsProvider"
|
|
448
448
|
}, {
|
|
449
449
|
key: "chat/customizations/create",
|
|
450
450
|
id: MenuId.for("AICustomizationManagementCreate"),
|
|
451
|
-
description: ( localize(
|
|
451
|
+
description: ( localize(17296, "The create button in the Chat Customizations management editor.")),
|
|
452
452
|
supportsSubmenus: false,
|
|
453
453
|
proposed: "chatSessionCustomizationProvider"
|
|
454
454
|
}, {
|
|
455
455
|
key: "chat/customizations/item",
|
|
456
456
|
id: MenuId.for("AICustomizationManagementEditorItem"),
|
|
457
457
|
description: ( localize(
|
|
458
|
-
|
|
458
|
+
17297,
|
|
459
459
|
"The item context menu in the Chat Customizations management editor, including inline actions."
|
|
460
460
|
)),
|
|
461
461
|
supportsSubmenus: false,
|
|
@@ -463,36 +463,36 @@ const apiMenus = [{
|
|
|
463
463
|
}, {
|
|
464
464
|
key: "chat/editor/inlineGutter",
|
|
465
465
|
id: MenuId.ChatEditorInlineMenu,
|
|
466
|
-
description: ( localize(
|
|
466
|
+
description: ( localize(17298, "The inline gutter menu in the chat editor.")),
|
|
467
467
|
supportsSubmenus: false,
|
|
468
468
|
proposed: "contribChatEditorInlineGutterMenu"
|
|
469
469
|
}, {
|
|
470
470
|
key: "chat/contextUsage/actions",
|
|
471
471
|
id: MenuId.ChatContextUsageActions,
|
|
472
|
-
description: ( localize(
|
|
472
|
+
description: ( localize(17299, "Actions in the chat context usage details popup.")),
|
|
473
473
|
proposed: "chatParticipantAdditions"
|
|
474
474
|
}, {
|
|
475
475
|
key: "chat/newSession",
|
|
476
476
|
id: MenuId.ChatNewMenu,
|
|
477
|
-
description: ( localize(
|
|
477
|
+
description: ( localize(17300, "The Chat new session menu.")),
|
|
478
478
|
proposed: "chatSessionsProvider"
|
|
479
479
|
}, {
|
|
480
480
|
key: "agents/changes/actions",
|
|
481
481
|
id: MenuId.AgentsChangesToolbar,
|
|
482
|
-
description: ( localize(
|
|
482
|
+
description: ( localize(17301, "The Changes view toolbar of the agents window.")),
|
|
483
483
|
proposed: "chatSessionsProvider"
|
|
484
484
|
}, {
|
|
485
485
|
key: "agents/changes/actions/primary",
|
|
486
486
|
id: MenuId.AgentsChangesPrimaryActionSubMenu,
|
|
487
487
|
description: ( localize(
|
|
488
|
-
|
|
488
|
+
17302,
|
|
489
489
|
"The Changes view toolbar primary action submenu in the agents window."
|
|
490
490
|
)),
|
|
491
491
|
proposed: "chatSessionsProvider"
|
|
492
492
|
}, {
|
|
493
493
|
key: "agents/change/inline",
|
|
494
494
|
id: MenuId.AgentsChangeInlineToolbar,
|
|
495
|
-
description: ( localize(
|
|
495
|
+
description: ( localize(17303, "The Changes view inline menu in the agents window.")),
|
|
496
496
|
proposed: "chatSessionsProvider"
|
|
497
497
|
}];
|
|
498
498
|
var schema;
|
|
@@ -504,23 +504,23 @@ var schema;
|
|
|
504
504
|
function isValidMenuItem(item, collector) {
|
|
505
505
|
if (typeof item.command !== "string") {
|
|
506
506
|
collector.error(( localize(
|
|
507
|
-
|
|
507
|
+
17304,
|
|
508
508
|
"property `{0}` is mandatory and must be of type `string`",
|
|
509
509
|
"command"
|
|
510
510
|
)));
|
|
511
511
|
return false;
|
|
512
512
|
}
|
|
513
513
|
if (item.alt && typeof item.alt !== "string") {
|
|
514
|
-
collector.error(( localize(
|
|
514
|
+
collector.error(( localize(17305, "property `{0}` can be omitted or must be of type `string`", "alt")));
|
|
515
515
|
return false;
|
|
516
516
|
}
|
|
517
517
|
if (item.when && typeof item.when !== "string") {
|
|
518
|
-
collector.error(( localize(
|
|
518
|
+
collector.error(( localize(17305, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
519
519
|
return false;
|
|
520
520
|
}
|
|
521
521
|
if (item.group && typeof item.group !== "string") {
|
|
522
522
|
collector.error(( localize(
|
|
523
|
-
|
|
523
|
+
17305,
|
|
524
524
|
"property `{0}` can be omitted or must be of type `string`",
|
|
525
525
|
"group"
|
|
526
526
|
)));
|
|
@@ -532,19 +532,19 @@ var schema;
|
|
|
532
532
|
function isValidSubmenuItem(item, collector) {
|
|
533
533
|
if (typeof item.submenu !== "string") {
|
|
534
534
|
collector.error(( localize(
|
|
535
|
-
|
|
535
|
+
17304,
|
|
536
536
|
"property `{0}` is mandatory and must be of type `string`",
|
|
537
537
|
"submenu"
|
|
538
538
|
)));
|
|
539
539
|
return false;
|
|
540
540
|
}
|
|
541
541
|
if (item.when && typeof item.when !== "string") {
|
|
542
|
-
collector.error(( localize(
|
|
542
|
+
collector.error(( localize(17305, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
543
543
|
return false;
|
|
544
544
|
}
|
|
545
545
|
if (item.group && typeof item.group !== "string") {
|
|
546
546
|
collector.error(( localize(
|
|
547
|
-
|
|
547
|
+
17305,
|
|
548
548
|
"property `{0}` can be omitted or must be of type `string`",
|
|
549
549
|
"group"
|
|
550
550
|
)));
|
|
@@ -555,7 +555,7 @@ var schema;
|
|
|
555
555
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
556
556
|
function isValidItems(items, collector) {
|
|
557
557
|
if (!Array.isArray(items)) {
|
|
558
|
-
collector.error(( localize(
|
|
558
|
+
collector.error(( localize(17306, "submenu items must be an array")));
|
|
559
559
|
return false;
|
|
560
560
|
}
|
|
561
561
|
for (const item of items) {
|
|
@@ -574,15 +574,15 @@ var schema;
|
|
|
574
574
|
schema.isValidItems = isValidItems;
|
|
575
575
|
function isValidSubmenu(submenu, collector) {
|
|
576
576
|
if (typeof submenu !== "object") {
|
|
577
|
-
collector.error(( localize(
|
|
577
|
+
collector.error(( localize(17307, "submenu items must be an object")));
|
|
578
578
|
return false;
|
|
579
579
|
}
|
|
580
580
|
if (typeof submenu.id !== "string") {
|
|
581
|
-
collector.error(( localize(
|
|
581
|
+
collector.error(( localize(17304, "property `{0}` is mandatory and must be of type `string`", "id")));
|
|
582
582
|
return false;
|
|
583
583
|
}
|
|
584
584
|
if (typeof submenu.label !== "string") {
|
|
585
|
-
collector.error(( localize(
|
|
585
|
+
collector.error(( localize(17304, "property `{0}` is mandatory and must be of type `string`", "label")));
|
|
586
586
|
return false;
|
|
587
587
|
}
|
|
588
588
|
return true;
|
|
@@ -594,24 +594,24 @@ var schema;
|
|
|
594
594
|
properties: {
|
|
595
595
|
command: {
|
|
596
596
|
description: ( localize(
|
|
597
|
-
|
|
597
|
+
17308,
|
|
598
598
|
"Identifier of the command to execute. The command must be declared in the 'commands'-section"
|
|
599
599
|
)),
|
|
600
600
|
type: "string"
|
|
601
601
|
},
|
|
602
602
|
alt: {
|
|
603
603
|
description: ( localize(
|
|
604
|
-
|
|
604
|
+
17309,
|
|
605
605
|
"Identifier of an alternative command to execute. The command must be declared in the 'commands'-section"
|
|
606
606
|
)),
|
|
607
607
|
type: "string"
|
|
608
608
|
},
|
|
609
609
|
when: {
|
|
610
|
-
description: ( localize(
|
|
610
|
+
description: ( localize(17310, "Condition which must be true to show this item")),
|
|
611
611
|
type: "string"
|
|
612
612
|
},
|
|
613
613
|
group: {
|
|
614
|
-
description: ( localize(
|
|
614
|
+
description: ( localize(17311, "Group into which this item belongs")),
|
|
615
615
|
type: "string"
|
|
616
616
|
}
|
|
617
617
|
}
|
|
@@ -621,15 +621,15 @@ var schema;
|
|
|
621
621
|
required: ["submenu"],
|
|
622
622
|
properties: {
|
|
623
623
|
submenu: {
|
|
624
|
-
description: ( localize(
|
|
624
|
+
description: ( localize(17312, "Identifier of the submenu to display in this item.")),
|
|
625
625
|
type: "string"
|
|
626
626
|
},
|
|
627
627
|
when: {
|
|
628
|
-
description: ( localize(
|
|
628
|
+
description: ( localize(17310, "Condition which must be true to show this item")),
|
|
629
629
|
type: "string"
|
|
630
630
|
},
|
|
631
631
|
group: {
|
|
632
|
-
description: ( localize(
|
|
632
|
+
description: ( localize(17311, "Group into which this item belongs")),
|
|
633
633
|
type: "string"
|
|
634
634
|
}
|
|
635
635
|
}
|
|
@@ -639,16 +639,16 @@ var schema;
|
|
|
639
639
|
required: ["id", "label"],
|
|
640
640
|
properties: {
|
|
641
641
|
id: {
|
|
642
|
-
description: ( localize(
|
|
642
|
+
description: ( localize(17313, "Identifier of the menu to display as a submenu.")),
|
|
643
643
|
type: "string"
|
|
644
644
|
},
|
|
645
645
|
label: {
|
|
646
|
-
description: ( localize(
|
|
646
|
+
description: ( localize(17314, "The label of the menu item which leads to this submenu.")),
|
|
647
647
|
type: "string"
|
|
648
648
|
},
|
|
649
649
|
icon: {
|
|
650
650
|
description: ( localize(
|
|
651
|
-
|
|
651
|
+
17315,
|
|
652
652
|
"(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)\""
|
|
653
653
|
)),
|
|
654
654
|
anyOf: [{
|
|
@@ -657,11 +657,11 @@ var schema;
|
|
|
657
657
|
type: "object",
|
|
658
658
|
properties: {
|
|
659
659
|
light: {
|
|
660
|
-
description: ( localize(
|
|
660
|
+
description: ( localize(17316, "Icon path when a light theme is used")),
|
|
661
661
|
type: "string"
|
|
662
662
|
},
|
|
663
663
|
dark: {
|
|
664
|
-
description: ( localize(
|
|
664
|
+
description: ( localize(17317, "Icon path when a dark theme is used")),
|
|
665
665
|
type: "string"
|
|
666
666
|
}
|
|
667
667
|
}
|
|
@@ -670,11 +670,11 @@ var schema;
|
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
672
|
schema.menusContribution = {
|
|
673
|
-
description: ( localize(
|
|
673
|
+
description: ( localize(17318, "Contributes menu items to the editor")),
|
|
674
674
|
type: "object",
|
|
675
675
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
676
676
|
markdownDescription: menu.proposed ? ( localize(
|
|
677
|
-
|
|
677
|
+
17319,
|
|
678
678
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
679
679
|
menu.proposed,
|
|
680
680
|
menu.description
|
|
@@ -693,18 +693,18 @@ var schema;
|
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
695
|
schema.submenusContribution = {
|
|
696
|
-
description: ( localize(
|
|
696
|
+
description: ( localize(17320, "Contributes submenu items to the editor")),
|
|
697
697
|
type: "array",
|
|
698
698
|
items: submenu
|
|
699
699
|
};
|
|
700
700
|
function isValidCommand(command, collector) {
|
|
701
701
|
if (!command) {
|
|
702
|
-
collector.error(( localize(
|
|
702
|
+
collector.error(( localize(17321, "expected non-empty value.")));
|
|
703
703
|
return false;
|
|
704
704
|
}
|
|
705
705
|
if (isFalsyOrWhitespace(command.command)) {
|
|
706
706
|
collector.error(( localize(
|
|
707
|
-
|
|
707
|
+
17304,
|
|
708
708
|
"property `{0}` is mandatory and must be of type `string`",
|
|
709
709
|
"command"
|
|
710
710
|
)));
|
|
@@ -718,7 +718,7 @@ var schema;
|
|
|
718
718
|
}
|
|
719
719
|
if (command.enablement && typeof command.enablement !== "string") {
|
|
720
720
|
collector.error(( localize(
|
|
721
|
-
|
|
721
|
+
17305,
|
|
722
722
|
"property `{0}` can be omitted or must be of type `string`",
|
|
723
723
|
"precondition"
|
|
724
724
|
)));
|
|
@@ -743,7 +743,7 @@ var schema;
|
|
|
743
743
|
return true;
|
|
744
744
|
}
|
|
745
745
|
collector.error(( localize(
|
|
746
|
-
|
|
746
|
+
17322,
|
|
747
747
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
748
748
|
)));
|
|
749
749
|
return false;
|
|
@@ -751,21 +751,21 @@ var schema;
|
|
|
751
751
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
752
752
|
if (typeof localized === "undefined") {
|
|
753
753
|
collector.error(( localize(
|
|
754
|
-
|
|
754
|
+
17323,
|
|
755
755
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
756
756
|
propertyName
|
|
757
757
|
)));
|
|
758
758
|
return false;
|
|
759
759
|
} else if (typeof localized === "string" && isFalsyOrWhitespace(localized)) {
|
|
760
760
|
collector.error(( localize(
|
|
761
|
-
|
|
761
|
+
17304,
|
|
762
762
|
"property `{0}` is mandatory and must be of type `string`",
|
|
763
763
|
propertyName
|
|
764
764
|
)));
|
|
765
765
|
return false;
|
|
766
766
|
} else if (typeof localized !== "string" && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
767
767
|
collector.error(( localize(
|
|
768
|
-
|
|
768
|
+
17324,
|
|
769
769
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
770
770
|
`${propertyName}.value`,
|
|
771
771
|
`${propertyName}.original`
|
|
@@ -779,37 +779,37 @@ var schema;
|
|
|
779
779
|
required: ["command", "title"],
|
|
780
780
|
properties: {
|
|
781
781
|
command: {
|
|
782
|
-
description: ( localize(
|
|
782
|
+
description: ( localize(17325, "Identifier of the command to execute")),
|
|
783
783
|
type: "string"
|
|
784
784
|
},
|
|
785
785
|
title: {
|
|
786
|
-
description: ( localize(
|
|
786
|
+
description: ( localize(17326, "Title by which the command is represented in the UI")),
|
|
787
787
|
type: "string"
|
|
788
788
|
},
|
|
789
789
|
shortTitle: {
|
|
790
790
|
markdownDescription: ( localize(
|
|
791
|
-
|
|
791
|
+
17327,
|
|
792
792
|
"(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."
|
|
793
793
|
)),
|
|
794
794
|
type: "string"
|
|
795
795
|
},
|
|
796
796
|
category: {
|
|
797
797
|
description: ( localize(
|
|
798
|
-
|
|
798
|
+
17328,
|
|
799
799
|
"(Optional) Category string by which the command is grouped in the UI"
|
|
800
800
|
)),
|
|
801
801
|
type: "string"
|
|
802
802
|
},
|
|
803
803
|
enablement: {
|
|
804
804
|
description: ( localize(
|
|
805
|
-
|
|
805
|
+
17329,
|
|
806
806
|
"(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."
|
|
807
807
|
)),
|
|
808
808
|
type: "string"
|
|
809
809
|
},
|
|
810
810
|
icon: {
|
|
811
811
|
description: ( localize(
|
|
812
|
-
|
|
812
|
+
17330,
|
|
813
813
|
"(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)\""
|
|
814
814
|
)),
|
|
815
815
|
anyOf: [{
|
|
@@ -818,11 +818,11 @@ var schema;
|
|
|
818
818
|
type: "object",
|
|
819
819
|
properties: {
|
|
820
820
|
light: {
|
|
821
|
-
description: ( localize(
|
|
821
|
+
description: ( localize(17331, "Icon path when a light theme is used")),
|
|
822
822
|
type: "string"
|
|
823
823
|
},
|
|
824
824
|
dark: {
|
|
825
|
-
description: ( localize(
|
|
825
|
+
description: ( localize(17332, "Icon path when a dark theme is used")),
|
|
826
826
|
type: "string"
|
|
827
827
|
}
|
|
828
828
|
}
|
|
@@ -831,7 +831,7 @@ var schema;
|
|
|
831
831
|
}
|
|
832
832
|
};
|
|
833
833
|
schema.commandsContribution = {
|
|
834
|
-
description: ( localize(
|
|
834
|
+
description: ( localize(17333, "Contributes commands to the command palette.")),
|
|
835
835
|
oneOf: [commandType, {
|
|
836
836
|
type: "array",
|
|
837
837
|
items: commandType
|
|
@@ -881,14 +881,14 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
881
881
|
if (existingCmd) {
|
|
882
882
|
if (existingCmd.source) {
|
|
883
883
|
extension.collector.info(( localize(
|
|
884
|
-
|
|
884
|
+
17334,
|
|
885
885
|
"Command `{0}` already registered by {1} ({2})",
|
|
886
886
|
userFriendlyCommand.command,
|
|
887
887
|
existingCmd.source.title,
|
|
888
888
|
existingCmd.source.id
|
|
889
889
|
)));
|
|
890
890
|
} else {
|
|
891
|
-
extension.collector.info(( localize(
|
|
891
|
+
extension.collector.info(( localize(17335, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -936,19 +936,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
936
936
|
continue;
|
|
937
937
|
}
|
|
938
938
|
if (!submenuInfo.id) {
|
|
939
|
-
collector.warn(( localize(
|
|
939
|
+
collector.warn(( localize(17336, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
940
940
|
continue;
|
|
941
941
|
}
|
|
942
942
|
if (( _submenus.has(submenuInfo.id))) {
|
|
943
943
|
collector.info(( localize(
|
|
944
|
-
|
|
944
|
+
17337,
|
|
945
945
|
"The `{0}` submenu was already previously registered.",
|
|
946
946
|
submenuInfo.id
|
|
947
947
|
)));
|
|
948
948
|
continue;
|
|
949
949
|
}
|
|
950
950
|
if (!submenuInfo.label) {
|
|
951
|
-
collector.warn(( localize(
|
|
951
|
+
collector.warn(( localize(17338, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
952
952
|
continue;
|
|
953
953
|
}
|
|
954
954
|
let absoluteIcon;
|
|
@@ -1009,7 +1009,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
if (menu.proposed && !isProposedApiEnabled(extension.description)) {
|
|
1011
1011
|
collector.error(( localize(
|
|
1012
|
-
|
|
1012
|
+
17339,
|
|
1013
1013
|
"{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}",
|
|
1014
1014
|
entry[0],
|
|
1015
1015
|
menu.proposed,
|
|
@@ -1024,7 +1024,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1024
1024
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
1025
1025
|
if (!command) {
|
|
1026
1026
|
collector.error(( localize(
|
|
1027
|
-
|
|
1027
|
+
17340,
|
|
1028
1028
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
1029
1029
|
menuItem.command
|
|
1030
1030
|
)));
|
|
@@ -1032,13 +1032,13 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
if (menuItem.alt && !alt) {
|
|
1034
1034
|
collector.warn(( localize(
|
|
1035
|
-
|
|
1035
|
+
17341,
|
|
1036
1036
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
1037
1037
|
menuItem.alt
|
|
1038
1038
|
)));
|
|
1039
1039
|
}
|
|
1040
1040
|
if (menuItem.command === menuItem.alt) {
|
|
1041
|
-
collector.info(( localize(
|
|
1041
|
+
collector.info(( localize(17342, "Menu item references the same command as default and alt-command")));
|
|
1042
1042
|
}
|
|
1043
1043
|
item = {
|
|
1044
1044
|
command,
|
|
@@ -1050,7 +1050,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1050
1050
|
} else {
|
|
1051
1051
|
if (menu.supportsSubmenus === false) {
|
|
1052
1052
|
collector.error(( localize(
|
|
1053
|
-
|
|
1053
|
+
17343,
|
|
1054
1054
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1055
1055
|
)));
|
|
1056
1056
|
continue;
|
|
@@ -1058,7 +1058,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1058
1058
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1059
1059
|
if (!submenu) {
|
|
1060
1060
|
collector.error(( localize(
|
|
1061
|
-
|
|
1061
|
+
17344,
|
|
1062
1062
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1063
1063
|
menuItem.submenu
|
|
1064
1064
|
)));
|
|
@@ -1071,7 +1071,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1073
1073
|
collector.warn(( localize(
|
|
1074
|
-
|
|
1074
|
+
17345,
|
|
1075
1075
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1076
1076
|
menuItem.submenu,
|
|
1077
1077
|
entry[0]
|
|
@@ -1099,7 +1099,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes("viewContainer == workbench.view.debug")) {
|
|
1101
1101
|
collector.error(( localize(
|
|
1102
|
-
|
|
1102
|
+
17346,
|
|
1103
1103
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1104
1104
|
"`viewContainer/title`",
|
|
1105
1105
|
"`viewContainer == workbench.view.debug`",
|
|
@@ -1201,7 +1201,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1201
1201
|
dispose: () => {}
|
|
1202
1202
|
};
|
|
1203
1203
|
}
|
|
1204
|
-
const headers = [( localize(
|
|
1204
|
+
const headers = [( localize(17347, "ID")), ( localize(17348, "Title")), ( localize(17349, "Keyboard Shortcuts")), ( localize(17350, "Menu Contexts"))];
|
|
1205
1205
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id)).map(command => {
|
|
1206
1206
|
return [( new MarkdownString()).appendMarkdown(`\`${command.id}\``), typeof command.title === "string" ? command.title : command.title.value, command.keybindings, ( new MarkdownString()).appendMarkdown(`${( command.menus.sort((a, b) => a.localeCompare(b)).map(menu => `\`${menu}\``)).join(" ")}`)];
|
|
1207
1207
|
}));
|
|
@@ -1232,7 +1232,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1232
1232
|
CommandsTableRenderer = ( __decorate([( __param(0, IKeybindingService))], CommandsTableRenderer));
|
|
1233
1233
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1234
1234
|
id: "commands",
|
|
1235
|
-
label: ( localize(
|
|
1235
|
+
label: ( localize(17351, "Commands")),
|
|
1236
1236
|
access: {
|
|
1237
1237
|
canToggle: false
|
|
1238
1238
|
},
|