@codingame/monaco-vscode-keybindings-service-override 14.0.3 → 14.0.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 +8 -8
- package/vscode/src/vs/workbench/contrib/commands/common/commands.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +3 -3
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +134 -134
- 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": "14.0.
|
|
3
|
+
"version": "14.0.5",
|
|
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": "14.0.
|
|
19
|
-
"@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common": "14.0.
|
|
20
|
-
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "14.0.
|
|
21
|
-
"@codingame/monaco-vscode-af5ccfda-af82-504b-b365-92b4e654e5c5-common": "14.0.
|
|
22
|
-
"@codingame/monaco-vscode-api": "14.0.
|
|
23
|
-
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "14.0.
|
|
24
|
-
"@codingame/monaco-vscode-files-service-override": "14.0.
|
|
18
|
+
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "14.0.5",
|
|
19
|
+
"@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common": "14.0.5",
|
|
20
|
+
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "14.0.5",
|
|
21
|
+
"@codingame/monaco-vscode-af5ccfda-af82-504b-b365-92b4e654e5c5-common": "14.0.5",
|
|
22
|
+
"@codingame/monaco-vscode-api": "14.0.5",
|
|
23
|
+
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "14.0.5",
|
|
24
|
+
"@codingame/monaco-vscode-files-service-override": "14.0.5"
|
|
25
25
|
},
|
|
26
26
|
"main": "index.js",
|
|
27
27
|
"module": "index.js",
|
|
@@ -10,10 +10,10 @@ class RunCommands extends Action2 {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super({
|
|
12
12
|
id: 'runCommands',
|
|
13
|
-
title: ( localize2(
|
|
13
|
+
title: ( localize2(4936, "Run Commands")),
|
|
14
14
|
f1: false,
|
|
15
15
|
metadata: {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(4937, "Run several commands")),
|
|
17
17
|
args: [
|
|
18
18
|
{
|
|
19
19
|
name: 'args',
|
|
@@ -23,7 +23,7 @@ class RunCommands extends Action2 {
|
|
|
23
23
|
properties: {
|
|
24
24
|
commands: {
|
|
25
25
|
type: 'array',
|
|
26
|
-
description: ( localize(
|
|
26
|
+
description: ( localize(4938, "Commands to run")),
|
|
27
27
|
items: {
|
|
28
28
|
anyOf: [
|
|
29
29
|
{
|
|
@@ -63,14 +63,14 @@ class RunCommands extends Action2 {
|
|
|
63
63
|
const notificationService = accessor.get(INotificationService);
|
|
64
64
|
if (!this._isCommandArgs(args)) {
|
|
65
65
|
notificationService.error(( localize(
|
|
66
|
-
|
|
66
|
+
4939,
|
|
67
67
|
"'runCommands' has received an argument with incorrect type. Please, review the argument passed to the command."
|
|
68
68
|
)));
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
if (args.commands.length === 0) {
|
|
72
72
|
notificationService.warn(( localize(
|
|
73
|
-
|
|
73
|
+
4940,
|
|
74
74
|
"'runCommands' has not received commands to run. Did you forget to pass commands in the 'runCommands' argument?"
|
|
75
75
|
)));
|
|
76
76
|
return;
|
|
@@ -10,7 +10,7 @@ class ToggleKeybindingsLogAction extends Action2 {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super({
|
|
12
12
|
id: 'workbench.action.toggleKeybindingsLog',
|
|
13
|
-
title: ( localize2(
|
|
13
|
+
title: ( localize2(7093, "Toggle Keyboard Shortcuts Troubleshooting")),
|
|
14
14
|
category: Categories.Developer,
|
|
15
15
|
f1: true
|
|
16
16
|
});
|
package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js
CHANGED
|
@@ -24,7 +24,7 @@ import { DEFINE_KEYBINDING_EDITOR_CONTRIB_ID } from '@codingame/monaco-vscode-af
|
|
|
24
24
|
|
|
25
25
|
var KeybindingEditorDecorationsRenderer_1;
|
|
26
26
|
const NLS_KB_LAYOUT_ERROR_MESSAGE = ( localize(
|
|
27
|
-
|
|
27
|
+
8090,
|
|
28
28
|
"You won't be able to produce this key combination under your current keyboard layout."
|
|
29
29
|
));
|
|
30
30
|
let DefineKeybindingEditorContribution = class DefineKeybindingEditorContribution extends Disposable {
|
|
@@ -182,14 +182,14 @@ let KeybindingEditorDecorationsRenderer = KeybindingEditorDecorationsRenderer_1
|
|
|
182
182
|
else {
|
|
183
183
|
if (usLabel && uiLabel !== usLabel) {
|
|
184
184
|
msg = ( new MarkdownString(( localize(
|
|
185
|
-
|
|
185
|
+
8091,
|
|
186
186
|
"**{0}** for your current keyboard layout (**{1}** for US standard).",
|
|
187
187
|
uiLabel,
|
|
188
188
|
usLabel
|
|
189
189
|
))));
|
|
190
190
|
}
|
|
191
191
|
else {
|
|
192
|
-
msg = ( new MarkdownString(( localize(
|
|
192
|
+
msg = ( new MarkdownString(( localize(8092, "**{0}** for your current keyboard layout.", uiLabel))));
|
|
193
193
|
}
|
|
194
194
|
className = 'keybindingInfo';
|
|
195
195
|
overviewRulerColor = themeColorFromId(overviewRulerInfo);
|
|
@@ -21,215 +21,215 @@ const apiMenus = [
|
|
|
21
21
|
{
|
|
22
22
|
key: 'commandPalette',
|
|
23
23
|
id: MenuId.CommandPalette,
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(11337, "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(11338, "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(11339, "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(11340, "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(11341, "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(11342, "'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(11343, "'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(11344, "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(11345, "'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(11346, "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(11347, "'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(11348, "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(11349, "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(11350, "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(11351, "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(11352, "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(11353, "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(11354, "'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(11355, "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(11356, "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(11357, "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(11358, "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(11359, "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(11360, "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(11361, "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(11362, "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(11363, "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(11364, "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(11365, "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(11366, "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(11367, "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(11368, "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(11369, "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(11370, "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(11371, "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(11372, "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(11373, "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(11374, "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
|
+
11375,
|
|
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
|
+
11375,
|
|
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
|
+
11376,
|
|
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(11377, "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
|
+
11378,
|
|
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
|
+
11379,
|
|
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(11380, "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(11381, "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(11382, "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(11383, "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(11384, "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(11385, "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(11386, "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(11387, "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(11388, "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(11389, "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(11390, "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(11391, "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
|
+
11392,
|
|
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(11393, "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(11394, "The extension context menu"))
|
|
358
358
|
},
|
|
359
359
|
{
|
|
360
360
|
key: 'timeline/title',
|
|
361
361
|
id: MenuId.TimelineTitle,
|
|
362
|
-
description: ( localize(
|
|
362
|
+
description: ( localize(11395, "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(11396, "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(11397, "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(11398, "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(11399, "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
|
+
11400,
|
|
389
389
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
390
390
|
)),
|
|
391
391
|
supportsSubmenus: false,
|
|
@@ -393,54 +393,54 @@ const apiMenus = [
|
|
|
393
393
|
{
|
|
394
394
|
key: 'webview/context',
|
|
395
395
|
id: MenuId.WebviewContext,
|
|
396
|
-
description: ( localize(
|
|
396
|
+
description: ( localize(11401, "The webview context menu"))
|
|
397
397
|
},
|
|
398
398
|
{
|
|
399
399
|
key: 'file/share',
|
|
400
400
|
id: MenuId.MenubarShare,
|
|
401
|
-
description: ( localize(
|
|
401
|
+
description: ( localize(11402, "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(11403, "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(11404, "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(11405, "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(11406, "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(11407, "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(11408, "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(11408, "The gutter toolbar in the diff editor")),
|
|
444
444
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
445
445
|
}
|
|
446
446
|
];
|
|
@@ -453,23 +453,23 @@ var schema;
|
|
|
453
453
|
function isValidMenuItem(item, collector) {
|
|
454
454
|
if (typeof item.command !== 'string') {
|
|
455
455
|
collector.error(( localize(
|
|
456
|
-
|
|
456
|
+
11409,
|
|
457
457
|
"property `{0}` is mandatory and must be of type `string`",
|
|
458
458
|
'command'
|
|
459
459
|
)));
|
|
460
460
|
return false;
|
|
461
461
|
}
|
|
462
462
|
if (item.alt && typeof item.alt !== 'string') {
|
|
463
|
-
collector.error(( localize(
|
|
463
|
+
collector.error(( localize(11410, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
464
464
|
return false;
|
|
465
465
|
}
|
|
466
466
|
if (item.when && typeof item.when !== 'string') {
|
|
467
|
-
collector.error(( localize(
|
|
467
|
+
collector.error(( localize(11410, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
468
468
|
return false;
|
|
469
469
|
}
|
|
470
470
|
if (item.group && typeof item.group !== 'string') {
|
|
471
471
|
collector.error(( localize(
|
|
472
|
-
|
|
472
|
+
11410,
|
|
473
473
|
"property `{0}` can be omitted or must be of type `string`",
|
|
474
474
|
'group'
|
|
475
475
|
)));
|
|
@@ -481,19 +481,19 @@ var schema;
|
|
|
481
481
|
function isValidSubmenuItem(item, collector) {
|
|
482
482
|
if (typeof item.submenu !== 'string') {
|
|
483
483
|
collector.error(( localize(
|
|
484
|
-
|
|
484
|
+
11409,
|
|
485
485
|
"property `{0}` is mandatory and must be of type `string`",
|
|
486
486
|
'submenu'
|
|
487
487
|
)));
|
|
488
488
|
return false;
|
|
489
489
|
}
|
|
490
490
|
if (item.when && typeof item.when !== 'string') {
|
|
491
|
-
collector.error(( localize(
|
|
491
|
+
collector.error(( localize(11410, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
492
492
|
return false;
|
|
493
493
|
}
|
|
494
494
|
if (item.group && typeof item.group !== 'string') {
|
|
495
495
|
collector.error(( localize(
|
|
496
|
-
|
|
496
|
+
11410,
|
|
497
497
|
"property `{0}` can be omitted or must be of type `string`",
|
|
498
498
|
'group'
|
|
499
499
|
)));
|
|
@@ -504,7 +504,7 @@ var schema;
|
|
|
504
504
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
505
505
|
function isValidItems(items, collector) {
|
|
506
506
|
if (!Array.isArray(items)) {
|
|
507
|
-
collector.error(( localize(
|
|
507
|
+
collector.error(( localize(11411, "submenu items must be an array")));
|
|
508
508
|
return false;
|
|
509
509
|
}
|
|
510
510
|
for (const item of items) {
|
|
@@ -524,15 +524,15 @@ var schema;
|
|
|
524
524
|
schema.isValidItems = isValidItems;
|
|
525
525
|
function isValidSubmenu(submenu, collector) {
|
|
526
526
|
if (typeof submenu !== 'object') {
|
|
527
|
-
collector.error(( localize(
|
|
527
|
+
collector.error(( localize(11412, "submenu items must be an object")));
|
|
528
528
|
return false;
|
|
529
529
|
}
|
|
530
530
|
if (typeof submenu.id !== 'string') {
|
|
531
|
-
collector.error(( localize(
|
|
531
|
+
collector.error(( localize(11409, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
532
532
|
return false;
|
|
533
533
|
}
|
|
534
534
|
if (typeof submenu.label !== 'string') {
|
|
535
|
-
collector.error(( localize(
|
|
535
|
+
collector.error(( localize(11409, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
536
536
|
return false;
|
|
537
537
|
}
|
|
538
538
|
return true;
|
|
@@ -544,24 +544,24 @@ var schema;
|
|
|
544
544
|
properties: {
|
|
545
545
|
command: {
|
|
546
546
|
description: ( localize(
|
|
547
|
-
|
|
547
|
+
11413,
|
|
548
548
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
549
549
|
)),
|
|
550
550
|
type: 'string'
|
|
551
551
|
},
|
|
552
552
|
alt: {
|
|
553
553
|
description: ( localize(
|
|
554
|
-
|
|
554
|
+
11414,
|
|
555
555
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
556
556
|
)),
|
|
557
557
|
type: 'string'
|
|
558
558
|
},
|
|
559
559
|
when: {
|
|
560
|
-
description: ( localize(
|
|
560
|
+
description: ( localize(11415, 'Condition which must be true to show this item')),
|
|
561
561
|
type: 'string'
|
|
562
562
|
},
|
|
563
563
|
group: {
|
|
564
|
-
description: ( localize(
|
|
564
|
+
description: ( localize(11416, 'Group into which this item belongs')),
|
|
565
565
|
type: 'string'
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -571,15 +571,15 @@ var schema;
|
|
|
571
571
|
required: ['submenu'],
|
|
572
572
|
properties: {
|
|
573
573
|
submenu: {
|
|
574
|
-
description: ( localize(
|
|
574
|
+
description: ( localize(11417, 'Identifier of the submenu to display in this item.')),
|
|
575
575
|
type: 'string'
|
|
576
576
|
},
|
|
577
577
|
when: {
|
|
578
|
-
description: ( localize(
|
|
578
|
+
description: ( localize(11415, 'Condition which must be true to show this item')),
|
|
579
579
|
type: 'string'
|
|
580
580
|
},
|
|
581
581
|
group: {
|
|
582
|
-
description: ( localize(
|
|
582
|
+
description: ( localize(11416, 'Group into which this item belongs')),
|
|
583
583
|
type: 'string'
|
|
584
584
|
}
|
|
585
585
|
}
|
|
@@ -589,16 +589,16 @@ var schema;
|
|
|
589
589
|
required: ['id', 'label'],
|
|
590
590
|
properties: {
|
|
591
591
|
id: {
|
|
592
|
-
description: ( localize(
|
|
592
|
+
description: ( localize(11418, 'Identifier of the menu to display as a submenu.')),
|
|
593
593
|
type: 'string'
|
|
594
594
|
},
|
|
595
595
|
label: {
|
|
596
|
-
description: ( localize(
|
|
596
|
+
description: ( localize(11419, 'The label of the menu item which leads to this submenu.')),
|
|
597
597
|
type: 'string'
|
|
598
598
|
},
|
|
599
599
|
icon: {
|
|
600
600
|
description: ( localize(
|
|
601
|
-
|
|
601
|
+
11420,
|
|
602
602
|
'(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)`'
|
|
603
603
|
)),
|
|
604
604
|
anyOf: [{
|
|
@@ -608,11 +608,11 @@ var schema;
|
|
|
608
608
|
type: 'object',
|
|
609
609
|
properties: {
|
|
610
610
|
light: {
|
|
611
|
-
description: ( localize(
|
|
611
|
+
description: ( localize(11421, 'Icon path when a light theme is used')),
|
|
612
612
|
type: 'string'
|
|
613
613
|
},
|
|
614
614
|
dark: {
|
|
615
|
-
description: ( localize(
|
|
615
|
+
description: ( localize(11422, 'Icon path when a dark theme is used')),
|
|
616
616
|
type: 'string'
|
|
617
617
|
}
|
|
618
618
|
}
|
|
@@ -621,11 +621,11 @@ var schema;
|
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
623
|
schema.menusContribution = {
|
|
624
|
-
description: ( localize(
|
|
624
|
+
description: ( localize(11423, "Contributes menu items to the editor")),
|
|
625
625
|
type: 'object',
|
|
626
626
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
627
627
|
markdownDescription: menu.proposed ? ( localize(
|
|
628
|
-
|
|
628
|
+
11424,
|
|
629
629
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
630
630
|
menu.proposed,
|
|
631
631
|
menu.description
|
|
@@ -640,18 +640,18 @@ var schema;
|
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
642
|
schema.submenusContribution = {
|
|
643
|
-
description: ( localize(
|
|
643
|
+
description: ( localize(11425, "Contributes submenu items to the editor")),
|
|
644
644
|
type: 'array',
|
|
645
645
|
items: submenu
|
|
646
646
|
};
|
|
647
647
|
function isValidCommand(command, collector) {
|
|
648
648
|
if (!command) {
|
|
649
|
-
collector.error(( localize(
|
|
649
|
+
collector.error(( localize(11426, "expected non-empty value.")));
|
|
650
650
|
return false;
|
|
651
651
|
}
|
|
652
652
|
if (isFalsyOrWhitespace(command.command)) {
|
|
653
653
|
collector.error(( localize(
|
|
654
|
-
|
|
654
|
+
11409,
|
|
655
655
|
"property `{0}` is mandatory and must be of type `string`",
|
|
656
656
|
'command'
|
|
657
657
|
)));
|
|
@@ -665,7 +665,7 @@ var schema;
|
|
|
665
665
|
}
|
|
666
666
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
667
667
|
collector.error(( localize(
|
|
668
|
-
|
|
668
|
+
11410,
|
|
669
669
|
"property `{0}` can be omitted or must be of type `string`",
|
|
670
670
|
'precondition'
|
|
671
671
|
)));
|
|
@@ -691,7 +691,7 @@ var schema;
|
|
|
691
691
|
return true;
|
|
692
692
|
}
|
|
693
693
|
collector.error(( localize(
|
|
694
|
-
|
|
694
|
+
11427,
|
|
695
695
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
696
696
|
)));
|
|
697
697
|
return false;
|
|
@@ -699,7 +699,7 @@ var schema;
|
|
|
699
699
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
700
700
|
if (typeof localized === 'undefined') {
|
|
701
701
|
collector.error(( localize(
|
|
702
|
-
|
|
702
|
+
11428,
|
|
703
703
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
704
704
|
propertyName
|
|
705
705
|
)));
|
|
@@ -707,7 +707,7 @@ var schema;
|
|
|
707
707
|
}
|
|
708
708
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
709
709
|
collector.error(( localize(
|
|
710
|
-
|
|
710
|
+
11409,
|
|
711
711
|
"property `{0}` is mandatory and must be of type `string`",
|
|
712
712
|
propertyName
|
|
713
713
|
)));
|
|
@@ -715,7 +715,7 @@ var schema;
|
|
|
715
715
|
}
|
|
716
716
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
717
717
|
collector.error(( localize(
|
|
718
|
-
|
|
718
|
+
11429,
|
|
719
719
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
720
720
|
`${propertyName}.value`,
|
|
721
721
|
`${propertyName}.original`
|
|
@@ -729,37 +729,37 @@ var schema;
|
|
|
729
729
|
required: ['command', 'title'],
|
|
730
730
|
properties: {
|
|
731
731
|
command: {
|
|
732
|
-
description: ( localize(
|
|
732
|
+
description: ( localize(11430, 'Identifier of the command to execute')),
|
|
733
733
|
type: 'string'
|
|
734
734
|
},
|
|
735
735
|
title: {
|
|
736
|
-
description: ( localize(
|
|
736
|
+
description: ( localize(11431, 'Title by which the command is represented in the UI')),
|
|
737
737
|
type: 'string'
|
|
738
738
|
},
|
|
739
739
|
shortTitle: {
|
|
740
740
|
markdownDescription: ( localize(
|
|
741
|
-
|
|
741
|
+
11432,
|
|
742
742
|
'(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.'
|
|
743
743
|
)),
|
|
744
744
|
type: 'string'
|
|
745
745
|
},
|
|
746
746
|
category: {
|
|
747
747
|
description: ( localize(
|
|
748
|
-
|
|
748
|
+
11433,
|
|
749
749
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
750
750
|
)),
|
|
751
751
|
type: 'string'
|
|
752
752
|
},
|
|
753
753
|
enablement: {
|
|
754
754
|
description: ( localize(
|
|
755
|
-
|
|
755
|
+
11434,
|
|
756
756
|
'(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.'
|
|
757
757
|
)),
|
|
758
758
|
type: 'string'
|
|
759
759
|
},
|
|
760
760
|
icon: {
|
|
761
761
|
description: ( localize(
|
|
762
|
-
|
|
762
|
+
11435,
|
|
763
763
|
'(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)`'
|
|
764
764
|
)),
|
|
765
765
|
anyOf: [{
|
|
@@ -769,11 +769,11 @@ var schema;
|
|
|
769
769
|
type: 'object',
|
|
770
770
|
properties: {
|
|
771
771
|
light: {
|
|
772
|
-
description: ( localize(
|
|
772
|
+
description: ( localize(11436, 'Icon path when a light theme is used')),
|
|
773
773
|
type: 'string'
|
|
774
774
|
},
|
|
775
775
|
dark: {
|
|
776
|
-
description: ( localize(
|
|
776
|
+
description: ( localize(11437, 'Icon path when a dark theme is used')),
|
|
777
777
|
type: 'string'
|
|
778
778
|
}
|
|
779
779
|
}
|
|
@@ -782,7 +782,7 @@ var schema;
|
|
|
782
782
|
}
|
|
783
783
|
};
|
|
784
784
|
schema.commandsContribution = {
|
|
785
|
-
description: ( localize(
|
|
785
|
+
description: ( localize(11438, "Contributes commands to the command palette.")),
|
|
786
786
|
oneOf: [
|
|
787
787
|
commandType,
|
|
788
788
|
{
|
|
@@ -826,7 +826,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
826
826
|
if (existingCmd) {
|
|
827
827
|
if (existingCmd.source) {
|
|
828
828
|
extension.collector.info(( localize(
|
|
829
|
-
|
|
829
|
+
11439,
|
|
830
830
|
"Command `{0}` already registered by {1} ({2})",
|
|
831
831
|
userFriendlyCommand.command,
|
|
832
832
|
existingCmd.source.title,
|
|
@@ -834,7 +834,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
834
834
|
)));
|
|
835
835
|
}
|
|
836
836
|
else {
|
|
837
|
-
extension.collector.info(( localize(
|
|
837
|
+
extension.collector.info(( localize(11440, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -875,19 +875,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
875
875
|
continue;
|
|
876
876
|
}
|
|
877
877
|
if (!submenuInfo.id) {
|
|
878
|
-
collector.warn(( localize(
|
|
878
|
+
collector.warn(( localize(11441, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
879
879
|
continue;
|
|
880
880
|
}
|
|
881
881
|
if (( _submenus.has(submenuInfo.id))) {
|
|
882
882
|
collector.info(( localize(
|
|
883
|
-
|
|
883
|
+
11442,
|
|
884
884
|
"The `{0}` submenu was already previously registered.",
|
|
885
885
|
submenuInfo.id
|
|
886
886
|
)));
|
|
887
887
|
continue;
|
|
888
888
|
}
|
|
889
889
|
if (!submenuInfo.label) {
|
|
890
|
-
collector.warn(( localize(
|
|
890
|
+
collector.warn(( localize(11443, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
891
891
|
continue;
|
|
892
892
|
}
|
|
893
893
|
let absoluteIcon;
|
|
@@ -944,7 +944,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
944
944
|
}
|
|
945
945
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
946
946
|
collector.error(( localize(
|
|
947
|
-
|
|
947
|
+
11444,
|
|
948
948
|
"{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}",
|
|
949
949
|
entry[0],
|
|
950
950
|
menu.proposed,
|
|
@@ -959,7 +959,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
959
959
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
960
960
|
if (!command) {
|
|
961
961
|
collector.error(( localize(
|
|
962
|
-
|
|
962
|
+
11445,
|
|
963
963
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
964
964
|
menuItem.command
|
|
965
965
|
)));
|
|
@@ -967,20 +967,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
967
967
|
}
|
|
968
968
|
if (menuItem.alt && !alt) {
|
|
969
969
|
collector.warn(( localize(
|
|
970
|
-
|
|
970
|
+
11446,
|
|
971
971
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
972
972
|
menuItem.alt
|
|
973
973
|
)));
|
|
974
974
|
}
|
|
975
975
|
if (menuItem.command === menuItem.alt) {
|
|
976
|
-
collector.info(( localize(
|
|
976
|
+
collector.info(( localize(11447, "Menu item references the same command as default and alt-command")));
|
|
977
977
|
}
|
|
978
978
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
979
979
|
}
|
|
980
980
|
else {
|
|
981
981
|
if (menu.supportsSubmenus === false) {
|
|
982
982
|
collector.error(( localize(
|
|
983
|
-
|
|
983
|
+
11448,
|
|
984
984
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
985
985
|
)));
|
|
986
986
|
continue;
|
|
@@ -988,7 +988,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
988
988
|
const submenu = _submenus.get(menuItem.submenu);
|
|
989
989
|
if (!submenu) {
|
|
990
990
|
collector.error(( localize(
|
|
991
|
-
|
|
991
|
+
11449,
|
|
992
992
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
993
993
|
menuItem.submenu
|
|
994
994
|
)));
|
|
@@ -1001,7 +1001,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1003
1003
|
collector.warn(( localize(
|
|
1004
|
-
|
|
1004
|
+
11450,
|
|
1005
1005
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1006
1006
|
menuItem.submenu,
|
|
1007
1007
|
entry[0]
|
|
@@ -1023,7 +1023,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes('viewContainer == workbench.view.debug')) {
|
|
1025
1025
|
collector.error(( localize(
|
|
1026
|
-
|
|
1026
|
+
11451,
|
|
1027
1027
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1028
1028
|
'`viewContainer/title`',
|
|
1029
1029
|
'`viewContainer == workbench.view.debug`',
|
|
@@ -1110,10 +1110,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1110
1110
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1111
1111
|
}
|
|
1112
1112
|
const headers = [
|
|
1113
|
-
( localize(
|
|
1114
|
-
( localize(
|
|
1115
|
-
( localize(
|
|
1116
|
-
( localize(
|
|
1113
|
+
( localize(11452, "ID")),
|
|
1114
|
+
( localize(11453, "Title")),
|
|
1115
|
+
( localize(11454, "Keyboard Shortcuts")),
|
|
1116
|
+
( localize(11455, "Menu Contexts"))
|
|
1117
1117
|
];
|
|
1118
1118
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1119
1119
|
.map(command => {
|
|
@@ -1153,7 +1153,7 @@ CommandsTableRenderer = ( __decorate([
|
|
|
1153
1153
|
], CommandsTableRenderer));
|
|
1154
1154
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1155
1155
|
id: 'commands',
|
|
1156
|
-
label: ( localize(
|
|
1156
|
+
label: ( localize(11456, "Commands")),
|
|
1157
1157
|
access: {
|
|
1158
1158
|
canToggle: false,
|
|
1159
1159
|
},
|
|
@@ -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(11823, "expected non-empty value.")));
|
|
53
53
|
return false;
|
|
54
54
|
}
|
|
55
55
|
if (typeof keyBinding.command !== 'string') {
|
|
56
56
|
rejects.push(( localize(
|
|
57
|
-
|
|
57
|
+
11824,
|
|
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(11825, "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(11825, "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(11825, "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
|
+
11825,
|
|
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(11825, "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(11826, '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(11827, "Arguments to pass to the command to execute."))
|
|
99
99
|
},
|
|
100
100
|
key: {
|
|
101
101
|
description: ( localize(
|
|
102
|
-
|
|
102
|
+
11828,
|
|
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(11829, 'Mac specific key or key sequence.')),
|
|
109
109
|
type: 'string'
|
|
110
110
|
},
|
|
111
111
|
linux: {
|
|
112
|
-
description: ( localize(
|
|
112
|
+
description: ( localize(11830, 'Linux specific key or key sequence.')),
|
|
113
113
|
type: 'string'
|
|
114
114
|
},
|
|
115
115
|
win: {
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(11831, 'Windows specific key or key sequence.')),
|
|
117
117
|
type: 'string'
|
|
118
118
|
},
|
|
119
119
|
when: {
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(11832, '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(11833, "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
|
+
11834,
|
|
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(11835, "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(11836, "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(11837, "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(11838, "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(11839, "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
|
+
11840,
|
|
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(11841, "Condition when the key is active."))
|
|
804
804
|
},
|
|
805
805
|
'args': {
|
|
806
|
-
'description': ( localize(
|
|
806
|
+
'description': ( localize(11842, "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(11843, "Keyboard")),
|
|
487
487
|
'properties': {
|
|
488
488
|
'keyboard.layout': {
|
|
489
489
|
'type': 'string',
|
|
490
490
|
'default': 'autodetect',
|
|
491
|
-
'description': ( localize(
|
|
491
|
+
'description': ( localize(11844, "Control the keyboard layout used in web."))
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
};
|