@codingame/monaco-vscode-keybindings-service-override 18.1.3 → 18.2.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-keybindings-service-override",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - keybindings service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "18.
|
|
19
|
-
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "18.
|
|
20
|
-
"@codingame/monaco-vscode-a3eaa464-944c-5b8f-8886-213068ba4897-common": "18.
|
|
21
|
-
"@codingame/monaco-vscode-api": "18.
|
|
22
|
-
"@codingame/monaco-vscode-c87fff3a-2aa9-52ab-ba4d-17e8d1e5e185-common": "18.
|
|
23
|
-
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "18.
|
|
24
|
-
"@codingame/monaco-vscode-files-service-override": "18.
|
|
18
|
+
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "18.2.0",
|
|
19
|
+
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "18.2.0",
|
|
20
|
+
"@codingame/monaco-vscode-a3eaa464-944c-5b8f-8886-213068ba4897-common": "18.2.0",
|
|
21
|
+
"@codingame/monaco-vscode-api": "18.2.0",
|
|
22
|
+
"@codingame/monaco-vscode-c87fff3a-2aa9-52ab-ba4d-17e8d1e5e185-common": "18.2.0",
|
|
23
|
+
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "18.2.0",
|
|
24
|
+
"@codingame/monaco-vscode-files-service-override": "18.2.0"
|
|
25
25
|
},
|
|
26
26
|
"main": "index.js",
|
|
27
27
|
"module": "index.js",
|
|
@@ -21,215 +21,215 @@ const apiMenus = [
|
|
|
21
21
|
{
|
|
22
22
|
key: 'commandPalette',
|
|
23
23
|
id: MenuId.CommandPalette,
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(12198, "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(12199, "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(12200, "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(12201, "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(12202, "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(12203, "'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(12204, "'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(12205, "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(12206, "'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(12207, "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(12208, "'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(12209, "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(12210, "The debug variables view context menu"))
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
key: 'debug/toolBar',
|
|
93
93
|
id: MenuId.DebugToolBar,
|
|
94
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(12211, "The debug toolbar menu"))
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
key: 'debug/createConfiguration',
|
|
98
98
|
id: MenuId.DebugCreateConfiguration,
|
|
99
99
|
proposed: 'contribDebugCreateConfiguration',
|
|
100
|
-
description: ( localize(
|
|
100
|
+
description: ( localize(12212, "The debug create configuration menu"))
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
key: 'notebook/variables/context',
|
|
104
104
|
id: MenuId.NotebookVariablesContext,
|
|
105
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(12213, "The notebook variables view context menu"))
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
key: 'menuBar/home',
|
|
109
109
|
id: MenuId.MenubarHomeMenu,
|
|
110
|
-
description: ( localize(
|
|
110
|
+
description: ( localize(12214, "The home indicator context menu (web only)")),
|
|
111
111
|
proposed: 'contribMenuBarHome',
|
|
112
112
|
supportsSubmenus: false
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
key: 'menuBar/edit/copy',
|
|
116
116
|
id: MenuId.MenubarCopy,
|
|
117
|
-
description: ( localize(
|
|
117
|
+
description: ( localize(12215, "'Copy as' submenu in the top level Edit menu"))
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
key: 'scm/title',
|
|
121
121
|
id: MenuId.SCMTitle,
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(12216, "The Source Control title menu"))
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
key: 'scm/sourceControl',
|
|
126
126
|
id: MenuId.SCMSourceControl,
|
|
127
|
-
description: ( localize(
|
|
127
|
+
description: ( localize(12217, "The Source Control menu"))
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
key: 'scm/sourceControl/title',
|
|
131
131
|
id: MenuId.SCMSourceControlTitle,
|
|
132
|
-
description: ( localize(
|
|
132
|
+
description: ( localize(12218, "The Source Control title menu")),
|
|
133
133
|
proposed: 'contribSourceControlTitleMenu'
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
key: 'scm/resourceState/context',
|
|
137
137
|
id: MenuId.SCMResourceContext,
|
|
138
|
-
description: ( localize(
|
|
138
|
+
description: ( localize(12219, "The Source Control resource state context menu"))
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
key: 'scm/resourceFolder/context',
|
|
142
142
|
id: MenuId.SCMResourceFolderContext,
|
|
143
|
-
description: ( localize(
|
|
143
|
+
description: ( localize(12220, "The Source Control resource folder context menu"))
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
key: 'scm/resourceGroup/context',
|
|
147
147
|
id: MenuId.SCMResourceGroupContext,
|
|
148
|
-
description: ( localize(
|
|
148
|
+
description: ( localize(12221, "The Source Control resource group context menu"))
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
key: 'scm/change/title',
|
|
152
152
|
id: MenuId.SCMChangeContext,
|
|
153
|
-
description: ( localize(
|
|
153
|
+
description: ( localize(12222, "The Source Control inline change menu"))
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
key: 'scm/inputBox',
|
|
157
157
|
id: MenuId.SCMInputBox,
|
|
158
|
-
description: ( localize(
|
|
158
|
+
description: ( localize(12223, "The Source Control input box menu")),
|
|
159
159
|
proposed: 'contribSourceControlInputBoxMenu'
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
key: 'scm/history/title',
|
|
163
163
|
id: MenuId.SCMHistoryTitle,
|
|
164
|
-
description: ( localize(
|
|
164
|
+
description: ( localize(12224, "The Source Control History title menu")),
|
|
165
165
|
proposed: 'contribSourceControlHistoryTitleMenu'
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
key: 'scm/historyItem/context',
|
|
169
169
|
id: MenuId.SCMHistoryItemContext,
|
|
170
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(12225, "The Source Control history item context menu")),
|
|
171
171
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
key: 'scm/historyItem/hover',
|
|
175
175
|
id: MenuId.SCMHistoryItemHover,
|
|
176
|
-
description: ( localize(
|
|
176
|
+
description: ( localize(12226, "The Source Control history item hover menu")),
|
|
177
177
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
key: 'scm/historyItemRef/context',
|
|
181
181
|
id: MenuId.SCMHistoryItemRefContext,
|
|
182
|
-
description: ( localize(
|
|
182
|
+
description: ( localize(12227, "The Source Control history item reference context menu")),
|
|
183
183
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
key: 'statusBar/remoteIndicator',
|
|
187
187
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
188
|
-
description: ( localize(
|
|
188
|
+
description: ( localize(12228, "The remote indicator menu in the status bar")),
|
|
189
189
|
supportsSubmenus: false
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
key: 'terminal/context',
|
|
193
193
|
id: MenuId.TerminalInstanceContext,
|
|
194
|
-
description: ( localize(
|
|
194
|
+
description: ( localize(12229, "The terminal context menu"))
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
key: 'terminal/title/context',
|
|
198
198
|
id: MenuId.TerminalTabContext,
|
|
199
|
-
description: ( localize(
|
|
199
|
+
description: ( localize(12230, "The terminal tabs context menu"))
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
key: 'view/title',
|
|
203
203
|
id: MenuId.ViewTitle,
|
|
204
|
-
description: ( localize(
|
|
204
|
+
description: ( localize(12231, "The contributed view title menu"))
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
key: 'viewContainer/title',
|
|
208
208
|
id: MenuId.ViewContainerTitle,
|
|
209
|
-
description: ( localize(
|
|
209
|
+
description: ( localize(12232, "The contributed view container title menu")),
|
|
210
210
|
proposed: 'contribViewContainerTitle'
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
key: 'view/item/context',
|
|
214
214
|
id: MenuId.ViewItemContext,
|
|
215
|
-
description: ( localize(
|
|
215
|
+
description: ( localize(12233, "The contributed view item context menu"))
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
key: 'comments/comment/editorActions',
|
|
219
219
|
id: MenuId.CommentEditorActions,
|
|
220
|
-
description: ( localize(
|
|
220
|
+
description: ( localize(12234, "The contributed comment editor actions")),
|
|
221
221
|
proposed: 'contribCommentEditorActionsMenu'
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
key: 'comments/commentThread/title',
|
|
225
225
|
id: MenuId.CommentThreadTitle,
|
|
226
|
-
description: ( localize(
|
|
226
|
+
description: ( localize(12235, "The contributed comment thread title menu"))
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
key: 'comments/commentThread/context',
|
|
230
230
|
id: MenuId.CommentThreadActions,
|
|
231
231
|
description: ( localize(
|
|
232
|
-
|
|
232
|
+
12236,
|
|
233
233
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
234
234
|
)),
|
|
235
235
|
supportsSubmenus: false
|
|
@@ -238,7 +238,7 @@ const apiMenus = [
|
|
|
238
238
|
key: 'comments/commentThread/additionalActions',
|
|
239
239
|
id: MenuId.CommentThreadAdditionalActions,
|
|
240
240
|
description: ( localize(
|
|
241
|
-
|
|
241
|
+
12236,
|
|
242
242
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
243
243
|
)),
|
|
244
244
|
supportsSubmenus: true,
|
|
@@ -248,7 +248,7 @@ const apiMenus = [
|
|
|
248
248
|
key: 'comments/commentThread/title/context',
|
|
249
249
|
id: MenuId.CommentThreadTitleContext,
|
|
250
250
|
description: ( localize(
|
|
251
|
-
|
|
251
|
+
12237,
|
|
252
252
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
253
253
|
)),
|
|
254
254
|
proposed: 'contribCommentPeekContext'
|
|
@@ -256,13 +256,13 @@ const apiMenus = [
|
|
|
256
256
|
{
|
|
257
257
|
key: 'comments/comment/title',
|
|
258
258
|
id: MenuId.CommentTitle,
|
|
259
|
-
description: ( localize(
|
|
259
|
+
description: ( localize(12238, "The contributed comment title menu"))
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
key: 'comments/comment/context',
|
|
263
263
|
id: MenuId.CommentActions,
|
|
264
264
|
description: ( localize(
|
|
265
|
-
|
|
265
|
+
12239,
|
|
266
266
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
267
267
|
)),
|
|
268
268
|
supportsSubmenus: false
|
|
@@ -271,7 +271,7 @@ const apiMenus = [
|
|
|
271
271
|
key: 'comments/commentThread/comment/context',
|
|
272
272
|
id: MenuId.CommentThreadCommentContext,
|
|
273
273
|
description: ( localize(
|
|
274
|
-
|
|
274
|
+
12240,
|
|
275
275
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
276
276
|
)),
|
|
277
277
|
proposed: 'contribCommentPeekContext'
|
|
@@ -279,113 +279,113 @@ const apiMenus = [
|
|
|
279
279
|
{
|
|
280
280
|
key: 'commentsView/commentThread/context',
|
|
281
281
|
id: MenuId.CommentsViewThreadActions,
|
|
282
|
-
description: ( localize(
|
|
282
|
+
description: ( localize(12241, "The contributed comment thread context menu in the comments view")),
|
|
283
283
|
proposed: 'contribCommentsViewThreadMenus'
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
key: 'notebook/toolbar',
|
|
287
287
|
id: MenuId.NotebookToolbar,
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(12242, "The contributed notebook toolbar menu"))
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
291
|
key: 'notebook/kernelSource',
|
|
292
292
|
id: MenuId.NotebookKernelSource,
|
|
293
|
-
description: ( localize(
|
|
293
|
+
description: ( localize(12243, "The contributed notebook kernel sources menu")),
|
|
294
294
|
proposed: 'notebookKernelSource'
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
297
|
key: 'notebook/cell/title',
|
|
298
298
|
id: MenuId.NotebookCellTitle,
|
|
299
|
-
description: ( localize(
|
|
299
|
+
description: ( localize(12244, "The contributed notebook cell title menu"))
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
key: 'notebook/cell/execute',
|
|
303
303
|
id: MenuId.NotebookCellExecute,
|
|
304
|
-
description: ( localize(
|
|
304
|
+
description: ( localize(12245, "The contributed notebook cell execution menu"))
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
key: 'interactive/toolbar',
|
|
308
308
|
id: MenuId.InteractiveToolbar,
|
|
309
|
-
description: ( localize(
|
|
309
|
+
description: ( localize(12246, "The contributed interactive toolbar menu")),
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
key: 'interactive/cell/title',
|
|
313
313
|
id: MenuId.InteractiveCellTitle,
|
|
314
|
-
description: ( localize(
|
|
314
|
+
description: ( localize(12247, "The contributed interactive cell title menu")),
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
key: 'issue/reporter',
|
|
318
318
|
id: MenuId.IssueReporter,
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(12248, "The contributed issue reporter menu"))
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
key: 'testing/item/context',
|
|
323
323
|
id: MenuId.TestItem,
|
|
324
|
-
description: ( localize(
|
|
324
|
+
description: ( localize(12249, "The contributed test item menu")),
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
key: 'testing/item/gutter',
|
|
328
328
|
id: MenuId.TestItemGutter,
|
|
329
|
-
description: ( localize(
|
|
329
|
+
description: ( localize(12250, "The menu for a gutter decoration for a test item")),
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
key: 'testing/profiles/context',
|
|
333
333
|
id: MenuId.TestProfilesContext,
|
|
334
|
-
description: ( localize(
|
|
334
|
+
description: ( localize(12251, "The menu for configuring testing profiles.")),
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
key: 'testing/item/result',
|
|
338
338
|
id: MenuId.TestPeekElement,
|
|
339
|
-
description: ( localize(
|
|
339
|
+
description: ( localize(12252, "The menu for an item in the Test Results view or peek.")),
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
key: 'testing/message/context',
|
|
343
343
|
id: MenuId.TestMessageContext,
|
|
344
344
|
description: ( localize(
|
|
345
|
-
|
|
345
|
+
12253,
|
|
346
346
|
"A prominent button overlaying editor content where the message is displayed"
|
|
347
347
|
)),
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
key: 'testing/message/content',
|
|
351
351
|
id: MenuId.TestMessageContent,
|
|
352
|
-
description: ( localize(
|
|
352
|
+
description: ( localize(12254, "Context menu for the message in the results tree")),
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
355
|
key: 'extension/context',
|
|
356
356
|
id: MenuId.ExtensionContext,
|
|
357
|
-
description: ( localize(
|
|
357
|
+
description: ( localize(12255, "The extension context menu"))
|
|
358
358
|
},
|
|
359
359
|
{
|
|
360
360
|
key: 'timeline/title',
|
|
361
361
|
id: MenuId.TimelineTitle,
|
|
362
|
-
description: ( localize(
|
|
362
|
+
description: ( localize(12256, "The Timeline view title menu"))
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
365
|
key: 'timeline/item/context',
|
|
366
366
|
id: MenuId.TimelineItemContext,
|
|
367
|
-
description: ( localize(
|
|
367
|
+
description: ( localize(12257, "The Timeline view item context menu"))
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
370
|
key: 'ports/item/context',
|
|
371
371
|
id: MenuId.TunnelContext,
|
|
372
|
-
description: ( localize(
|
|
372
|
+
description: ( localize(12258, "The Ports view item context menu"))
|
|
373
373
|
},
|
|
374
374
|
{
|
|
375
375
|
key: 'ports/item/origin/inline',
|
|
376
376
|
id: MenuId.TunnelOriginInline,
|
|
377
|
-
description: ( localize(
|
|
377
|
+
description: ( localize(12259, "The Ports view item origin inline menu"))
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
380
|
key: 'ports/item/port/inline',
|
|
381
381
|
id: MenuId.TunnelPortInline,
|
|
382
|
-
description: ( localize(
|
|
382
|
+
description: ( localize(12260, "The Ports view item port inline menu"))
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
385
|
key: 'file/newFile',
|
|
386
386
|
id: MenuId.NewFile,
|
|
387
387
|
description: ( localize(
|
|
388
|
-
|
|
388
|
+
12261,
|
|
389
389
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
390
390
|
)),
|
|
391
391
|
supportsSubmenus: false,
|
|
@@ -393,68 +393,68 @@ const apiMenus = [
|
|
|
393
393
|
{
|
|
394
394
|
key: 'webview/context',
|
|
395
395
|
id: MenuId.WebviewContext,
|
|
396
|
-
description: ( localize(
|
|
396
|
+
description: ( localize(12262, "The webview context menu"))
|
|
397
397
|
},
|
|
398
398
|
{
|
|
399
399
|
key: 'file/share',
|
|
400
400
|
id: MenuId.MenubarShare,
|
|
401
|
-
description: ( localize(
|
|
401
|
+
description: ( localize(12263, "Share submenu shown in the top level File menu.")),
|
|
402
402
|
proposed: 'contribShareMenu'
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
405
|
key: 'editor/inlineCompletions/actions',
|
|
406
406
|
id: MenuId.InlineCompletionsActions,
|
|
407
|
-
description: ( localize(
|
|
407
|
+
description: ( localize(12264, "The actions shown when hovering on an inline completion")),
|
|
408
408
|
supportsSubmenus: false,
|
|
409
409
|
proposed: 'inlineCompletionsAdditions'
|
|
410
410
|
},
|
|
411
411
|
{
|
|
412
412
|
key: 'editor/content',
|
|
413
413
|
id: MenuId.EditorContent,
|
|
414
|
-
description: ( localize(
|
|
414
|
+
description: ( localize(12265, "The prominent button in an editor, overlays its content")),
|
|
415
415
|
proposed: 'contribEditorContentMenu'
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
key: 'editor/lineNumber/context',
|
|
419
419
|
id: MenuId.EditorLineNumberContext,
|
|
420
|
-
description: ( localize(
|
|
420
|
+
description: ( localize(12266, "The contributed editor line number context menu"))
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
key: 'mergeEditor/result/title',
|
|
424
424
|
id: MenuId.MergeInputResultToolbar,
|
|
425
|
-
description: ( localize(
|
|
425
|
+
description: ( localize(12267, "The result toolbar of the merge editor")),
|
|
426
426
|
proposed: 'contribMergeEditorMenus'
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
429
|
key: 'multiDiffEditor/resource/title',
|
|
430
430
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
431
|
-
description: ( localize(
|
|
431
|
+
description: ( localize(12268, "The resource toolbar in the multi diff editor")),
|
|
432
432
|
proposed: 'contribMultiDiffEditorMenus'
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
435
|
key: 'diffEditor/gutter/hunk',
|
|
436
436
|
id: MenuId.DiffEditorHunkToolbar,
|
|
437
|
-
description: ( localize(
|
|
437
|
+
description: ( localize(12269, "The gutter toolbar in the diff editor")),
|
|
438
438
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
key: 'diffEditor/gutter/selection',
|
|
442
442
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
443
|
-
description: ( localize(
|
|
443
|
+
description: ( localize(12269, "The gutter toolbar in the diff editor")),
|
|
444
444
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
447
|
key: 'searchPanel/aiResults/commands',
|
|
448
448
|
id: MenuId.SearchActionMenu,
|
|
449
449
|
description: ( localize(
|
|
450
|
-
|
|
450
|
+
12270,
|
|
451
451
|
"The commands that will contribute to the menu rendered as buttons next to the AI search title"
|
|
452
452
|
)),
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
key: 'chat/modelPicker',
|
|
456
456
|
id: MenuId.ChatModelPicker,
|
|
457
|
-
description: ( localize(
|
|
457
|
+
description: ( localize(12271, "The chat model picker dropdown menu")),
|
|
458
458
|
supportsSubmenus: false,
|
|
459
459
|
proposed: 'chatParticipantPrivate'
|
|
460
460
|
}
|
|
@@ -468,23 +468,23 @@ var schema;
|
|
|
468
468
|
function isValidMenuItem(item, collector) {
|
|
469
469
|
if (typeof item.command !== 'string') {
|
|
470
470
|
collector.error(( localize(
|
|
471
|
-
|
|
471
|
+
12272,
|
|
472
472
|
"property `{0}` is mandatory and must be of type `string`",
|
|
473
473
|
'command'
|
|
474
474
|
)));
|
|
475
475
|
return false;
|
|
476
476
|
}
|
|
477
477
|
if (item.alt && typeof item.alt !== 'string') {
|
|
478
|
-
collector.error(( localize(
|
|
478
|
+
collector.error(( localize(12273, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
479
479
|
return false;
|
|
480
480
|
}
|
|
481
481
|
if (item.when && typeof item.when !== 'string') {
|
|
482
|
-
collector.error(( localize(
|
|
482
|
+
collector.error(( localize(12273, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
483
483
|
return false;
|
|
484
484
|
}
|
|
485
485
|
if (item.group && typeof item.group !== 'string') {
|
|
486
486
|
collector.error(( localize(
|
|
487
|
-
|
|
487
|
+
12273,
|
|
488
488
|
"property `{0}` can be omitted or must be of type `string`",
|
|
489
489
|
'group'
|
|
490
490
|
)));
|
|
@@ -496,19 +496,19 @@ var schema;
|
|
|
496
496
|
function isValidSubmenuItem(item, collector) {
|
|
497
497
|
if (typeof item.submenu !== 'string') {
|
|
498
498
|
collector.error(( localize(
|
|
499
|
-
|
|
499
|
+
12272,
|
|
500
500
|
"property `{0}` is mandatory and must be of type `string`",
|
|
501
501
|
'submenu'
|
|
502
502
|
)));
|
|
503
503
|
return false;
|
|
504
504
|
}
|
|
505
505
|
if (item.when && typeof item.when !== 'string') {
|
|
506
|
-
collector.error(( localize(
|
|
506
|
+
collector.error(( localize(12273, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
507
507
|
return false;
|
|
508
508
|
}
|
|
509
509
|
if (item.group && typeof item.group !== 'string') {
|
|
510
510
|
collector.error(( localize(
|
|
511
|
-
|
|
511
|
+
12273,
|
|
512
512
|
"property `{0}` can be omitted or must be of type `string`",
|
|
513
513
|
'group'
|
|
514
514
|
)));
|
|
@@ -519,7 +519,7 @@ var schema;
|
|
|
519
519
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
520
520
|
function isValidItems(items, collector) {
|
|
521
521
|
if (!Array.isArray(items)) {
|
|
522
|
-
collector.error(( localize(
|
|
522
|
+
collector.error(( localize(12274, "submenu items must be an array")));
|
|
523
523
|
return false;
|
|
524
524
|
}
|
|
525
525
|
for (const item of items) {
|
|
@@ -539,15 +539,15 @@ var schema;
|
|
|
539
539
|
schema.isValidItems = isValidItems;
|
|
540
540
|
function isValidSubmenu(submenu, collector) {
|
|
541
541
|
if (typeof submenu !== 'object') {
|
|
542
|
-
collector.error(( localize(
|
|
542
|
+
collector.error(( localize(12275, "submenu items must be an object")));
|
|
543
543
|
return false;
|
|
544
544
|
}
|
|
545
545
|
if (typeof submenu.id !== 'string') {
|
|
546
|
-
collector.error(( localize(
|
|
546
|
+
collector.error(( localize(12272, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
547
547
|
return false;
|
|
548
548
|
}
|
|
549
549
|
if (typeof submenu.label !== 'string') {
|
|
550
|
-
collector.error(( localize(
|
|
550
|
+
collector.error(( localize(12272, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
551
551
|
return false;
|
|
552
552
|
}
|
|
553
553
|
return true;
|
|
@@ -559,24 +559,24 @@ var schema;
|
|
|
559
559
|
properties: {
|
|
560
560
|
command: {
|
|
561
561
|
description: ( localize(
|
|
562
|
-
|
|
562
|
+
12276,
|
|
563
563
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
564
564
|
)),
|
|
565
565
|
type: 'string'
|
|
566
566
|
},
|
|
567
567
|
alt: {
|
|
568
568
|
description: ( localize(
|
|
569
|
-
|
|
569
|
+
12277,
|
|
570
570
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
571
571
|
)),
|
|
572
572
|
type: 'string'
|
|
573
573
|
},
|
|
574
574
|
when: {
|
|
575
|
-
description: ( localize(
|
|
575
|
+
description: ( localize(12278, 'Condition which must be true to show this item')),
|
|
576
576
|
type: 'string'
|
|
577
577
|
},
|
|
578
578
|
group: {
|
|
579
|
-
description: ( localize(
|
|
579
|
+
description: ( localize(12279, 'Group into which this item belongs')),
|
|
580
580
|
type: 'string'
|
|
581
581
|
}
|
|
582
582
|
}
|
|
@@ -586,15 +586,15 @@ var schema;
|
|
|
586
586
|
required: ['submenu'],
|
|
587
587
|
properties: {
|
|
588
588
|
submenu: {
|
|
589
|
-
description: ( localize(
|
|
589
|
+
description: ( localize(12280, 'Identifier of the submenu to display in this item.')),
|
|
590
590
|
type: 'string'
|
|
591
591
|
},
|
|
592
592
|
when: {
|
|
593
|
-
description: ( localize(
|
|
593
|
+
description: ( localize(12278, 'Condition which must be true to show this item')),
|
|
594
594
|
type: 'string'
|
|
595
595
|
},
|
|
596
596
|
group: {
|
|
597
|
-
description: ( localize(
|
|
597
|
+
description: ( localize(12279, 'Group into which this item belongs')),
|
|
598
598
|
type: 'string'
|
|
599
599
|
}
|
|
600
600
|
}
|
|
@@ -604,16 +604,16 @@ var schema;
|
|
|
604
604
|
required: ['id', 'label'],
|
|
605
605
|
properties: {
|
|
606
606
|
id: {
|
|
607
|
-
description: ( localize(
|
|
607
|
+
description: ( localize(12281, 'Identifier of the menu to display as a submenu.')),
|
|
608
608
|
type: 'string'
|
|
609
609
|
},
|
|
610
610
|
label: {
|
|
611
|
-
description: ( localize(
|
|
611
|
+
description: ( localize(12282, 'The label of the menu item which leads to this submenu.')),
|
|
612
612
|
type: 'string'
|
|
613
613
|
},
|
|
614
614
|
icon: {
|
|
615
615
|
description: ( localize(
|
|
616
|
-
|
|
616
|
+
12283,
|
|
617
617
|
'(Optional) Icon which is used to represent the submenu in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like `\\$(zap)`'
|
|
618
618
|
)),
|
|
619
619
|
anyOf: [{
|
|
@@ -623,11 +623,11 @@ var schema;
|
|
|
623
623
|
type: 'object',
|
|
624
624
|
properties: {
|
|
625
625
|
light: {
|
|
626
|
-
description: ( localize(
|
|
626
|
+
description: ( localize(12284, 'Icon path when a light theme is used')),
|
|
627
627
|
type: 'string'
|
|
628
628
|
},
|
|
629
629
|
dark: {
|
|
630
|
-
description: ( localize(
|
|
630
|
+
description: ( localize(12285, 'Icon path when a dark theme is used')),
|
|
631
631
|
type: 'string'
|
|
632
632
|
}
|
|
633
633
|
}
|
|
@@ -636,11 +636,11 @@ var schema;
|
|
|
636
636
|
}
|
|
637
637
|
};
|
|
638
638
|
schema.menusContribution = {
|
|
639
|
-
description: ( localize(
|
|
639
|
+
description: ( localize(12286, "Contributes menu items to the editor")),
|
|
640
640
|
type: 'object',
|
|
641
641
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
642
642
|
markdownDescription: menu.proposed ? ( localize(
|
|
643
|
-
|
|
643
|
+
12287,
|
|
644
644
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
645
645
|
menu.proposed,
|
|
646
646
|
menu.description
|
|
@@ -655,18 +655,18 @@ var schema;
|
|
|
655
655
|
}
|
|
656
656
|
};
|
|
657
657
|
schema.submenusContribution = {
|
|
658
|
-
description: ( localize(
|
|
658
|
+
description: ( localize(12288, "Contributes submenu items to the editor")),
|
|
659
659
|
type: 'array',
|
|
660
660
|
items: submenu
|
|
661
661
|
};
|
|
662
662
|
function isValidCommand(command, collector) {
|
|
663
663
|
if (!command) {
|
|
664
|
-
collector.error(( localize(
|
|
664
|
+
collector.error(( localize(12289, "expected non-empty value.")));
|
|
665
665
|
return false;
|
|
666
666
|
}
|
|
667
667
|
if (isFalsyOrWhitespace(command.command)) {
|
|
668
668
|
collector.error(( localize(
|
|
669
|
-
|
|
669
|
+
12272,
|
|
670
670
|
"property `{0}` is mandatory and must be of type `string`",
|
|
671
671
|
'command'
|
|
672
672
|
)));
|
|
@@ -680,7 +680,7 @@ var schema;
|
|
|
680
680
|
}
|
|
681
681
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
682
682
|
collector.error(( localize(
|
|
683
|
-
|
|
683
|
+
12273,
|
|
684
684
|
"property `{0}` can be omitted or must be of type `string`",
|
|
685
685
|
'precondition'
|
|
686
686
|
)));
|
|
@@ -706,7 +706,7 @@ var schema;
|
|
|
706
706
|
return true;
|
|
707
707
|
}
|
|
708
708
|
collector.error(( localize(
|
|
709
|
-
|
|
709
|
+
12290,
|
|
710
710
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
711
711
|
)));
|
|
712
712
|
return false;
|
|
@@ -714,7 +714,7 @@ var schema;
|
|
|
714
714
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
715
715
|
if (typeof localized === 'undefined') {
|
|
716
716
|
collector.error(( localize(
|
|
717
|
-
|
|
717
|
+
12291,
|
|
718
718
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
719
719
|
propertyName
|
|
720
720
|
)));
|
|
@@ -722,7 +722,7 @@ var schema;
|
|
|
722
722
|
}
|
|
723
723
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
724
724
|
collector.error(( localize(
|
|
725
|
-
|
|
725
|
+
12272,
|
|
726
726
|
"property `{0}` is mandatory and must be of type `string`",
|
|
727
727
|
propertyName
|
|
728
728
|
)));
|
|
@@ -730,7 +730,7 @@ var schema;
|
|
|
730
730
|
}
|
|
731
731
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
732
732
|
collector.error(( localize(
|
|
733
|
-
|
|
733
|
+
12292,
|
|
734
734
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
735
735
|
`${propertyName}.value`,
|
|
736
736
|
`${propertyName}.original`
|
|
@@ -744,37 +744,37 @@ var schema;
|
|
|
744
744
|
required: ['command', 'title'],
|
|
745
745
|
properties: {
|
|
746
746
|
command: {
|
|
747
|
-
description: ( localize(
|
|
747
|
+
description: ( localize(12293, 'Identifier of the command to execute')),
|
|
748
748
|
type: 'string'
|
|
749
749
|
},
|
|
750
750
|
title: {
|
|
751
|
-
description: ( localize(
|
|
751
|
+
description: ( localize(12294, 'Title by which the command is represented in the UI')),
|
|
752
752
|
type: 'string'
|
|
753
753
|
},
|
|
754
754
|
shortTitle: {
|
|
755
755
|
markdownDescription: ( localize(
|
|
756
|
-
|
|
756
|
+
12295,
|
|
757
757
|
'(Optional) Short title by which the command is represented in the UI. Menus pick either `title` or `shortTitle` depending on the context in which they show commands.'
|
|
758
758
|
)),
|
|
759
759
|
type: 'string'
|
|
760
760
|
},
|
|
761
761
|
category: {
|
|
762
762
|
description: ( localize(
|
|
763
|
-
|
|
763
|
+
12296,
|
|
764
764
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
765
765
|
)),
|
|
766
766
|
type: 'string'
|
|
767
767
|
},
|
|
768
768
|
enablement: {
|
|
769
769
|
description: ( localize(
|
|
770
|
-
|
|
770
|
+
12297,
|
|
771
771
|
'(Optional) Condition which must be true to enable the command in the UI (menu and keybindings). Does not prevent executing the command by other means, like the `executeCommand`-api.'
|
|
772
772
|
)),
|
|
773
773
|
type: 'string'
|
|
774
774
|
},
|
|
775
775
|
icon: {
|
|
776
776
|
description: ( localize(
|
|
777
|
-
|
|
777
|
+
12298,
|
|
778
778
|
'(Optional) Icon which is used to represent the command in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like `\\$(zap)`'
|
|
779
779
|
)),
|
|
780
780
|
anyOf: [{
|
|
@@ -784,11 +784,11 @@ var schema;
|
|
|
784
784
|
type: 'object',
|
|
785
785
|
properties: {
|
|
786
786
|
light: {
|
|
787
|
-
description: ( localize(
|
|
787
|
+
description: ( localize(12299, 'Icon path when a light theme is used')),
|
|
788
788
|
type: 'string'
|
|
789
789
|
},
|
|
790
790
|
dark: {
|
|
791
|
-
description: ( localize(
|
|
791
|
+
description: ( localize(12300, 'Icon path when a dark theme is used')),
|
|
792
792
|
type: 'string'
|
|
793
793
|
}
|
|
794
794
|
}
|
|
@@ -797,7 +797,7 @@ var schema;
|
|
|
797
797
|
}
|
|
798
798
|
};
|
|
799
799
|
schema.commandsContribution = {
|
|
800
|
-
description: ( localize(
|
|
800
|
+
description: ( localize(12301, "Contributes commands to the command palette.")),
|
|
801
801
|
oneOf: [
|
|
802
802
|
commandType,
|
|
803
803
|
{
|
|
@@ -841,7 +841,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
841
841
|
if (existingCmd) {
|
|
842
842
|
if (existingCmd.source) {
|
|
843
843
|
extension.collector.info(( localize(
|
|
844
|
-
|
|
844
|
+
12302,
|
|
845
845
|
"Command `{0}` already registered by {1} ({2})",
|
|
846
846
|
userFriendlyCommand.command,
|
|
847
847
|
existingCmd.source.title,
|
|
@@ -849,7 +849,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
849
849
|
)));
|
|
850
850
|
}
|
|
851
851
|
else {
|
|
852
|
-
extension.collector.info(( localize(
|
|
852
|
+
extension.collector.info(( localize(12303, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -890,19 +890,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
890
890
|
continue;
|
|
891
891
|
}
|
|
892
892
|
if (!submenuInfo.id) {
|
|
893
|
-
collector.warn(( localize(
|
|
893
|
+
collector.warn(( localize(12304, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
894
894
|
continue;
|
|
895
895
|
}
|
|
896
896
|
if (( _submenus.has(submenuInfo.id))) {
|
|
897
897
|
collector.info(( localize(
|
|
898
|
-
|
|
898
|
+
12305,
|
|
899
899
|
"The `{0}` submenu was already previously registered.",
|
|
900
900
|
submenuInfo.id
|
|
901
901
|
)));
|
|
902
902
|
continue;
|
|
903
903
|
}
|
|
904
904
|
if (!submenuInfo.label) {
|
|
905
|
-
collector.warn(( localize(
|
|
905
|
+
collector.warn(( localize(12306, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
906
906
|
continue;
|
|
907
907
|
}
|
|
908
908
|
let absoluteIcon;
|
|
@@ -959,7 +959,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
959
959
|
}
|
|
960
960
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
961
961
|
collector.error(( localize(
|
|
962
|
-
|
|
962
|
+
12307,
|
|
963
963
|
"{0} is a proposed menu identifier. It requires 'package.json#enabledApiProposals: [\"{1}\"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api {2}",
|
|
964
964
|
entry[0],
|
|
965
965
|
menu.proposed,
|
|
@@ -974,7 +974,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
974
974
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
975
975
|
if (!command) {
|
|
976
976
|
collector.error(( localize(
|
|
977
|
-
|
|
977
|
+
12308,
|
|
978
978
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
979
979
|
menuItem.command
|
|
980
980
|
)));
|
|
@@ -982,20 +982,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
982
982
|
}
|
|
983
983
|
if (menuItem.alt && !alt) {
|
|
984
984
|
collector.warn(( localize(
|
|
985
|
-
|
|
985
|
+
12309,
|
|
986
986
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
987
987
|
menuItem.alt
|
|
988
988
|
)));
|
|
989
989
|
}
|
|
990
990
|
if (menuItem.command === menuItem.alt) {
|
|
991
|
-
collector.info(( localize(
|
|
991
|
+
collector.info(( localize(12310, "Menu item references the same command as default and alt-command")));
|
|
992
992
|
}
|
|
993
993
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
994
994
|
}
|
|
995
995
|
else {
|
|
996
996
|
if (menu.supportsSubmenus === false) {
|
|
997
997
|
collector.error(( localize(
|
|
998
|
-
|
|
998
|
+
12311,
|
|
999
999
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1000
1000
|
)));
|
|
1001
1001
|
continue;
|
|
@@ -1003,7 +1003,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1003
1003
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1004
1004
|
if (!submenu) {
|
|
1005
1005
|
collector.error(( localize(
|
|
1006
|
-
|
|
1006
|
+
12312,
|
|
1007
1007
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1008
1008
|
menuItem.submenu
|
|
1009
1009
|
)));
|
|
@@ -1016,7 +1016,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1018
1018
|
collector.warn(( localize(
|
|
1019
|
-
|
|
1019
|
+
12313,
|
|
1020
1020
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1021
1021
|
menuItem.submenu,
|
|
1022
1022
|
entry[0]
|
|
@@ -1038,7 +1038,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes('viewContainer == workbench.view.debug')) {
|
|
1040
1040
|
collector.error(( localize(
|
|
1041
|
-
|
|
1041
|
+
12314,
|
|
1042
1042
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1043
1043
|
'`viewContainer/title`',
|
|
1044
1044
|
'`viewContainer == workbench.view.debug`',
|
|
@@ -1125,10 +1125,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1125
1125
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1126
1126
|
}
|
|
1127
1127
|
const headers = [
|
|
1128
|
-
( localize(
|
|
1129
|
-
( localize(
|
|
1130
|
-
( localize(
|
|
1131
|
-
( localize(
|
|
1128
|
+
( localize(12315, "ID")),
|
|
1129
|
+
( localize(12316, "Title")),
|
|
1130
|
+
( localize(12317, "Keyboard Shortcuts")),
|
|
1131
|
+
( localize(12318, "Menu Contexts"))
|
|
1132
1132
|
];
|
|
1133
1133
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1134
1134
|
.map(command => {
|
|
@@ -1168,7 +1168,7 @@ CommandsTableRenderer = ( __decorate([
|
|
|
1168
1168
|
], CommandsTableRenderer));
|
|
1169
1169
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1170
1170
|
id: 'commands',
|
|
1171
|
-
label: ( localize(
|
|
1171
|
+
label: ( localize(12319, "Commands")),
|
|
1172
1172
|
access: {
|
|
1173
1173
|
canToggle: false,
|
|
1174
1174
|
},
|
|
@@ -50,39 +50,39 @@ import { ILayoutService } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
50
50
|
var WorkbenchKeybindingService_1;
|
|
51
51
|
function isValidContributedKeyBinding(keyBinding, rejects) {
|
|
52
52
|
if (!keyBinding) {
|
|
53
|
-
rejects.push(( localize(
|
|
53
|
+
rejects.push(( localize(12708, "expected non-empty value.")));
|
|
54
54
|
return false;
|
|
55
55
|
}
|
|
56
56
|
if (typeof keyBinding.command !== 'string') {
|
|
57
57
|
rejects.push(( localize(
|
|
58
|
-
|
|
58
|
+
12709,
|
|
59
59
|
"property `{0}` is mandatory and must be of type `string`",
|
|
60
60
|
'command'
|
|
61
61
|
)));
|
|
62
62
|
return false;
|
|
63
63
|
}
|
|
64
64
|
if (keyBinding.key && typeof keyBinding.key !== 'string') {
|
|
65
|
-
rejects.push(( localize(
|
|
65
|
+
rejects.push(( localize(12710, "property `{0}` can be omitted or must be of type `string`", 'key')));
|
|
66
66
|
return false;
|
|
67
67
|
}
|
|
68
68
|
if (keyBinding.when && typeof keyBinding.when !== 'string') {
|
|
69
|
-
rejects.push(( localize(
|
|
69
|
+
rejects.push(( localize(12710, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
70
70
|
return false;
|
|
71
71
|
}
|
|
72
72
|
if (keyBinding.mac && typeof keyBinding.mac !== 'string') {
|
|
73
|
-
rejects.push(( localize(
|
|
73
|
+
rejects.push(( localize(12710, "property `{0}` can be omitted or must be of type `string`", 'mac')));
|
|
74
74
|
return false;
|
|
75
75
|
}
|
|
76
76
|
if (keyBinding.linux && typeof keyBinding.linux !== 'string') {
|
|
77
77
|
rejects.push(( localize(
|
|
78
|
-
|
|
78
|
+
12710,
|
|
79
79
|
"property `{0}` can be omitted or must be of type `string`",
|
|
80
80
|
'linux'
|
|
81
81
|
)));
|
|
82
82
|
return false;
|
|
83
83
|
}
|
|
84
84
|
if (keyBinding.win && typeof keyBinding.win !== 'string') {
|
|
85
|
-
rejects.push(( localize(
|
|
85
|
+
rejects.push(( localize(12710, "property `{0}` can be omitted or must be of type `string`", 'win')));
|
|
86
86
|
return false;
|
|
87
87
|
}
|
|
88
88
|
return true;
|
|
@@ -92,33 +92,33 @@ const keybindingType = {
|
|
|
92
92
|
default: { command: '', key: '' },
|
|
93
93
|
properties: {
|
|
94
94
|
command: {
|
|
95
|
-
description: ( localize(
|
|
95
|
+
description: ( localize(12711, 'Identifier of the command to run when keybinding is triggered.')),
|
|
96
96
|
type: 'string'
|
|
97
97
|
},
|
|
98
98
|
args: {
|
|
99
|
-
description: ( localize(
|
|
99
|
+
description: ( localize(12712, "Arguments to pass to the command to execute."))
|
|
100
100
|
},
|
|
101
101
|
key: {
|
|
102
102
|
description: ( localize(
|
|
103
|
-
|
|
103
|
+
12713,
|
|
104
104
|
'Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord).'
|
|
105
105
|
)),
|
|
106
106
|
type: 'string'
|
|
107
107
|
},
|
|
108
108
|
mac: {
|
|
109
|
-
description: ( localize(
|
|
109
|
+
description: ( localize(12714, 'Mac specific key or key sequence.')),
|
|
110
110
|
type: 'string'
|
|
111
111
|
},
|
|
112
112
|
linux: {
|
|
113
|
-
description: ( localize(
|
|
113
|
+
description: ( localize(12715, 'Linux specific key or key sequence.')),
|
|
114
114
|
type: 'string'
|
|
115
115
|
},
|
|
116
116
|
win: {
|
|
117
|
-
description: ( localize(
|
|
117
|
+
description: ( localize(12716, 'Windows specific key or key sequence.')),
|
|
118
118
|
type: 'string'
|
|
119
119
|
},
|
|
120
120
|
when: {
|
|
121
|
-
description: ( localize(
|
|
121
|
+
description: ( localize(12717, 'Condition when the key is active.')),
|
|
122
122
|
type: 'string'
|
|
123
123
|
},
|
|
124
124
|
}
|
|
@@ -127,7 +127,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
127
127
|
extensionPoint: 'keybindings',
|
|
128
128
|
deps: [commandsExtensionPoint],
|
|
129
129
|
jsonSchema: {
|
|
130
|
-
description: ( localize(
|
|
130
|
+
description: ( localize(12718, "Contributes keybindings.")),
|
|
131
131
|
oneOf: [
|
|
132
132
|
keybindingType,
|
|
133
133
|
{
|
|
@@ -508,7 +508,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
508
508
|
}
|
|
509
509
|
if (rejects.length > 0) {
|
|
510
510
|
collector.error(( localize(
|
|
511
|
-
|
|
511
|
+
12719,
|
|
512
512
|
"Invalid `contributes.{0}`: {1}",
|
|
513
513
|
keybindingsExtPoint.name,
|
|
514
514
|
rejects.join('\n')
|
|
@@ -596,7 +596,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
596
596
|
static _getAllCommandsAsComment(boundCommands) {
|
|
597
597
|
const unboundCommands = getAllUnboundCommands(boundCommands);
|
|
598
598
|
const pretty = unboundCommands.sort().join('\n// - ');
|
|
599
|
-
return '// ' + ( localize(
|
|
599
|
+
return '// ' + ( localize(12720, "Here are other available commands: ")) + '\n// - ' + pretty;
|
|
600
600
|
}
|
|
601
601
|
mightProducePrintableCharacter(event) {
|
|
602
602
|
if (event.ctrlKey || event.metaKey || event.altKey) {
|
|
@@ -722,7 +722,7 @@ class KeybindingsJsonSchema {
|
|
|
722
722
|
this.schema = {
|
|
723
723
|
id: KeybindingsJsonSchema.schemaId,
|
|
724
724
|
type: 'array',
|
|
725
|
-
title: ( localize(
|
|
725
|
+
title: ( localize(12721, "Keybindings configuration")),
|
|
726
726
|
allowTrailingCommas: true,
|
|
727
727
|
allowComments: true,
|
|
728
728
|
definitions: {
|
|
@@ -746,7 +746,7 @@ class KeybindingsJsonSchema {
|
|
|
746
746
|
'type': 'string',
|
|
747
747
|
'enum': this.commandsEnum,
|
|
748
748
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
749
|
-
'description': ( localize(
|
|
749
|
+
'description': ( localize(12722, "Name of the command to execute")),
|
|
750
750
|
},
|
|
751
751
|
'commandType': {
|
|
752
752
|
'anyOf': [
|
|
@@ -757,7 +757,7 @@ class KeybindingsJsonSchema {
|
|
|
757
757
|
'type': 'string',
|
|
758
758
|
'enum': this.removalCommandsEnum,
|
|
759
759
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
760
|
-
'description': ( localize(
|
|
760
|
+
'description': ( localize(12723, "Name of the command to remove keyboard shortcut for")),
|
|
761
761
|
},
|
|
762
762
|
{
|
|
763
763
|
'type': 'string'
|
|
@@ -775,7 +775,7 @@ class KeybindingsJsonSchema {
|
|
|
775
775
|
'properties': {
|
|
776
776
|
'key': {
|
|
777
777
|
'type': 'string',
|
|
778
|
-
'description': ( localize(
|
|
778
|
+
'description': ( localize(12724, "Key or key sequence (separated by space)")),
|
|
779
779
|
},
|
|
780
780
|
'command': {
|
|
781
781
|
'anyOf': [
|
|
@@ -788,7 +788,7 @@ class KeybindingsJsonSchema {
|
|
|
788
788
|
'type': 'array'
|
|
789
789
|
},
|
|
790
790
|
'errorMessage': ( localize(
|
|
791
|
-
|
|
791
|
+
12725,
|
|
792
792
|
"Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
|
|
793
793
|
'string'
|
|
794
794
|
))
|
|
@@ -804,10 +804,10 @@ class KeybindingsJsonSchema {
|
|
|
804
804
|
},
|
|
805
805
|
'when': {
|
|
806
806
|
'type': 'string',
|
|
807
|
-
'description': ( localize(
|
|
807
|
+
'description': ( localize(12726, "Condition when the key is active."))
|
|
808
808
|
},
|
|
809
809
|
'args': {
|
|
810
|
-
'description': ( localize(
|
|
810
|
+
'description': ( localize(12727, "Arguments to pass to the command to execute."))
|
|
811
811
|
}
|
|
812
812
|
},
|
|
813
813
|
'$ref': '#/definitions/commandsSchemas'
|
|
@@ -483,12 +483,12 @@ const keyboardConfiguration = {
|
|
|
483
483
|
'id': 'keyboard',
|
|
484
484
|
'order': 15,
|
|
485
485
|
'type': 'object',
|
|
486
|
-
'title': ( localize(
|
|
486
|
+
'title': ( localize(12728, "Keyboard")),
|
|
487
487
|
'properties': {
|
|
488
488
|
'keyboard.layout': {
|
|
489
489
|
'type': 'string',
|
|
490
490
|
'default': 'autodetect',
|
|
491
|
-
'description': ( localize(
|
|
491
|
+
'description': ( localize(12729, "Control the keyboard layout used in web."))
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
};
|