@codingame/monaco-vscode-keybindings-service-override 13.1.3 → 13.1.5
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 +9 -9
- package/vscode/src/vs/workbench/contrib/commands/common/commands.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +1 -1
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +133 -133
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -24
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-keybindings-service-override",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - keybindings service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "13.1.
|
|
19
|
-
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "13.1.
|
|
20
|
-
"@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common": "13.1.
|
|
21
|
-
"@codingame/monaco-vscode-api": "13.1.
|
|
22
|
-
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "13.1.
|
|
23
|
-
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "13.1.
|
|
24
|
-
"@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common": "13.1.
|
|
25
|
-
"@codingame/monaco-vscode-files-service-override": "13.1.
|
|
18
|
+
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "13.1.5",
|
|
19
|
+
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "13.1.5",
|
|
20
|
+
"@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common": "13.1.5",
|
|
21
|
+
"@codingame/monaco-vscode-api": "13.1.5",
|
|
22
|
+
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "13.1.5",
|
|
23
|
+
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "13.1.5",
|
|
24
|
+
"@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common": "13.1.5",
|
|
25
|
+
"@codingame/monaco-vscode-files-service-override": "13.1.5"
|
|
26
26
|
},
|
|
27
27
|
"main": "index.js",
|
|
28
28
|
"module": "index.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { safeStringify } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
3
|
-
import {
|
|
3
|
+
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
import { Action2, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
5
5
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
6
6
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js
CHANGED
|
@@ -15,7 +15,7 @@ import { parseTree } from '@codingame/monaco-vscode-api/vscode/vs/base/common/js
|
|
|
15
15
|
import { WindowsNativeResolvedKeybinding } from '../../../services/keybinding/common/windowsKeyboardMapper.js';
|
|
16
16
|
import { themeColorFromId } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService';
|
|
17
17
|
import { overviewRulerError, overviewRulerInfo } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/editorColorRegistry';
|
|
18
|
-
import {
|
|
18
|
+
import { OverviewRulerLane, TrackedRangeStickiness } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model';
|
|
19
19
|
import { KeybindingParser } from '@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common/vscode/vs/base/common/keybindingParser';
|
|
20
20
|
import { assertIsDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
21
21
|
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
@@ -21,209 +21,209 @@ const apiMenus = [
|
|
|
21
21
|
{
|
|
22
22
|
key: 'commandPalette',
|
|
23
23
|
id: MenuId.CommandPalette,
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(11141, "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(11142, "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(11143, "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(11144, "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(11145, "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(11146, "'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(11147, "'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(11148, "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(11149, "'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(11150, "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(11151, "'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(11152, "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(11153, "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(11154, "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(11155, "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(11156, "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(11157, "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(11158, "'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(11159, "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(11160, "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(11161, "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(11162, "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(11163, "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(11164, "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(11165, "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(11166, "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(11167, "The Source Control History title menu")),
|
|
165
165
|
proposed: 'contribSourceControlHistoryTitleMenu'
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
key: 'scm/historyItem/context',
|
|
169
169
|
id: MenuId.SCMChangesContext,
|
|
170
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(11168, "The Source Control history item context menu")),
|
|
171
171
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
key: 'scm/historyItemRef/context',
|
|
175
175
|
id: MenuId.SCMHistoryItemRefContext,
|
|
176
|
-
description: ( localize(
|
|
176
|
+
description: ( localize(11169, "The Source Control history item reference context menu")),
|
|
177
177
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
key: 'statusBar/remoteIndicator',
|
|
181
181
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
182
|
-
description: ( localize(
|
|
182
|
+
description: ( localize(11170, "The remote indicator menu in the status bar")),
|
|
183
183
|
supportsSubmenus: false
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
key: 'terminal/context',
|
|
187
187
|
id: MenuId.TerminalInstanceContext,
|
|
188
|
-
description: ( localize(
|
|
188
|
+
description: ( localize(11171, "The terminal context menu"))
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
key: 'terminal/title/context',
|
|
192
192
|
id: MenuId.TerminalTabContext,
|
|
193
|
-
description: ( localize(
|
|
193
|
+
description: ( localize(11172, "The terminal tabs context menu"))
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
key: 'view/title',
|
|
197
197
|
id: MenuId.ViewTitle,
|
|
198
|
-
description: ( localize(
|
|
198
|
+
description: ( localize(11173, "The contributed view title menu"))
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
key: 'viewContainer/title',
|
|
202
202
|
id: MenuId.ViewContainerTitle,
|
|
203
|
-
description: ( localize(
|
|
203
|
+
description: ( localize(11174, "The contributed view container title menu")),
|
|
204
204
|
proposed: 'contribViewContainerTitle'
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
key: 'view/item/context',
|
|
208
208
|
id: MenuId.ViewItemContext,
|
|
209
|
-
description: ( localize(
|
|
209
|
+
description: ( localize(11175, "The contributed view item context menu"))
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
key: 'comments/comment/editorActions',
|
|
213
213
|
id: MenuId.CommentEditorActions,
|
|
214
|
-
description: ( localize(
|
|
214
|
+
description: ( localize(11176, "The contributed comment editor actions")),
|
|
215
215
|
proposed: 'contribCommentEditorActionsMenu'
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
key: 'comments/commentThread/title',
|
|
219
219
|
id: MenuId.CommentThreadTitle,
|
|
220
|
-
description: ( localize(
|
|
220
|
+
description: ( localize(11177, "The contributed comment thread title menu"))
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
key: 'comments/commentThread/context',
|
|
224
224
|
id: MenuId.CommentThreadActions,
|
|
225
225
|
description: ( localize(
|
|
226
|
-
|
|
226
|
+
11178,
|
|
227
227
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
228
228
|
)),
|
|
229
229
|
supportsSubmenus: false
|
|
@@ -232,7 +232,7 @@ const apiMenus = [
|
|
|
232
232
|
key: 'comments/commentThread/additionalActions',
|
|
233
233
|
id: MenuId.CommentThreadAdditionalActions,
|
|
234
234
|
description: ( localize(
|
|
235
|
-
|
|
235
|
+
11178,
|
|
236
236
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
237
237
|
)),
|
|
238
238
|
supportsSubmenus: true,
|
|
@@ -242,7 +242,7 @@ const apiMenus = [
|
|
|
242
242
|
key: 'comments/commentThread/title/context',
|
|
243
243
|
id: MenuId.CommentThreadTitleContext,
|
|
244
244
|
description: ( localize(
|
|
245
|
-
|
|
245
|
+
11179,
|
|
246
246
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
247
247
|
)),
|
|
248
248
|
proposed: 'contribCommentPeekContext'
|
|
@@ -250,13 +250,13 @@ const apiMenus = [
|
|
|
250
250
|
{
|
|
251
251
|
key: 'comments/comment/title',
|
|
252
252
|
id: MenuId.CommentTitle,
|
|
253
|
-
description: ( localize(
|
|
253
|
+
description: ( localize(11180, "The contributed comment title menu"))
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
key: 'comments/comment/context',
|
|
257
257
|
id: MenuId.CommentActions,
|
|
258
258
|
description: ( localize(
|
|
259
|
-
|
|
259
|
+
11181,
|
|
260
260
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
261
261
|
)),
|
|
262
262
|
supportsSubmenus: false
|
|
@@ -265,7 +265,7 @@ const apiMenus = [
|
|
|
265
265
|
key: 'comments/commentThread/comment/context',
|
|
266
266
|
id: MenuId.CommentThreadCommentContext,
|
|
267
267
|
description: ( localize(
|
|
268
|
-
|
|
268
|
+
11182,
|
|
269
269
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
270
270
|
)),
|
|
271
271
|
proposed: 'contribCommentPeekContext'
|
|
@@ -273,113 +273,113 @@ const apiMenus = [
|
|
|
273
273
|
{
|
|
274
274
|
key: 'commentsView/commentThread/context',
|
|
275
275
|
id: MenuId.CommentsViewThreadActions,
|
|
276
|
-
description: ( localize(
|
|
276
|
+
description: ( localize(11183, "The contributed comment thread context menu in the comments view")),
|
|
277
277
|
proposed: 'contribCommentsViewThreadMenus'
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
key: 'notebook/toolbar',
|
|
281
281
|
id: MenuId.NotebookToolbar,
|
|
282
|
-
description: ( localize(
|
|
282
|
+
description: ( localize(11184, "The contributed notebook toolbar menu"))
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
key: 'notebook/kernelSource',
|
|
286
286
|
id: MenuId.NotebookKernelSource,
|
|
287
|
-
description: ( localize(
|
|
287
|
+
description: ( localize(11185, "The contributed notebook kernel sources menu")),
|
|
288
288
|
proposed: 'notebookKernelSource'
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
291
|
key: 'notebook/cell/title',
|
|
292
292
|
id: MenuId.NotebookCellTitle,
|
|
293
|
-
description: ( localize(
|
|
293
|
+
description: ( localize(11186, "The contributed notebook cell title menu"))
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
key: 'notebook/cell/execute',
|
|
297
297
|
id: MenuId.NotebookCellExecute,
|
|
298
|
-
description: ( localize(
|
|
298
|
+
description: ( localize(11187, "The contributed notebook cell execution menu"))
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
301
|
key: 'interactive/toolbar',
|
|
302
302
|
id: MenuId.InteractiveToolbar,
|
|
303
|
-
description: ( localize(
|
|
303
|
+
description: ( localize(11188, "The contributed interactive toolbar menu")),
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
key: 'interactive/cell/title',
|
|
307
307
|
id: MenuId.InteractiveCellTitle,
|
|
308
|
-
description: ( localize(
|
|
308
|
+
description: ( localize(11189, "The contributed interactive cell title menu")),
|
|
309
309
|
},
|
|
310
310
|
{
|
|
311
311
|
key: 'issue/reporter',
|
|
312
312
|
id: MenuId.IssueReporter,
|
|
313
|
-
description: ( localize(
|
|
313
|
+
description: ( localize(11190, "The contributed issue reporter menu"))
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
key: 'testing/item/context',
|
|
317
317
|
id: MenuId.TestItem,
|
|
318
|
-
description: ( localize(
|
|
318
|
+
description: ( localize(11191, "The contributed test item menu")),
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
321
|
key: 'testing/item/gutter',
|
|
322
322
|
id: MenuId.TestItemGutter,
|
|
323
|
-
description: ( localize(
|
|
323
|
+
description: ( localize(11192, "The menu for a gutter decoration for a test item")),
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
key: 'testing/profiles/context',
|
|
327
327
|
id: MenuId.TestProfilesContext,
|
|
328
|
-
description: ( localize(
|
|
328
|
+
description: ( localize(11193, "The menu for configuring testing profiles.")),
|
|
329
329
|
},
|
|
330
330
|
{
|
|
331
331
|
key: 'testing/item/result',
|
|
332
332
|
id: MenuId.TestPeekElement,
|
|
333
|
-
description: ( localize(
|
|
333
|
+
description: ( localize(11194, "The menu for an item in the Test Results view or peek.")),
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
key: 'testing/message/context',
|
|
337
337
|
id: MenuId.TestMessageContext,
|
|
338
338
|
description: ( localize(
|
|
339
|
-
|
|
339
|
+
11195,
|
|
340
340
|
"A prominent button overlaying editor content where the message is displayed"
|
|
341
341
|
)),
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
344
|
key: 'testing/message/content',
|
|
345
345
|
id: MenuId.TestMessageContent,
|
|
346
|
-
description: ( localize(
|
|
346
|
+
description: ( localize(11196, "Context menu for the message in the results tree")),
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
key: 'extension/context',
|
|
350
350
|
id: MenuId.ExtensionContext,
|
|
351
|
-
description: ( localize(
|
|
351
|
+
description: ( localize(11197, "The extension context menu"))
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
354
|
key: 'timeline/title',
|
|
355
355
|
id: MenuId.TimelineTitle,
|
|
356
|
-
description: ( localize(
|
|
356
|
+
description: ( localize(11198, "The Timeline view title menu"))
|
|
357
357
|
},
|
|
358
358
|
{
|
|
359
359
|
key: 'timeline/item/context',
|
|
360
360
|
id: MenuId.TimelineItemContext,
|
|
361
|
-
description: ( localize(
|
|
361
|
+
description: ( localize(11199, "The Timeline view item context menu"))
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
364
|
key: 'ports/item/context',
|
|
365
365
|
id: MenuId.TunnelContext,
|
|
366
|
-
description: ( localize(
|
|
366
|
+
description: ( localize(11200, "The Ports view item context menu"))
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
369
|
key: 'ports/item/origin/inline',
|
|
370
370
|
id: MenuId.TunnelOriginInline,
|
|
371
|
-
description: ( localize(
|
|
371
|
+
description: ( localize(11201, "The Ports view item origin inline menu"))
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
key: 'ports/item/port/inline',
|
|
375
375
|
id: MenuId.TunnelPortInline,
|
|
376
|
-
description: ( localize(
|
|
376
|
+
description: ( localize(11202, "The Ports view item port inline menu"))
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
key: 'file/newFile',
|
|
380
380
|
id: MenuId.NewFile,
|
|
381
381
|
description: ( localize(
|
|
382
|
-
|
|
382
|
+
11203,
|
|
383
383
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
384
384
|
)),
|
|
385
385
|
supportsSubmenus: false,
|
|
@@ -387,54 +387,54 @@ const apiMenus = [
|
|
|
387
387
|
{
|
|
388
388
|
key: 'webview/context',
|
|
389
389
|
id: MenuId.WebviewContext,
|
|
390
|
-
description: ( localize(
|
|
390
|
+
description: ( localize(11204, "The webview context menu"))
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
393
|
key: 'file/share',
|
|
394
394
|
id: MenuId.MenubarShare,
|
|
395
|
-
description: ( localize(
|
|
395
|
+
description: ( localize(11205, "Share submenu shown in the top level File menu.")),
|
|
396
396
|
proposed: 'contribShareMenu'
|
|
397
397
|
},
|
|
398
398
|
{
|
|
399
399
|
key: 'editor/inlineCompletions/actions',
|
|
400
400
|
id: MenuId.InlineCompletionsActions,
|
|
401
|
-
description: ( localize(
|
|
401
|
+
description: ( localize(11206, "The actions shown when hovering on an inline completion")),
|
|
402
402
|
supportsSubmenus: false,
|
|
403
403
|
proposed: 'inlineCompletionsAdditions'
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
key: 'editor/content',
|
|
407
407
|
id: MenuId.EditorContent,
|
|
408
|
-
description: ( localize(
|
|
408
|
+
description: ( localize(11207, "The prominent button in an editor, overlays its content")),
|
|
409
409
|
proposed: 'contribEditorContentMenu'
|
|
410
410
|
},
|
|
411
411
|
{
|
|
412
412
|
key: 'editor/lineNumber/context',
|
|
413
413
|
id: MenuId.EditorLineNumberContext,
|
|
414
|
-
description: ( localize(
|
|
414
|
+
description: ( localize(11208, "The contributed editor line number context menu"))
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
key: 'mergeEditor/result/title',
|
|
418
418
|
id: MenuId.MergeInputResultToolbar,
|
|
419
|
-
description: ( localize(
|
|
419
|
+
description: ( localize(11209, "The result toolbar of the merge editor")),
|
|
420
420
|
proposed: 'contribMergeEditorMenus'
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
key: 'multiDiffEditor/resource/title',
|
|
424
424
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
425
|
-
description: ( localize(
|
|
425
|
+
description: ( localize(11210, "The resource toolbar in the multi diff editor")),
|
|
426
426
|
proposed: 'contribMultiDiffEditorMenus'
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
429
|
key: 'diffEditor/gutter/hunk',
|
|
430
430
|
id: MenuId.DiffEditorHunkToolbar,
|
|
431
|
-
description: ( localize(
|
|
431
|
+
description: ( localize(11211, "The gutter toolbar in the diff editor")),
|
|
432
432
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
435
|
key: 'diffEditor/gutter/selection',
|
|
436
436
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
437
|
-
description: ( localize(
|
|
437
|
+
description: ( localize(11211, "The gutter toolbar in the diff editor")),
|
|
438
438
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
439
439
|
}
|
|
440
440
|
];
|
|
@@ -447,23 +447,23 @@ var schema;
|
|
|
447
447
|
function isValidMenuItem(item, collector) {
|
|
448
448
|
if (typeof item.command !== 'string') {
|
|
449
449
|
collector.error(( localize(
|
|
450
|
-
|
|
450
|
+
11212,
|
|
451
451
|
"property `{0}` is mandatory and must be of type `string`",
|
|
452
452
|
'command'
|
|
453
453
|
)));
|
|
454
454
|
return false;
|
|
455
455
|
}
|
|
456
456
|
if (item.alt && typeof item.alt !== 'string') {
|
|
457
|
-
collector.error(( localize(
|
|
457
|
+
collector.error(( localize(11213, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
458
458
|
return false;
|
|
459
459
|
}
|
|
460
460
|
if (item.when && typeof item.when !== 'string') {
|
|
461
|
-
collector.error(( localize(
|
|
461
|
+
collector.error(( localize(11213, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
462
462
|
return false;
|
|
463
463
|
}
|
|
464
464
|
if (item.group && typeof item.group !== 'string') {
|
|
465
465
|
collector.error(( localize(
|
|
466
|
-
|
|
466
|
+
11213,
|
|
467
467
|
"property `{0}` can be omitted or must be of type `string`",
|
|
468
468
|
'group'
|
|
469
469
|
)));
|
|
@@ -475,19 +475,19 @@ var schema;
|
|
|
475
475
|
function isValidSubmenuItem(item, collector) {
|
|
476
476
|
if (typeof item.submenu !== 'string') {
|
|
477
477
|
collector.error(( localize(
|
|
478
|
-
|
|
478
|
+
11212,
|
|
479
479
|
"property `{0}` is mandatory and must be of type `string`",
|
|
480
480
|
'submenu'
|
|
481
481
|
)));
|
|
482
482
|
return false;
|
|
483
483
|
}
|
|
484
484
|
if (item.when && typeof item.when !== 'string') {
|
|
485
|
-
collector.error(( localize(
|
|
485
|
+
collector.error(( localize(11213, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
486
486
|
return false;
|
|
487
487
|
}
|
|
488
488
|
if (item.group && typeof item.group !== 'string') {
|
|
489
489
|
collector.error(( localize(
|
|
490
|
-
|
|
490
|
+
11213,
|
|
491
491
|
"property `{0}` can be omitted or must be of type `string`",
|
|
492
492
|
'group'
|
|
493
493
|
)));
|
|
@@ -498,7 +498,7 @@ var schema;
|
|
|
498
498
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
499
499
|
function isValidItems(items, collector) {
|
|
500
500
|
if (!Array.isArray(items)) {
|
|
501
|
-
collector.error(( localize(
|
|
501
|
+
collector.error(( localize(11214, "submenu items must be an array")));
|
|
502
502
|
return false;
|
|
503
503
|
}
|
|
504
504
|
for (const item of items) {
|
|
@@ -518,15 +518,15 @@ var schema;
|
|
|
518
518
|
schema.isValidItems = isValidItems;
|
|
519
519
|
function isValidSubmenu(submenu, collector) {
|
|
520
520
|
if (typeof submenu !== 'object') {
|
|
521
|
-
collector.error(( localize(
|
|
521
|
+
collector.error(( localize(11215, "submenu items must be an object")));
|
|
522
522
|
return false;
|
|
523
523
|
}
|
|
524
524
|
if (typeof submenu.id !== 'string') {
|
|
525
|
-
collector.error(( localize(
|
|
525
|
+
collector.error(( localize(11212, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
526
526
|
return false;
|
|
527
527
|
}
|
|
528
528
|
if (typeof submenu.label !== 'string') {
|
|
529
|
-
collector.error(( localize(
|
|
529
|
+
collector.error(( localize(11212, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
530
530
|
return false;
|
|
531
531
|
}
|
|
532
532
|
return true;
|
|
@@ -538,24 +538,24 @@ var schema;
|
|
|
538
538
|
properties: {
|
|
539
539
|
command: {
|
|
540
540
|
description: ( localize(
|
|
541
|
-
|
|
541
|
+
11216,
|
|
542
542
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
543
543
|
)),
|
|
544
544
|
type: 'string'
|
|
545
545
|
},
|
|
546
546
|
alt: {
|
|
547
547
|
description: ( localize(
|
|
548
|
-
|
|
548
|
+
11217,
|
|
549
549
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
550
550
|
)),
|
|
551
551
|
type: 'string'
|
|
552
552
|
},
|
|
553
553
|
when: {
|
|
554
|
-
description: ( localize(
|
|
554
|
+
description: ( localize(11218, 'Condition which must be true to show this item')),
|
|
555
555
|
type: 'string'
|
|
556
556
|
},
|
|
557
557
|
group: {
|
|
558
|
-
description: ( localize(
|
|
558
|
+
description: ( localize(11219, 'Group into which this item belongs')),
|
|
559
559
|
type: 'string'
|
|
560
560
|
}
|
|
561
561
|
}
|
|
@@ -565,15 +565,15 @@ var schema;
|
|
|
565
565
|
required: ['submenu'],
|
|
566
566
|
properties: {
|
|
567
567
|
submenu: {
|
|
568
|
-
description: ( localize(
|
|
568
|
+
description: ( localize(11220, 'Identifier of the submenu to display in this item.')),
|
|
569
569
|
type: 'string'
|
|
570
570
|
},
|
|
571
571
|
when: {
|
|
572
|
-
description: ( localize(
|
|
572
|
+
description: ( localize(11218, 'Condition which must be true to show this item')),
|
|
573
573
|
type: 'string'
|
|
574
574
|
},
|
|
575
575
|
group: {
|
|
576
|
-
description: ( localize(
|
|
576
|
+
description: ( localize(11219, 'Group into which this item belongs')),
|
|
577
577
|
type: 'string'
|
|
578
578
|
}
|
|
579
579
|
}
|
|
@@ -583,16 +583,16 @@ var schema;
|
|
|
583
583
|
required: ['id', 'label'],
|
|
584
584
|
properties: {
|
|
585
585
|
id: {
|
|
586
|
-
description: ( localize(
|
|
586
|
+
description: ( localize(11221, 'Identifier of the menu to display as a submenu.')),
|
|
587
587
|
type: 'string'
|
|
588
588
|
},
|
|
589
589
|
label: {
|
|
590
|
-
description: ( localize(
|
|
590
|
+
description: ( localize(11222, 'The label of the menu item which leads to this submenu.')),
|
|
591
591
|
type: 'string'
|
|
592
592
|
},
|
|
593
593
|
icon: {
|
|
594
594
|
description: ( localize(
|
|
595
|
-
|
|
595
|
+
11223,
|
|
596
596
|
'(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)`'
|
|
597
597
|
)),
|
|
598
598
|
anyOf: [{
|
|
@@ -602,11 +602,11 @@ var schema;
|
|
|
602
602
|
type: 'object',
|
|
603
603
|
properties: {
|
|
604
604
|
light: {
|
|
605
|
-
description: ( localize(
|
|
605
|
+
description: ( localize(11224, 'Icon path when a light theme is used')),
|
|
606
606
|
type: 'string'
|
|
607
607
|
},
|
|
608
608
|
dark: {
|
|
609
|
-
description: ( localize(
|
|
609
|
+
description: ( localize(11225, 'Icon path when a dark theme is used')),
|
|
610
610
|
type: 'string'
|
|
611
611
|
}
|
|
612
612
|
}
|
|
@@ -615,11 +615,11 @@ var schema;
|
|
|
615
615
|
}
|
|
616
616
|
};
|
|
617
617
|
schema.menusContribution = {
|
|
618
|
-
description: ( localize(
|
|
618
|
+
description: ( localize(11226, "Contributes menu items to the editor")),
|
|
619
619
|
type: 'object',
|
|
620
620
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
621
621
|
markdownDescription: menu.proposed ? ( localize(
|
|
622
|
-
|
|
622
|
+
11227,
|
|
623
623
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
624
624
|
menu.proposed,
|
|
625
625
|
menu.description
|
|
@@ -634,18 +634,18 @@ var schema;
|
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
636
|
schema.submenusContribution = {
|
|
637
|
-
description: ( localize(
|
|
637
|
+
description: ( localize(11228, "Contributes submenu items to the editor")),
|
|
638
638
|
type: 'array',
|
|
639
639
|
items: submenu
|
|
640
640
|
};
|
|
641
641
|
function isValidCommand(command, collector) {
|
|
642
642
|
if (!command) {
|
|
643
|
-
collector.error(( localize(
|
|
643
|
+
collector.error(( localize(11229, "expected non-empty value.")));
|
|
644
644
|
return false;
|
|
645
645
|
}
|
|
646
646
|
if (isFalsyOrWhitespace(command.command)) {
|
|
647
647
|
collector.error(( localize(
|
|
648
|
-
|
|
648
|
+
11212,
|
|
649
649
|
"property `{0}` is mandatory and must be of type `string`",
|
|
650
650
|
'command'
|
|
651
651
|
)));
|
|
@@ -659,7 +659,7 @@ var schema;
|
|
|
659
659
|
}
|
|
660
660
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
661
661
|
collector.error(( localize(
|
|
662
|
-
|
|
662
|
+
11213,
|
|
663
663
|
"property `{0}` can be omitted or must be of type `string`",
|
|
664
664
|
'precondition'
|
|
665
665
|
)));
|
|
@@ -685,7 +685,7 @@ var schema;
|
|
|
685
685
|
return true;
|
|
686
686
|
}
|
|
687
687
|
collector.error(( localize(
|
|
688
|
-
|
|
688
|
+
11230,
|
|
689
689
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
690
690
|
)));
|
|
691
691
|
return false;
|
|
@@ -693,7 +693,7 @@ var schema;
|
|
|
693
693
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
694
694
|
if (typeof localized === 'undefined') {
|
|
695
695
|
collector.error(( localize(
|
|
696
|
-
|
|
696
|
+
11231,
|
|
697
697
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
698
698
|
propertyName
|
|
699
699
|
)));
|
|
@@ -701,7 +701,7 @@ var schema;
|
|
|
701
701
|
}
|
|
702
702
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
703
703
|
collector.error(( localize(
|
|
704
|
-
|
|
704
|
+
11212,
|
|
705
705
|
"property `{0}` is mandatory and must be of type `string`",
|
|
706
706
|
propertyName
|
|
707
707
|
)));
|
|
@@ -709,7 +709,7 @@ var schema;
|
|
|
709
709
|
}
|
|
710
710
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
711
711
|
collector.error(( localize(
|
|
712
|
-
|
|
712
|
+
11232,
|
|
713
713
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
714
714
|
`${propertyName}.value`,
|
|
715
715
|
`${propertyName}.original`
|
|
@@ -723,37 +723,37 @@ var schema;
|
|
|
723
723
|
required: ['command', 'title'],
|
|
724
724
|
properties: {
|
|
725
725
|
command: {
|
|
726
|
-
description: ( localize(
|
|
726
|
+
description: ( localize(11233, 'Identifier of the command to execute')),
|
|
727
727
|
type: 'string'
|
|
728
728
|
},
|
|
729
729
|
title: {
|
|
730
|
-
description: ( localize(
|
|
730
|
+
description: ( localize(11234, 'Title by which the command is represented in the UI')),
|
|
731
731
|
type: 'string'
|
|
732
732
|
},
|
|
733
733
|
shortTitle: {
|
|
734
734
|
markdownDescription: ( localize(
|
|
735
|
-
|
|
735
|
+
11235,
|
|
736
736
|
'(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.'
|
|
737
737
|
)),
|
|
738
738
|
type: 'string'
|
|
739
739
|
},
|
|
740
740
|
category: {
|
|
741
741
|
description: ( localize(
|
|
742
|
-
|
|
742
|
+
11236,
|
|
743
743
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
744
744
|
)),
|
|
745
745
|
type: 'string'
|
|
746
746
|
},
|
|
747
747
|
enablement: {
|
|
748
748
|
description: ( localize(
|
|
749
|
-
|
|
749
|
+
11237,
|
|
750
750
|
'(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.'
|
|
751
751
|
)),
|
|
752
752
|
type: 'string'
|
|
753
753
|
},
|
|
754
754
|
icon: {
|
|
755
755
|
description: ( localize(
|
|
756
|
-
|
|
756
|
+
11238,
|
|
757
757
|
'(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)`'
|
|
758
758
|
)),
|
|
759
759
|
anyOf: [{
|
|
@@ -763,11 +763,11 @@ var schema;
|
|
|
763
763
|
type: 'object',
|
|
764
764
|
properties: {
|
|
765
765
|
light: {
|
|
766
|
-
description: ( localize(
|
|
766
|
+
description: ( localize(11239, 'Icon path when a light theme is used')),
|
|
767
767
|
type: 'string'
|
|
768
768
|
},
|
|
769
769
|
dark: {
|
|
770
|
-
description: ( localize(
|
|
770
|
+
description: ( localize(11240, 'Icon path when a dark theme is used')),
|
|
771
771
|
type: 'string'
|
|
772
772
|
}
|
|
773
773
|
}
|
|
@@ -776,7 +776,7 @@ var schema;
|
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
778
|
schema.commandsContribution = {
|
|
779
|
-
description: ( localize(
|
|
779
|
+
description: ( localize(11241, "Contributes commands to the command palette.")),
|
|
780
780
|
oneOf: [
|
|
781
781
|
commandType,
|
|
782
782
|
{
|
|
@@ -820,7 +820,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
820
820
|
if (existingCmd) {
|
|
821
821
|
if (existingCmd.source) {
|
|
822
822
|
extension.collector.info(( localize(
|
|
823
|
-
|
|
823
|
+
11242,
|
|
824
824
|
"Command `{0}` already registered by {1} ({2})",
|
|
825
825
|
userFriendlyCommand.command,
|
|
826
826
|
existingCmd.source.title,
|
|
@@ -828,7 +828,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
828
828
|
)));
|
|
829
829
|
}
|
|
830
830
|
else {
|
|
831
|
-
extension.collector.info(( localize(
|
|
831
|
+
extension.collector.info(( localize(11243, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -869,19 +869,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
869
869
|
continue;
|
|
870
870
|
}
|
|
871
871
|
if (!submenuInfo.id) {
|
|
872
|
-
collector.warn(( localize(
|
|
872
|
+
collector.warn(( localize(11244, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
873
873
|
continue;
|
|
874
874
|
}
|
|
875
875
|
if (( _submenus.has(submenuInfo.id))) {
|
|
876
876
|
collector.info(( localize(
|
|
877
|
-
|
|
877
|
+
11245,
|
|
878
878
|
"The `{0}` submenu was already previously registered.",
|
|
879
879
|
submenuInfo.id
|
|
880
880
|
)));
|
|
881
881
|
continue;
|
|
882
882
|
}
|
|
883
883
|
if (!submenuInfo.label) {
|
|
884
|
-
collector.warn(( localize(
|
|
884
|
+
collector.warn(( localize(11246, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
885
885
|
continue;
|
|
886
886
|
}
|
|
887
887
|
let absoluteIcon;
|
|
@@ -938,7 +938,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
938
938
|
}
|
|
939
939
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
940
940
|
collector.error(( localize(
|
|
941
|
-
|
|
941
|
+
11247,
|
|
942
942
|
"{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}",
|
|
943
943
|
entry[0],
|
|
944
944
|
menu.proposed,
|
|
@@ -953,7 +953,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
953
953
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
954
954
|
if (!command) {
|
|
955
955
|
collector.error(( localize(
|
|
956
|
-
|
|
956
|
+
11248,
|
|
957
957
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
958
958
|
menuItem.command
|
|
959
959
|
)));
|
|
@@ -961,20 +961,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
961
961
|
}
|
|
962
962
|
if (menuItem.alt && !alt) {
|
|
963
963
|
collector.warn(( localize(
|
|
964
|
-
|
|
964
|
+
11249,
|
|
965
965
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
966
966
|
menuItem.alt
|
|
967
967
|
)));
|
|
968
968
|
}
|
|
969
969
|
if (menuItem.command === menuItem.alt) {
|
|
970
|
-
collector.info(( localize(
|
|
970
|
+
collector.info(( localize(11250, "Menu item references the same command as default and alt-command")));
|
|
971
971
|
}
|
|
972
972
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
973
973
|
}
|
|
974
974
|
else {
|
|
975
975
|
if (menu.supportsSubmenus === false) {
|
|
976
976
|
collector.error(( localize(
|
|
977
|
-
|
|
977
|
+
11251,
|
|
978
978
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
979
979
|
)));
|
|
980
980
|
continue;
|
|
@@ -982,7 +982,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
982
982
|
const submenu = _submenus.get(menuItem.submenu);
|
|
983
983
|
if (!submenu) {
|
|
984
984
|
collector.error(( localize(
|
|
985
|
-
|
|
985
|
+
11252,
|
|
986
986
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
987
987
|
menuItem.submenu
|
|
988
988
|
)));
|
|
@@ -995,7 +995,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
995
995
|
}
|
|
996
996
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
997
997
|
collector.warn(( localize(
|
|
998
|
-
|
|
998
|
+
11253,
|
|
999
999
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1000
1000
|
menuItem.submenu,
|
|
1001
1001
|
entry[0]
|
|
@@ -1017,7 +1017,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes('viewContainer == workbench.view.debug')) {
|
|
1019
1019
|
collector.error(( localize(
|
|
1020
|
-
|
|
1020
|
+
11254,
|
|
1021
1021
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1022
1022
|
'`viewContainer/title`',
|
|
1023
1023
|
'`viewContainer == workbench.view.debug`',
|
|
@@ -1104,10 +1104,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1104
1104
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1105
1105
|
}
|
|
1106
1106
|
const headers = [
|
|
1107
|
-
( localize(
|
|
1108
|
-
( localize(
|
|
1109
|
-
( localize(
|
|
1110
|
-
( localize(
|
|
1107
|
+
( localize(11255, "ID")),
|
|
1108
|
+
( localize(11256, "Title")),
|
|
1109
|
+
( localize(11257, "Keyboard Shortcuts")),
|
|
1110
|
+
( localize(11258, "Menu Contexts"))
|
|
1111
1111
|
];
|
|
1112
1112
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1113
1113
|
.map(command => {
|
|
@@ -1147,7 +1147,7 @@ CommandsTableRenderer = ( __decorate([
|
|
|
1147
1147
|
], CommandsTableRenderer));
|
|
1148
1148
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1149
1149
|
id: 'commands',
|
|
1150
|
-
label: ( localize(
|
|
1150
|
+
label: ( localize(11259, "Commands")),
|
|
1151
1151
|
access: {
|
|
1152
1152
|
canToggle: false,
|
|
1153
1153
|
},
|
|
@@ -49,39 +49,39 @@ import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
49
49
|
var WorkbenchKeybindingService_1;
|
|
50
50
|
function isValidContributedKeyBinding(keyBinding, rejects) {
|
|
51
51
|
if (!keyBinding) {
|
|
52
|
-
rejects.push(( localize(
|
|
52
|
+
rejects.push(( localize(11605, "expected non-empty value.")));
|
|
53
53
|
return false;
|
|
54
54
|
}
|
|
55
55
|
if (typeof keyBinding.command !== 'string') {
|
|
56
56
|
rejects.push(( localize(
|
|
57
|
-
|
|
57
|
+
11606,
|
|
58
58
|
"property `{0}` is mandatory and must be of type `string`",
|
|
59
59
|
'command'
|
|
60
60
|
)));
|
|
61
61
|
return false;
|
|
62
62
|
}
|
|
63
63
|
if (keyBinding.key && typeof keyBinding.key !== 'string') {
|
|
64
|
-
rejects.push(( localize(
|
|
64
|
+
rejects.push(( localize(11607, "property `{0}` can be omitted or must be of type `string`", 'key')));
|
|
65
65
|
return false;
|
|
66
66
|
}
|
|
67
67
|
if (keyBinding.when && typeof keyBinding.when !== 'string') {
|
|
68
|
-
rejects.push(( localize(
|
|
68
|
+
rejects.push(( localize(11607, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
if (keyBinding.mac && typeof keyBinding.mac !== 'string') {
|
|
72
|
-
rejects.push(( localize(
|
|
72
|
+
rejects.push(( localize(11607, "property `{0}` can be omitted or must be of type `string`", 'mac')));
|
|
73
73
|
return false;
|
|
74
74
|
}
|
|
75
75
|
if (keyBinding.linux && typeof keyBinding.linux !== 'string') {
|
|
76
76
|
rejects.push(( localize(
|
|
77
|
-
|
|
77
|
+
11607,
|
|
78
78
|
"property `{0}` can be omitted or must be of type `string`",
|
|
79
79
|
'linux'
|
|
80
80
|
)));
|
|
81
81
|
return false;
|
|
82
82
|
}
|
|
83
83
|
if (keyBinding.win && typeof keyBinding.win !== 'string') {
|
|
84
|
-
rejects.push(( localize(
|
|
84
|
+
rejects.push(( localize(11607, "property `{0}` can be omitted or must be of type `string`", 'win')));
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
87
|
return true;
|
|
@@ -91,33 +91,33 @@ const keybindingType = {
|
|
|
91
91
|
default: { command: '', key: '' },
|
|
92
92
|
properties: {
|
|
93
93
|
command: {
|
|
94
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(11608, 'Identifier of the command to run when keybinding is triggered.')),
|
|
95
95
|
type: 'string'
|
|
96
96
|
},
|
|
97
97
|
args: {
|
|
98
|
-
description: ( localize(
|
|
98
|
+
description: ( localize(11609, "Arguments to pass to the command to execute."))
|
|
99
99
|
},
|
|
100
100
|
key: {
|
|
101
101
|
description: ( localize(
|
|
102
|
-
|
|
102
|
+
11610,
|
|
103
103
|
'Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord).'
|
|
104
104
|
)),
|
|
105
105
|
type: 'string'
|
|
106
106
|
},
|
|
107
107
|
mac: {
|
|
108
|
-
description: ( localize(
|
|
108
|
+
description: ( localize(11611, 'Mac specific key or key sequence.')),
|
|
109
109
|
type: 'string'
|
|
110
110
|
},
|
|
111
111
|
linux: {
|
|
112
|
-
description: ( localize(
|
|
112
|
+
description: ( localize(11612, 'Linux specific key or key sequence.')),
|
|
113
113
|
type: 'string'
|
|
114
114
|
},
|
|
115
115
|
win: {
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(11613, 'Windows specific key or key sequence.')),
|
|
117
117
|
type: 'string'
|
|
118
118
|
},
|
|
119
119
|
when: {
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(11614, 'Condition when the key is active.')),
|
|
121
121
|
type: 'string'
|
|
122
122
|
},
|
|
123
123
|
}
|
|
@@ -126,7 +126,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
126
126
|
extensionPoint: 'keybindings',
|
|
127
127
|
deps: [commandsExtensionPoint],
|
|
128
128
|
jsonSchema: {
|
|
129
|
-
description: ( localize(
|
|
129
|
+
description: ( localize(11615, "Contributes keybindings.")),
|
|
130
130
|
oneOf: [
|
|
131
131
|
keybindingType,
|
|
132
132
|
{
|
|
@@ -505,7 +505,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
505
505
|
}
|
|
506
506
|
if (rejects.length > 0) {
|
|
507
507
|
collector.error(( localize(
|
|
508
|
-
|
|
508
|
+
11616,
|
|
509
509
|
"Invalid `contributes.{0}`: {1}",
|
|
510
510
|
keybindingsExtPoint.name,
|
|
511
511
|
rejects.join('\n')
|
|
@@ -593,7 +593,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
593
593
|
static _getAllCommandsAsComment(boundCommands) {
|
|
594
594
|
const unboundCommands = getAllUnboundCommands(boundCommands);
|
|
595
595
|
const pretty = unboundCommands.sort().join('\n// - ');
|
|
596
|
-
return '// ' + ( localize(
|
|
596
|
+
return '// ' + ( localize(11617, "Here are other available commands: ")) + '\n// - ' + pretty;
|
|
597
597
|
}
|
|
598
598
|
mightProducePrintableCharacter(event) {
|
|
599
599
|
if (event.ctrlKey || event.metaKey || event.altKey) {
|
|
@@ -718,7 +718,7 @@ class KeybindingsJsonSchema {
|
|
|
718
718
|
this.schema = {
|
|
719
719
|
id: KeybindingsJsonSchema.schemaId,
|
|
720
720
|
type: 'array',
|
|
721
|
-
title: ( localize(
|
|
721
|
+
title: ( localize(11618, "Keybindings configuration")),
|
|
722
722
|
allowTrailingCommas: true,
|
|
723
723
|
allowComments: true,
|
|
724
724
|
definitions: {
|
|
@@ -742,7 +742,7 @@ class KeybindingsJsonSchema {
|
|
|
742
742
|
'type': 'string',
|
|
743
743
|
'enum': this.commandsEnum,
|
|
744
744
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
745
|
-
'description': ( localize(
|
|
745
|
+
'description': ( localize(11619, "Name of the command to execute")),
|
|
746
746
|
},
|
|
747
747
|
'commandType': {
|
|
748
748
|
'anyOf': [
|
|
@@ -753,7 +753,7 @@ class KeybindingsJsonSchema {
|
|
|
753
753
|
'type': 'string',
|
|
754
754
|
'enum': this.removalCommandsEnum,
|
|
755
755
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
756
|
-
'description': ( localize(
|
|
756
|
+
'description': ( localize(11620, "Name of the command to remove keyboard shortcut for")),
|
|
757
757
|
},
|
|
758
758
|
{
|
|
759
759
|
'type': 'string'
|
|
@@ -771,7 +771,7 @@ class KeybindingsJsonSchema {
|
|
|
771
771
|
'properties': {
|
|
772
772
|
'key': {
|
|
773
773
|
'type': 'string',
|
|
774
|
-
'description': ( localize(
|
|
774
|
+
'description': ( localize(11621, "Key or key sequence (separated by space)")),
|
|
775
775
|
},
|
|
776
776
|
'command': {
|
|
777
777
|
'anyOf': [
|
|
@@ -784,7 +784,7 @@ class KeybindingsJsonSchema {
|
|
|
784
784
|
'type': 'array'
|
|
785
785
|
},
|
|
786
786
|
'errorMessage': ( localize(
|
|
787
|
-
|
|
787
|
+
11622,
|
|
788
788
|
"Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
|
|
789
789
|
'string'
|
|
790
790
|
))
|
|
@@ -800,10 +800,10 @@ class KeybindingsJsonSchema {
|
|
|
800
800
|
},
|
|
801
801
|
'when': {
|
|
802
802
|
'type': 'string',
|
|
803
|
-
'description': ( localize(
|
|
803
|
+
'description': ( localize(11623, "Condition when the key is active."))
|
|
804
804
|
},
|
|
805
805
|
'args': {
|
|
806
|
-
'description': ( localize(
|
|
806
|
+
'description': ( localize(11624, "Arguments to pass to the command to execute."))
|
|
807
807
|
}
|
|
808
808
|
},
|
|
809
809
|
'$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(11625, "Keyboard")),
|
|
487
487
|
'properties': {
|
|
488
488
|
'keyboard.layout': {
|
|
489
489
|
'type': 'string',
|
|
490
490
|
'default': 'autodetect',
|
|
491
|
-
'description': ( localize(
|
|
491
|
+
'description': ( localize(11626, "Control the keyboard layout used in web."))
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
};
|