@codingame/monaco-vscode-keybindings-service-override 9.0.0 → 9.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +3 -3
- package/vscode/src/vs/workbench/contrib/commands/common/commands.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +3 -3
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +142 -142
- 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": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@9.0.
|
|
30
|
-
"@codingame/monaco-vscode-files-service-override": "9.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.3",
|
|
30
|
+
"@codingame/monaco-vscode-files-service-override": "9.0.3"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -19,7 +19,7 @@ const keyboardConfiguration = {
|
|
|
19
19
|
'id': 'keyboard',
|
|
20
20
|
'order': 15,
|
|
21
21
|
'type': 'object',
|
|
22
|
-
'title': ( localize(
|
|
22
|
+
'title': ( localize(8715, "Keyboard")),
|
|
23
23
|
'properties': {
|
|
24
24
|
'keyboard.dispatch': {
|
|
25
25
|
scope: ConfigurationScope.APPLICATION,
|
|
@@ -27,7 +27,7 @@ const keyboardConfiguration = {
|
|
|
27
27
|
enum: ['code', 'keyCode'],
|
|
28
28
|
default: 'code',
|
|
29
29
|
markdownDescription: ( localize(
|
|
30
|
-
|
|
30
|
+
8716,
|
|
31
31
|
"Controls the dispatching logic for key presses to use either `code` (recommended) or `keyCode`."
|
|
32
32
|
)),
|
|
33
33
|
included: OS === OperatingSystem.Macintosh || OS === OperatingSystem.Linux
|
|
@@ -36,7 +36,7 @@ const keyboardConfiguration = {
|
|
|
36
36
|
scope: ConfigurationScope.APPLICATION,
|
|
37
37
|
type: 'boolean',
|
|
38
38
|
default: false,
|
|
39
|
-
markdownDescription: ( localize(
|
|
39
|
+
markdownDescription: ( localize(8717, "Controls if the AltGraph+ modifier should be treated as Ctrl+Alt+.")),
|
|
40
40
|
included: OS === OperatingSystem.Windows
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -9,10 +9,10 @@ class RunCommands extends Action2 {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super({
|
|
11
11
|
id: 'runCommands',
|
|
12
|
-
title: ( localize2(
|
|
12
|
+
title: ( localize2(3527, "Run Commands")),
|
|
13
13
|
f1: false,
|
|
14
14
|
metadata: {
|
|
15
|
-
description: ( localize(
|
|
15
|
+
description: ( localize(3528, "Run several commands")),
|
|
16
16
|
args: [
|
|
17
17
|
{
|
|
18
18
|
name: 'args',
|
|
@@ -22,7 +22,7 @@ class RunCommands extends Action2 {
|
|
|
22
22
|
properties: {
|
|
23
23
|
commands: {
|
|
24
24
|
type: 'array',
|
|
25
|
-
description: ( localize(
|
|
25
|
+
description: ( localize(3529, "Commands to run")),
|
|
26
26
|
items: {
|
|
27
27
|
anyOf: [
|
|
28
28
|
{
|
|
@@ -62,14 +62,14 @@ class RunCommands extends Action2 {
|
|
|
62
62
|
const notificationService = accessor.get(INotificationService);
|
|
63
63
|
if (!this._isCommandArgs(args)) {
|
|
64
64
|
notificationService.error(( localize(
|
|
65
|
-
|
|
65
|
+
3530,
|
|
66
66
|
"'runCommands' has received an argument with incorrect type. Please, review the argument passed to the command."
|
|
67
67
|
)));
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
if (args.commands.length === 0) {
|
|
71
71
|
notificationService.warn(( localize(
|
|
72
|
-
|
|
72
|
+
3531,
|
|
73
73
|
"'runCommands' has not received commands to run. Did you forget to pass commands in the 'runCommands' argument?"
|
|
74
74
|
)));
|
|
75
75
|
return;
|
|
@@ -9,7 +9,7 @@ class ToggleKeybindingsLogAction extends Action2 {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super({
|
|
11
11
|
id: 'workbench.action.toggleKeybindingsLog',
|
|
12
|
-
title: ( localize2(
|
|
12
|
+
title: ( localize2(3523, "Toggle Keyboard Shortcuts Troubleshooting")),
|
|
13
13
|
category: Categories.Developer,
|
|
14
14
|
f1: true
|
|
15
15
|
});
|
package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js
CHANGED
|
@@ -23,7 +23,7 @@ import { DEFINE_KEYBINDING_EDITOR_CONTRIB_ID } from 'vscode/vscode/vs/workbench/
|
|
|
23
23
|
|
|
24
24
|
var KeybindingEditorDecorationsRenderer_1;
|
|
25
25
|
const NLS_KB_LAYOUT_ERROR_MESSAGE = ( localize(
|
|
26
|
-
|
|
26
|
+
3524,
|
|
27
27
|
"You won't be able to produce this key combination under your current keyboard layout."
|
|
28
28
|
));
|
|
29
29
|
let DefineKeybindingEditorContribution = class DefineKeybindingEditorContribution extends Disposable {
|
|
@@ -181,14 +181,14 @@ let KeybindingEditorDecorationsRenderer = KeybindingEditorDecorationsRenderer_1
|
|
|
181
181
|
else {
|
|
182
182
|
if (usLabel && uiLabel !== usLabel) {
|
|
183
183
|
msg = ( (new MarkdownString(( localize(
|
|
184
|
-
|
|
184
|
+
3525,
|
|
185
185
|
"**{0}** for your current keyboard layout (**{1}** for US standard).",
|
|
186
186
|
uiLabel,
|
|
187
187
|
usLabel
|
|
188
188
|
)))));
|
|
189
189
|
}
|
|
190
190
|
else {
|
|
191
|
-
msg = ( (new MarkdownString(( localize(
|
|
191
|
+
msg = ( (new MarkdownString(( localize(3526, "**{0}** for your current keyboard layout.", uiLabel)))));
|
|
192
192
|
}
|
|
193
193
|
className = 'keybindingInfo';
|
|
194
194
|
overviewRulerColor = themeColorFromId(overviewRulerInfo);
|
|
@@ -20,257 +20,257 @@ const apiMenus = [
|
|
|
20
20
|
{
|
|
21
21
|
key: 'commandPalette',
|
|
22
22
|
id: MenuId.CommandPalette,
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(8587, "The Command Palette")),
|
|
24
24
|
supportsSubmenus: false
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
key: 'touchBar',
|
|
28
28
|
id: MenuId.TouchBarContext,
|
|
29
|
-
description: ( localize(
|
|
29
|
+
description: ( localize(8588, "The touch bar (macOS only)")),
|
|
30
30
|
supportsSubmenus: false
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
key: 'editor/title',
|
|
34
34
|
id: MenuId.EditorTitle,
|
|
35
|
-
description: ( localize(
|
|
35
|
+
description: ( localize(8589, "The editor title menu"))
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
key: 'editor/title/run',
|
|
39
39
|
id: MenuId.EditorTitleRun,
|
|
40
|
-
description: ( localize(
|
|
40
|
+
description: ( localize(8590, "Run submenu inside the editor title menu"))
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
key: 'editor/context',
|
|
44
44
|
id: MenuId.EditorContext,
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(8591, "The editor context menu"))
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
key: 'editor/context/copy',
|
|
49
49
|
id: MenuId.EditorContextCopy,
|
|
50
|
-
description: ( localize(
|
|
50
|
+
description: ( localize(8592, "'Copy as' submenu in the editor context menu"))
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
key: 'editor/context/share',
|
|
54
54
|
id: MenuId.EditorContextShare,
|
|
55
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(8593, "'Share' submenu in the editor context menu")),
|
|
56
56
|
proposed: 'contribShareMenu'
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
key: 'explorer/context',
|
|
60
60
|
id: MenuId.ExplorerContext,
|
|
61
|
-
description: ( localize(
|
|
61
|
+
description: ( localize(8594, "The file explorer context menu"))
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
key: 'explorer/context/share',
|
|
65
65
|
id: MenuId.ExplorerContextShare,
|
|
66
|
-
description: ( localize(
|
|
66
|
+
description: ( localize(8595, "'Share' submenu in the file explorer context menu")),
|
|
67
67
|
proposed: 'contribShareMenu'
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
key: 'editor/title/context',
|
|
71
71
|
id: MenuId.EditorTitleContext,
|
|
72
|
-
description: ( localize(
|
|
72
|
+
description: ( localize(8596, "The editor tabs context menu"))
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
key: 'editor/title/context/share',
|
|
76
76
|
id: MenuId.EditorTitleContextShare,
|
|
77
|
-
description: ( localize(
|
|
77
|
+
description: ( localize(8597, "'Share' submenu inside the editor title context menu")),
|
|
78
78
|
proposed: 'contribShareMenu'
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
key: 'debug/callstack/context',
|
|
82
82
|
id: MenuId.DebugCallStackContext,
|
|
83
|
-
description: ( localize(
|
|
83
|
+
description: ( localize(8598, "The debug callstack view context menu"))
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
key: 'debug/variables/context',
|
|
87
87
|
id: MenuId.DebugVariablesContext,
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(8599, "The debug variables view context menu"))
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
key: 'debug/toolBar',
|
|
92
92
|
id: MenuId.DebugToolBar,
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(8600, "The debug toolbar menu"))
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
key: 'debug/createConfiguration',
|
|
97
97
|
id: MenuId.DebugCreateConfiguration,
|
|
98
98
|
proposed: 'contribDebugCreateConfiguration',
|
|
99
|
-
description: ( localize(
|
|
99
|
+
description: ( localize(8601, "The debug create configuration menu"))
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
key: 'notebook/variables/context',
|
|
103
103
|
id: MenuId.NotebookVariablesContext,
|
|
104
|
-
description: ( localize(
|
|
104
|
+
description: ( localize(8602, "The notebook variables view context menu"))
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
key: 'menuBar/home',
|
|
108
108
|
id: MenuId.MenubarHomeMenu,
|
|
109
|
-
description: ( localize(
|
|
109
|
+
description: ( localize(8603, "The home indicator context menu (web only)")),
|
|
110
110
|
proposed: 'contribMenuBarHome',
|
|
111
111
|
supportsSubmenus: false
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
key: 'menuBar/edit/copy',
|
|
115
115
|
id: MenuId.MenubarCopy,
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(8604, "'Copy as' submenu in the top level Edit menu"))
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
key: 'scm/title',
|
|
120
120
|
id: MenuId.SCMTitle,
|
|
121
|
-
description: ( localize(
|
|
121
|
+
description: ( localize(8605, "The Source Control title menu"))
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
key: 'scm/sourceControl',
|
|
125
125
|
id: MenuId.SCMSourceControl,
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(8606, "The Source Control menu"))
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
key: 'scm/sourceControl/title',
|
|
130
130
|
id: MenuId.SCMSourceControlTitle,
|
|
131
|
-
description: ( localize(
|
|
131
|
+
description: ( localize(8607, "The Source Control title menu")),
|
|
132
132
|
proposed: 'contribSourceControlTitleMenu'
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
key: 'scm/resourceState/context',
|
|
136
136
|
id: MenuId.SCMResourceContext,
|
|
137
|
-
description: ( localize(
|
|
137
|
+
description: ( localize(8608, "The Source Control resource state context menu"))
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
key: 'scm/resourceFolder/context',
|
|
141
141
|
id: MenuId.SCMResourceFolderContext,
|
|
142
|
-
description: ( localize(
|
|
142
|
+
description: ( localize(8609, "The Source Control resource folder context menu"))
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
key: 'scm/resourceGroup/context',
|
|
146
146
|
id: MenuId.SCMResourceGroupContext,
|
|
147
|
-
description: ( localize(
|
|
147
|
+
description: ( localize(8610, "The Source Control resource group context menu"))
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
key: 'scm/change/title',
|
|
151
151
|
id: MenuId.SCMChangeContext,
|
|
152
|
-
description: ( localize(
|
|
152
|
+
description: ( localize(8611, "The Source Control inline change menu"))
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
key: 'scm/inputBox',
|
|
156
156
|
id: MenuId.SCMInputBox,
|
|
157
|
-
description: ( localize(
|
|
157
|
+
description: ( localize(8612, "The Source Control input box menu")),
|
|
158
158
|
proposed: 'contribSourceControlInputBoxMenu'
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
key: 'scm/history/title',
|
|
162
162
|
id: MenuId.SCMHistoryTitle,
|
|
163
|
-
description: ( localize(
|
|
163
|
+
description: ( localize(8613, "The Source Control History title menu")),
|
|
164
164
|
proposed: 'contribSourceControlHistoryTitleMenu'
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
key: 'scm/historyItemChanges/title',
|
|
168
168
|
id: MenuId.SCMChangesSeparator,
|
|
169
|
-
description: ( localize(
|
|
169
|
+
description: ( localize(8614, "The Source Control incoming/outgoing changes title menu")),
|
|
170
170
|
proposed: 'contribSourceControlHistoryItemChangesMenu'
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
key: 'scm/historyItem/context',
|
|
174
174
|
id: MenuId.SCMChangesContext,
|
|
175
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(8615, "The Source Control history item context menu")),
|
|
176
176
|
proposed: 'contribSourceControlHistoryItemChangesMenu'
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
key: 'scm/incomingChanges',
|
|
180
180
|
id: MenuId.SCMIncomingChanges,
|
|
181
|
-
description: ( localize(
|
|
181
|
+
description: ( localize(8616, "The Source Control incoming changes menu")),
|
|
182
182
|
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
key: 'scm/incomingChanges/context',
|
|
186
186
|
id: MenuId.SCMIncomingChangesContext,
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(8617, "The Source Control incoming changes context menu")),
|
|
188
188
|
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
key: 'scm/outgoingChanges',
|
|
192
192
|
id: MenuId.SCMOutgoingChanges,
|
|
193
|
-
description: ( localize(
|
|
193
|
+
description: ( localize(8618, "The Source Control outgoing changes menu")),
|
|
194
194
|
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
key: 'scm/outgoingChanges/context',
|
|
198
198
|
id: MenuId.SCMOutgoingChangesContext,
|
|
199
|
-
description: ( localize(
|
|
199
|
+
description: ( localize(8619, "The Source Control outgoing changes context menu")),
|
|
200
200
|
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
key: 'scm/incomingChanges/allChanges/context',
|
|
204
204
|
id: MenuId.SCMIncomingChangesAllChangesContext,
|
|
205
|
-
description: ( localize(
|
|
205
|
+
description: ( localize(8620, "The Source Control all incoming changes context menu")),
|
|
206
206
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
key: 'scm/incomingChanges/historyItem/context',
|
|
210
210
|
id: MenuId.SCMIncomingChangesHistoryItemContext,
|
|
211
|
-
description: ( localize(
|
|
211
|
+
description: ( localize(8621, "The Source Control incoming changes history item context menu")),
|
|
212
212
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
key: 'scm/outgoingChanges/allChanges/context',
|
|
216
216
|
id: MenuId.SCMOutgoingChangesAllChangesContext,
|
|
217
|
-
description: ( localize(
|
|
217
|
+
description: ( localize(8622, "The Source Control all outgoing changes context menu")),
|
|
218
218
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
key: 'scm/outgoingChanges/historyItem/context',
|
|
222
222
|
id: MenuId.SCMOutgoingChangesHistoryItemContext,
|
|
223
|
-
description: ( localize(
|
|
223
|
+
description: ( localize(8623, "The Source Control outgoing changes history item context menu")),
|
|
224
224
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
key: 'statusBar/remoteIndicator',
|
|
228
228
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
229
|
-
description: ( localize(
|
|
229
|
+
description: ( localize(8624, "The remote indicator menu in the status bar")),
|
|
230
230
|
supportsSubmenus: false
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
key: 'terminal/context',
|
|
234
234
|
id: MenuId.TerminalInstanceContext,
|
|
235
|
-
description: ( localize(
|
|
235
|
+
description: ( localize(8625, "The terminal context menu"))
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
key: 'terminal/title/context',
|
|
239
239
|
id: MenuId.TerminalTabContext,
|
|
240
|
-
description: ( localize(
|
|
240
|
+
description: ( localize(8626, "The terminal tabs context menu"))
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
key: 'view/title',
|
|
244
244
|
id: MenuId.ViewTitle,
|
|
245
|
-
description: ( localize(
|
|
245
|
+
description: ( localize(8627, "The contributed view title menu"))
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
key: 'viewContainer/title',
|
|
249
249
|
id: MenuId.ViewContainerTitle,
|
|
250
|
-
description: ( localize(
|
|
250
|
+
description: ( localize(8628, "The contributed view container title menu")),
|
|
251
251
|
proposed: 'contribViewContainerTitle'
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
key: 'view/item/context',
|
|
255
255
|
id: MenuId.ViewItemContext,
|
|
256
|
-
description: ( localize(
|
|
256
|
+
description: ( localize(8629, "The contributed view item context menu"))
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
key: 'comments/comment/editorActions',
|
|
260
260
|
id: MenuId.CommentEditorActions,
|
|
261
|
-
description: ( localize(
|
|
261
|
+
description: ( localize(8630, "The contributed comment editor actions")),
|
|
262
262
|
proposed: 'contribCommentEditorActionsMenu'
|
|
263
263
|
},
|
|
264
264
|
{
|
|
265
265
|
key: 'comments/commentThread/title',
|
|
266
266
|
id: MenuId.CommentThreadTitle,
|
|
267
|
-
description: ( localize(
|
|
267
|
+
description: ( localize(8631, "The contributed comment thread title menu"))
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
key: 'comments/commentThread/context',
|
|
271
271
|
id: MenuId.CommentThreadActions,
|
|
272
272
|
description: ( localize(
|
|
273
|
-
|
|
273
|
+
8632,
|
|
274
274
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
275
275
|
)),
|
|
276
276
|
supportsSubmenus: false
|
|
@@ -279,7 +279,7 @@ const apiMenus = [
|
|
|
279
279
|
key: 'comments/commentThread/additionalActions',
|
|
280
280
|
id: MenuId.CommentThreadAdditionalActions,
|
|
281
281
|
description: ( localize(
|
|
282
|
-
|
|
282
|
+
8632,
|
|
283
283
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
284
284
|
)),
|
|
285
285
|
supportsSubmenus: false,
|
|
@@ -289,7 +289,7 @@ const apiMenus = [
|
|
|
289
289
|
key: 'comments/commentThread/title/context',
|
|
290
290
|
id: MenuId.CommentThreadTitleContext,
|
|
291
291
|
description: ( localize(
|
|
292
|
-
|
|
292
|
+
8633,
|
|
293
293
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
294
294
|
)),
|
|
295
295
|
proposed: 'contribCommentPeekContext'
|
|
@@ -297,13 +297,13 @@ const apiMenus = [
|
|
|
297
297
|
{
|
|
298
298
|
key: 'comments/comment/title',
|
|
299
299
|
id: MenuId.CommentTitle,
|
|
300
|
-
description: ( localize(
|
|
300
|
+
description: ( localize(8634, "The contributed comment title menu"))
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
key: 'comments/comment/context',
|
|
304
304
|
id: MenuId.CommentActions,
|
|
305
305
|
description: ( localize(
|
|
306
|
-
|
|
306
|
+
8635,
|
|
307
307
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
308
308
|
)),
|
|
309
309
|
supportsSubmenus: false
|
|
@@ -312,7 +312,7 @@ const apiMenus = [
|
|
|
312
312
|
key: 'comments/commentThread/comment/context',
|
|
313
313
|
id: MenuId.CommentThreadCommentContext,
|
|
314
314
|
description: ( localize(
|
|
315
|
-
|
|
315
|
+
8636,
|
|
316
316
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
317
317
|
)),
|
|
318
318
|
proposed: 'contribCommentPeekContext'
|
|
@@ -320,173 +320,173 @@ const apiMenus = [
|
|
|
320
320
|
{
|
|
321
321
|
key: 'commentsView/commentThread/context',
|
|
322
322
|
id: MenuId.CommentsViewThreadActions,
|
|
323
|
-
description: ( localize(
|
|
323
|
+
description: ( localize(8637, "The contributed comment thread context menu in the comments view")),
|
|
324
324
|
proposed: 'contribCommentsViewThreadMenus'
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
key: 'notebook/toolbar',
|
|
328
328
|
id: MenuId.NotebookToolbar,
|
|
329
|
-
description: ( localize(
|
|
329
|
+
description: ( localize(8638, "The contributed notebook toolbar menu"))
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
key: 'notebook/kernelSource',
|
|
333
333
|
id: MenuId.NotebookKernelSource,
|
|
334
|
-
description: ( localize(
|
|
334
|
+
description: ( localize(8639, "The contributed notebook kernel sources menu")),
|
|
335
335
|
proposed: 'notebookKernelSource'
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
key: 'notebook/cell/title',
|
|
339
339
|
id: MenuId.NotebookCellTitle,
|
|
340
|
-
description: ( localize(
|
|
340
|
+
description: ( localize(8640, "The contributed notebook cell title menu"))
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
key: 'notebook/cell/execute',
|
|
344
344
|
id: MenuId.NotebookCellExecute,
|
|
345
|
-
description: ( localize(
|
|
345
|
+
description: ( localize(8641, "The contributed notebook cell execution menu"))
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
key: 'interactive/toolbar',
|
|
349
349
|
id: MenuId.InteractiveToolbar,
|
|
350
|
-
description: ( localize(
|
|
350
|
+
description: ( localize(8642, "The contributed interactive toolbar menu")),
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
key: 'interactive/cell/title',
|
|
354
354
|
id: MenuId.InteractiveCellTitle,
|
|
355
|
-
description: ( localize(
|
|
355
|
+
description: ( localize(8643, "The contributed interactive cell title menu")),
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
key: 'issue/reporter',
|
|
359
359
|
id: MenuId.IssueReporter,
|
|
360
|
-
description: ( localize(
|
|
360
|
+
description: ( localize(8644, "The contributed issue reporter menu")),
|
|
361
361
|
proposed: 'contribIssueReporter'
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
364
|
key: 'testing/item/context',
|
|
365
365
|
id: MenuId.TestItem,
|
|
366
|
-
description: ( localize(
|
|
366
|
+
description: ( localize(8645, "The contributed test item menu")),
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
369
|
key: 'testing/item/gutter',
|
|
370
370
|
id: MenuId.TestItemGutter,
|
|
371
|
-
description: ( localize(
|
|
371
|
+
description: ( localize(8646, "The menu for a gutter decoration for a test item")),
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
key: 'testing/profiles/context',
|
|
375
375
|
id: MenuId.TestProfilesContext,
|
|
376
|
-
description: ( localize(
|
|
376
|
+
description: ( localize(8647, "The menu for configuring testing profiles.")),
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
key: 'testing/item/result',
|
|
380
380
|
id: MenuId.TestPeekElement,
|
|
381
|
-
description: ( localize(
|
|
381
|
+
description: ( localize(8648, "The menu for an item in the Test Results view or peek.")),
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
key: 'testing/message/context',
|
|
385
385
|
id: MenuId.TestMessageContext,
|
|
386
386
|
description: ( localize(
|
|
387
|
-
|
|
387
|
+
8649,
|
|
388
388
|
"A prominent button overlaying editor content where the message is displayed"
|
|
389
389
|
)),
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
392
|
key: 'testing/message/content',
|
|
393
393
|
id: MenuId.TestMessageContent,
|
|
394
|
-
description: ( localize(
|
|
394
|
+
description: ( localize(8650, "Context menu for the message in the results tree")),
|
|
395
395
|
},
|
|
396
396
|
{
|
|
397
397
|
key: 'extension/context',
|
|
398
398
|
id: MenuId.ExtensionContext,
|
|
399
|
-
description: ( localize(
|
|
399
|
+
description: ( localize(8651, "The extension context menu"))
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
402
|
key: 'timeline/title',
|
|
403
403
|
id: MenuId.TimelineTitle,
|
|
404
|
-
description: ( localize(
|
|
404
|
+
description: ( localize(8652, "The Timeline view title menu"))
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
key: 'timeline/item/context',
|
|
408
408
|
id: MenuId.TimelineItemContext,
|
|
409
|
-
description: ( localize(
|
|
409
|
+
description: ( localize(8653, "The Timeline view item context menu"))
|
|
410
410
|
},
|
|
411
411
|
{
|
|
412
412
|
key: 'ports/item/context',
|
|
413
413
|
id: MenuId.TunnelContext,
|
|
414
|
-
description: ( localize(
|
|
414
|
+
description: ( localize(8654, "The Ports view item context menu"))
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
key: 'ports/item/origin/inline',
|
|
418
418
|
id: MenuId.TunnelOriginInline,
|
|
419
|
-
description: ( localize(
|
|
419
|
+
description: ( localize(8655, "The Ports view item origin inline menu"))
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
key: 'ports/item/port/inline',
|
|
423
423
|
id: MenuId.TunnelPortInline,
|
|
424
|
-
description: ( localize(
|
|
424
|
+
description: ( localize(8656, "The Ports view item port inline menu"))
|
|
425
425
|
},
|
|
426
426
|
{
|
|
427
427
|
key: 'file/newFile',
|
|
428
428
|
id: MenuId.NewFile,
|
|
429
|
-
description: ( localize(
|
|
429
|
+
description: ( localize(8657, "The 'New File...' quick pick, shown on welcome page and File menu.")),
|
|
430
430
|
supportsSubmenus: false,
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
key: 'webview/context',
|
|
434
434
|
id: MenuId.WebviewContext,
|
|
435
|
-
description: ( localize(
|
|
435
|
+
description: ( localize(8658, "The webview context menu"))
|
|
436
436
|
},
|
|
437
437
|
{
|
|
438
438
|
key: 'file/share',
|
|
439
439
|
id: MenuId.MenubarShare,
|
|
440
|
-
description: ( localize(
|
|
440
|
+
description: ( localize(8659, "Share submenu shown in the top level File menu.")),
|
|
441
441
|
proposed: 'contribShareMenu'
|
|
442
442
|
},
|
|
443
443
|
{
|
|
444
444
|
key: 'editor/inlineCompletions/actions',
|
|
445
445
|
id: MenuId.InlineCompletionsActions,
|
|
446
|
-
description: ( localize(
|
|
446
|
+
description: ( localize(8660, "The actions shown when hovering on an inline completion")),
|
|
447
447
|
supportsSubmenus: false,
|
|
448
448
|
proposed: 'inlineCompletionsAdditions'
|
|
449
449
|
},
|
|
450
450
|
{
|
|
451
451
|
key: 'editor/inlineEdit/actions',
|
|
452
452
|
id: MenuId.InlineEditActions,
|
|
453
|
-
description: ( localize(
|
|
453
|
+
description: ( localize(8661, "The actions shown when hovering on an inline edit")),
|
|
454
454
|
supportsSubmenus: false,
|
|
455
455
|
proposed: 'inlineEdit'
|
|
456
456
|
},
|
|
457
457
|
{
|
|
458
458
|
key: 'editor/content',
|
|
459
459
|
id: MenuId.EditorContent,
|
|
460
|
-
description: ( localize(
|
|
460
|
+
description: ( localize(8662, "The prominent button in an editor, overlays its content")),
|
|
461
461
|
proposed: 'contribEditorContentMenu'
|
|
462
462
|
},
|
|
463
463
|
{
|
|
464
464
|
key: 'editor/lineNumber/context',
|
|
465
465
|
id: MenuId.EditorLineNumberContext,
|
|
466
|
-
description: ( localize(
|
|
466
|
+
description: ( localize(8663, "The contributed editor line number context menu"))
|
|
467
467
|
},
|
|
468
468
|
{
|
|
469
469
|
key: 'mergeEditor/result/title',
|
|
470
470
|
id: MenuId.MergeInputResultToolbar,
|
|
471
|
-
description: ( localize(
|
|
471
|
+
description: ( localize(8664, "The result toolbar of the merge editor")),
|
|
472
472
|
proposed: 'contribMergeEditorMenus'
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
475
|
key: 'multiDiffEditor/resource/title',
|
|
476
476
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
477
|
-
description: ( localize(
|
|
477
|
+
description: ( localize(8665, "The resource toolbar in the multi diff editor")),
|
|
478
478
|
proposed: 'contribMultiDiffEditorMenus'
|
|
479
479
|
},
|
|
480
480
|
{
|
|
481
481
|
key: 'diffEditor/gutter/hunk',
|
|
482
482
|
id: MenuId.DiffEditorHunkToolbar,
|
|
483
|
-
description: ( localize(
|
|
483
|
+
description: ( localize(8666, "The gutter toolbar in the diff editor")),
|
|
484
484
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
485
485
|
},
|
|
486
486
|
{
|
|
487
487
|
key: 'diffEditor/gutter/selection',
|
|
488
488
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
489
|
-
description: ( localize(
|
|
489
|
+
description: ( localize(8666, "The gutter toolbar in the diff editor")),
|
|
490
490
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
491
491
|
}
|
|
492
492
|
];
|
|
@@ -499,22 +499,22 @@ var schema;
|
|
|
499
499
|
function isValidMenuItem(item, collector) {
|
|
500
500
|
if (typeof item.command !== 'string') {
|
|
501
501
|
collector.error(( localize(
|
|
502
|
-
|
|
502
|
+
8667,
|
|
503
503
|
"property `{0}` is mandatory and must be of type `string`",
|
|
504
504
|
'command'
|
|
505
505
|
)));
|
|
506
506
|
return false;
|
|
507
507
|
}
|
|
508
508
|
if (item.alt && typeof item.alt !== 'string') {
|
|
509
|
-
collector.error(( localize(
|
|
509
|
+
collector.error(( localize(8668, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
510
510
|
return false;
|
|
511
511
|
}
|
|
512
512
|
if (item.when && typeof item.when !== 'string') {
|
|
513
|
-
collector.error(( localize(
|
|
513
|
+
collector.error(( localize(8668, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
514
514
|
return false;
|
|
515
515
|
}
|
|
516
516
|
if (item.group && typeof item.group !== 'string') {
|
|
517
|
-
collector.error(( localize(
|
|
517
|
+
collector.error(( localize(8668, "property `{0}` can be omitted or must be of type `string`", 'group')));
|
|
518
518
|
return false;
|
|
519
519
|
}
|
|
520
520
|
return true;
|
|
@@ -523,18 +523,18 @@ var schema;
|
|
|
523
523
|
function isValidSubmenuItem(item, collector) {
|
|
524
524
|
if (typeof item.submenu !== 'string') {
|
|
525
525
|
collector.error(( localize(
|
|
526
|
-
|
|
526
|
+
8667,
|
|
527
527
|
"property `{0}` is mandatory and must be of type `string`",
|
|
528
528
|
'submenu'
|
|
529
529
|
)));
|
|
530
530
|
return false;
|
|
531
531
|
}
|
|
532
532
|
if (item.when && typeof item.when !== 'string') {
|
|
533
|
-
collector.error(( localize(
|
|
533
|
+
collector.error(( localize(8668, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
534
534
|
return false;
|
|
535
535
|
}
|
|
536
536
|
if (item.group && typeof item.group !== 'string') {
|
|
537
|
-
collector.error(( localize(
|
|
537
|
+
collector.error(( localize(8668, "property `{0}` can be omitted or must be of type `string`", 'group')));
|
|
538
538
|
return false;
|
|
539
539
|
}
|
|
540
540
|
return true;
|
|
@@ -542,7 +542,7 @@ var schema;
|
|
|
542
542
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
543
543
|
function isValidItems(items, collector) {
|
|
544
544
|
if (!Array.isArray(items)) {
|
|
545
|
-
collector.error(( localize(
|
|
545
|
+
collector.error(( localize(8669, "submenu items must be an array")));
|
|
546
546
|
return false;
|
|
547
547
|
}
|
|
548
548
|
for (const item of items) {
|
|
@@ -562,15 +562,15 @@ var schema;
|
|
|
562
562
|
schema.isValidItems = isValidItems;
|
|
563
563
|
function isValidSubmenu(submenu, collector) {
|
|
564
564
|
if (typeof submenu !== 'object') {
|
|
565
|
-
collector.error(( localize(
|
|
565
|
+
collector.error(( localize(8670, "submenu items must be an object")));
|
|
566
566
|
return false;
|
|
567
567
|
}
|
|
568
568
|
if (typeof submenu.id !== 'string') {
|
|
569
|
-
collector.error(( localize(
|
|
569
|
+
collector.error(( localize(8667, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
570
570
|
return false;
|
|
571
571
|
}
|
|
572
572
|
if (typeof submenu.label !== 'string') {
|
|
573
|
-
collector.error(( localize(
|
|
573
|
+
collector.error(( localize(8667, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
574
574
|
return false;
|
|
575
575
|
}
|
|
576
576
|
return true;
|
|
@@ -582,24 +582,24 @@ var schema;
|
|
|
582
582
|
properties: {
|
|
583
583
|
command: {
|
|
584
584
|
description: ( localize(
|
|
585
|
-
|
|
585
|
+
8671,
|
|
586
586
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
587
587
|
)),
|
|
588
588
|
type: 'string'
|
|
589
589
|
},
|
|
590
590
|
alt: {
|
|
591
591
|
description: ( localize(
|
|
592
|
-
|
|
592
|
+
8672,
|
|
593
593
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
594
594
|
)),
|
|
595
595
|
type: 'string'
|
|
596
596
|
},
|
|
597
597
|
when: {
|
|
598
|
-
description: ( localize(
|
|
598
|
+
description: ( localize(8673, 'Condition which must be true to show this item')),
|
|
599
599
|
type: 'string'
|
|
600
600
|
},
|
|
601
601
|
group: {
|
|
602
|
-
description: ( localize(
|
|
602
|
+
description: ( localize(8674, 'Group into which this item belongs')),
|
|
603
603
|
type: 'string'
|
|
604
604
|
}
|
|
605
605
|
}
|
|
@@ -609,15 +609,15 @@ var schema;
|
|
|
609
609
|
required: ['submenu'],
|
|
610
610
|
properties: {
|
|
611
611
|
submenu: {
|
|
612
|
-
description: ( localize(
|
|
612
|
+
description: ( localize(8675, 'Identifier of the submenu to display in this item.')),
|
|
613
613
|
type: 'string'
|
|
614
614
|
},
|
|
615
615
|
when: {
|
|
616
|
-
description: ( localize(
|
|
616
|
+
description: ( localize(8673, 'Condition which must be true to show this item')),
|
|
617
617
|
type: 'string'
|
|
618
618
|
},
|
|
619
619
|
group: {
|
|
620
|
-
description: ( localize(
|
|
620
|
+
description: ( localize(8674, 'Group into which this item belongs')),
|
|
621
621
|
type: 'string'
|
|
622
622
|
}
|
|
623
623
|
}
|
|
@@ -627,16 +627,16 @@ var schema;
|
|
|
627
627
|
required: ['id', 'label'],
|
|
628
628
|
properties: {
|
|
629
629
|
id: {
|
|
630
|
-
description: ( localize(
|
|
630
|
+
description: ( localize(8676, 'Identifier of the menu to display as a submenu.')),
|
|
631
631
|
type: 'string'
|
|
632
632
|
},
|
|
633
633
|
label: {
|
|
634
|
-
description: ( localize(
|
|
634
|
+
description: ( localize(8677, 'The label of the menu item which leads to this submenu.')),
|
|
635
635
|
type: 'string'
|
|
636
636
|
},
|
|
637
637
|
icon: {
|
|
638
638
|
description: ( localize(
|
|
639
|
-
|
|
639
|
+
8678,
|
|
640
640
|
'(Optional) Icon which is used to represent the submenu in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like `\\$(zap)`'
|
|
641
641
|
)),
|
|
642
642
|
anyOf: [{
|
|
@@ -646,11 +646,11 @@ var schema;
|
|
|
646
646
|
type: 'object',
|
|
647
647
|
properties: {
|
|
648
648
|
light: {
|
|
649
|
-
description: ( localize(
|
|
649
|
+
description: ( localize(8679, 'Icon path when a light theme is used')),
|
|
650
650
|
type: 'string'
|
|
651
651
|
},
|
|
652
652
|
dark: {
|
|
653
|
-
description: ( localize(
|
|
653
|
+
description: ( localize(8680, 'Icon path when a dark theme is used')),
|
|
654
654
|
type: 'string'
|
|
655
655
|
}
|
|
656
656
|
}
|
|
@@ -659,11 +659,11 @@ var schema;
|
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
661
|
schema.menusContribution = {
|
|
662
|
-
description: ( localize(
|
|
662
|
+
description: ( localize(8681, "Contributes menu items to the editor")),
|
|
663
663
|
type: 'object',
|
|
664
664
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
665
665
|
markdownDescription: menu.proposed ? ( localize(
|
|
666
|
-
|
|
666
|
+
8682,
|
|
667
667
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
668
668
|
menu.proposed,
|
|
669
669
|
menu.description
|
|
@@ -678,18 +678,18 @@ var schema;
|
|
|
678
678
|
}
|
|
679
679
|
};
|
|
680
680
|
schema.submenusContribution = {
|
|
681
|
-
description: ( localize(
|
|
681
|
+
description: ( localize(8683, "Contributes submenu items to the editor")),
|
|
682
682
|
type: 'array',
|
|
683
683
|
items: submenu
|
|
684
684
|
};
|
|
685
685
|
function isValidCommand(command, collector) {
|
|
686
686
|
if (!command) {
|
|
687
|
-
collector.error(( localize(
|
|
687
|
+
collector.error(( localize(8684, "expected non-empty value.")));
|
|
688
688
|
return false;
|
|
689
689
|
}
|
|
690
690
|
if (isFalsyOrWhitespace(command.command)) {
|
|
691
691
|
collector.error(( localize(
|
|
692
|
-
|
|
692
|
+
8667,
|
|
693
693
|
"property `{0}` is mandatory and must be of type `string`",
|
|
694
694
|
'command'
|
|
695
695
|
)));
|
|
@@ -703,7 +703,7 @@ var schema;
|
|
|
703
703
|
}
|
|
704
704
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
705
705
|
collector.error(( localize(
|
|
706
|
-
|
|
706
|
+
8668,
|
|
707
707
|
"property `{0}` can be omitted or must be of type `string`",
|
|
708
708
|
'precondition'
|
|
709
709
|
)));
|
|
@@ -729,7 +729,7 @@ var schema;
|
|
|
729
729
|
return true;
|
|
730
730
|
}
|
|
731
731
|
collector.error(( localize(
|
|
732
|
-
|
|
732
|
+
8685,
|
|
733
733
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
734
734
|
)));
|
|
735
735
|
return false;
|
|
@@ -737,7 +737,7 @@ var schema;
|
|
|
737
737
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
738
738
|
if (typeof localized === 'undefined') {
|
|
739
739
|
collector.error(( localize(
|
|
740
|
-
|
|
740
|
+
8686,
|
|
741
741
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
742
742
|
propertyName
|
|
743
743
|
)));
|
|
@@ -745,7 +745,7 @@ var schema;
|
|
|
745
745
|
}
|
|
746
746
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
747
747
|
collector.error(( localize(
|
|
748
|
-
|
|
748
|
+
8667,
|
|
749
749
|
"property `{0}` is mandatory and must be of type `string`",
|
|
750
750
|
propertyName
|
|
751
751
|
)));
|
|
@@ -753,7 +753,7 @@ var schema;
|
|
|
753
753
|
}
|
|
754
754
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
755
755
|
collector.error(( localize(
|
|
756
|
-
|
|
756
|
+
8687,
|
|
757
757
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
758
758
|
`${propertyName}.value`,
|
|
759
759
|
`${propertyName}.original`
|
|
@@ -767,37 +767,37 @@ var schema;
|
|
|
767
767
|
required: ['command', 'title'],
|
|
768
768
|
properties: {
|
|
769
769
|
command: {
|
|
770
|
-
description: ( localize(
|
|
770
|
+
description: ( localize(8688, 'Identifier of the command to execute')),
|
|
771
771
|
type: 'string'
|
|
772
772
|
},
|
|
773
773
|
title: {
|
|
774
|
-
description: ( localize(
|
|
774
|
+
description: ( localize(8689, 'Title by which the command is represented in the UI')),
|
|
775
775
|
type: 'string'
|
|
776
776
|
},
|
|
777
777
|
shortTitle: {
|
|
778
778
|
markdownDescription: ( localize(
|
|
779
|
-
|
|
779
|
+
8690,
|
|
780
780
|
'(Optional) Short title by which the command is represented in the UI. Menus pick either `title` or `shortTitle` depending on the context in which they show commands.'
|
|
781
781
|
)),
|
|
782
782
|
type: 'string'
|
|
783
783
|
},
|
|
784
784
|
category: {
|
|
785
785
|
description: ( localize(
|
|
786
|
-
|
|
786
|
+
8691,
|
|
787
787
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
788
788
|
)),
|
|
789
789
|
type: 'string'
|
|
790
790
|
},
|
|
791
791
|
enablement: {
|
|
792
792
|
description: ( localize(
|
|
793
|
-
|
|
793
|
+
8692,
|
|
794
794
|
'(Optional) Condition which must be true to enable the command in the UI (menu and keybindings). Does not prevent executing the command by other means, like the `executeCommand`-api.'
|
|
795
795
|
)),
|
|
796
796
|
type: 'string'
|
|
797
797
|
},
|
|
798
798
|
icon: {
|
|
799
799
|
description: ( localize(
|
|
800
|
-
|
|
800
|
+
8693,
|
|
801
801
|
'(Optional) Icon which is used to represent the command in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like `\\$(zap)`'
|
|
802
802
|
)),
|
|
803
803
|
anyOf: [{
|
|
@@ -807,11 +807,11 @@ var schema;
|
|
|
807
807
|
type: 'object',
|
|
808
808
|
properties: {
|
|
809
809
|
light: {
|
|
810
|
-
description: ( localize(
|
|
810
|
+
description: ( localize(8694, 'Icon path when a light theme is used')),
|
|
811
811
|
type: 'string'
|
|
812
812
|
},
|
|
813
813
|
dark: {
|
|
814
|
-
description: ( localize(
|
|
814
|
+
description: ( localize(8695, 'Icon path when a dark theme is used')),
|
|
815
815
|
type: 'string'
|
|
816
816
|
}
|
|
817
817
|
}
|
|
@@ -820,7 +820,7 @@ var schema;
|
|
|
820
820
|
}
|
|
821
821
|
};
|
|
822
822
|
schema.commandsContribution = {
|
|
823
|
-
description: ( localize(
|
|
823
|
+
description: ( localize(8696, "Contributes commands to the command palette.")),
|
|
824
824
|
oneOf: [
|
|
825
825
|
commandType,
|
|
826
826
|
{
|
|
@@ -864,7 +864,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
864
864
|
if (existingCmd) {
|
|
865
865
|
if (existingCmd.source) {
|
|
866
866
|
extension.collector.info(( localize(
|
|
867
|
-
|
|
867
|
+
8697,
|
|
868
868
|
"Command `{0}` already registered by {1} ({2})",
|
|
869
869
|
userFriendlyCommand.command,
|
|
870
870
|
existingCmd.source.title,
|
|
@@ -872,7 +872,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
872
872
|
)));
|
|
873
873
|
}
|
|
874
874
|
else {
|
|
875
|
-
extension.collector.info(( localize(
|
|
875
|
+
extension.collector.info(( localize(8698, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
878
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -913,19 +913,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
913
913
|
continue;
|
|
914
914
|
}
|
|
915
915
|
if (!submenuInfo.id) {
|
|
916
|
-
collector.warn(( localize(
|
|
916
|
+
collector.warn(( localize(8699, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
917
917
|
continue;
|
|
918
918
|
}
|
|
919
919
|
if (( (_submenus.has(submenuInfo.id)))) {
|
|
920
920
|
collector.info(( localize(
|
|
921
|
-
|
|
921
|
+
8700,
|
|
922
922
|
"The `{0}` submenu was already previously registered.",
|
|
923
923
|
submenuInfo.id
|
|
924
924
|
)));
|
|
925
925
|
continue;
|
|
926
926
|
}
|
|
927
927
|
if (!submenuInfo.label) {
|
|
928
|
-
collector.warn(( localize(
|
|
928
|
+
collector.warn(( localize(8701, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
929
929
|
continue;
|
|
930
930
|
}
|
|
931
931
|
let absoluteIcon;
|
|
@@ -982,7 +982,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
982
982
|
}
|
|
983
983
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
984
984
|
collector.error(( localize(
|
|
985
|
-
|
|
985
|
+
8702,
|
|
986
986
|
"{0} is a proposed menu identifier. It requires 'package.json#enabledApiProposals: [\"{1}\"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api {2}",
|
|
987
987
|
entry[0],
|
|
988
988
|
menu.proposed,
|
|
@@ -997,7 +997,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
997
997
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
998
998
|
if (!command) {
|
|
999
999
|
collector.error(( localize(
|
|
1000
|
-
|
|
1000
|
+
8703,
|
|
1001
1001
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
1002
1002
|
menuItem.command
|
|
1003
1003
|
)));
|
|
@@ -1005,20 +1005,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
if (menuItem.alt && !alt) {
|
|
1007
1007
|
collector.warn(( localize(
|
|
1008
|
-
|
|
1008
|
+
8704,
|
|
1009
1009
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
1010
1010
|
menuItem.alt
|
|
1011
1011
|
)));
|
|
1012
1012
|
}
|
|
1013
1013
|
if (menuItem.command === menuItem.alt) {
|
|
1014
|
-
collector.info(( localize(
|
|
1014
|
+
collector.info(( localize(8705, "Menu item references the same command as default and alt-command")));
|
|
1015
1015
|
}
|
|
1016
1016
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
1017
1017
|
}
|
|
1018
1018
|
else {
|
|
1019
1019
|
if (menu.supportsSubmenus === false) {
|
|
1020
1020
|
collector.error(( localize(
|
|
1021
|
-
|
|
1021
|
+
8706,
|
|
1022
1022
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1023
1023
|
)));
|
|
1024
1024
|
continue;
|
|
@@ -1026,7 +1026,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1026
1026
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1027
1027
|
if (!submenu) {
|
|
1028
1028
|
collector.error(( localize(
|
|
1029
|
-
|
|
1029
|
+
8707,
|
|
1030
1030
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1031
1031
|
menuItem.submenu
|
|
1032
1032
|
)));
|
|
@@ -1039,7 +1039,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
if (( (submenuRegistrations.has(submenu.id.id)))) {
|
|
1041
1041
|
collector.warn(( localize(
|
|
1042
|
-
|
|
1042
|
+
8708,
|
|
1043
1043
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1044
1044
|
menuItem.submenu,
|
|
1045
1045
|
entry[0]
|
|
@@ -1061,7 +1061,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes('viewContainer == workbench.view.debug')) {
|
|
1063
1063
|
collector.error(( localize(
|
|
1064
|
-
|
|
1064
|
+
8709,
|
|
1065
1065
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1066
1066
|
'`viewContainer/title`',
|
|
1067
1067
|
'`viewContainer == workbench.view.debug`',
|
|
@@ -1129,10 +1129,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1129
1129
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1130
1130
|
}
|
|
1131
1131
|
const headers = [
|
|
1132
|
-
( localize(
|
|
1133
|
-
( localize(
|
|
1134
|
-
( localize(
|
|
1135
|
-
( localize(
|
|
1132
|
+
( localize(8710, "ID")),
|
|
1133
|
+
( localize(8711, "Title")),
|
|
1134
|
+
( localize(8712, "Keyboard Shortcuts")),
|
|
1135
|
+
( localize(8713, "Menu Contexts"))
|
|
1136
1136
|
];
|
|
1137
1137
|
const rows = ( (commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1138
1138
|
.map(command => {
|
|
@@ -1172,7 +1172,7 @@ CommandsTableRenderer = ( (__decorate([
|
|
|
1172
1172
|
], CommandsTableRenderer)));
|
|
1173
1173
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
1174
1174
|
id: 'commands',
|
|
1175
|
-
label: ( localize(
|
|
1175
|
+
label: ( localize(8714, "Commands")),
|
|
1176
1176
|
access: {
|
|
1177
1177
|
canToggle: false,
|
|
1178
1178
|
},
|
|
@@ -48,35 +48,35 @@ import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/use
|
|
|
48
48
|
var WorkbenchKeybindingService_1;
|
|
49
49
|
function isValidContributedKeyBinding(keyBinding, rejects) {
|
|
50
50
|
if (!keyBinding) {
|
|
51
|
-
rejects.push(( localize(
|
|
51
|
+
rejects.push(( localize(3501, "expected non-empty value.")));
|
|
52
52
|
return false;
|
|
53
53
|
}
|
|
54
54
|
if (typeof keyBinding.command !== 'string') {
|
|
55
55
|
rejects.push(( localize(
|
|
56
|
-
|
|
56
|
+
3502,
|
|
57
57
|
"property `{0}` is mandatory and must be of type `string`",
|
|
58
58
|
'command'
|
|
59
59
|
)));
|
|
60
60
|
return false;
|
|
61
61
|
}
|
|
62
62
|
if (keyBinding.key && typeof keyBinding.key !== 'string') {
|
|
63
|
-
rejects.push(( localize(
|
|
63
|
+
rejects.push(( localize(3503, "property `{0}` can be omitted or must be of type `string`", 'key')));
|
|
64
64
|
return false;
|
|
65
65
|
}
|
|
66
66
|
if (keyBinding.when && typeof keyBinding.when !== 'string') {
|
|
67
|
-
rejects.push(( localize(
|
|
67
|
+
rejects.push(( localize(3503, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
68
68
|
return false;
|
|
69
69
|
}
|
|
70
70
|
if (keyBinding.mac && typeof keyBinding.mac !== 'string') {
|
|
71
|
-
rejects.push(( localize(
|
|
71
|
+
rejects.push(( localize(3503, "property `{0}` can be omitted or must be of type `string`", 'mac')));
|
|
72
72
|
return false;
|
|
73
73
|
}
|
|
74
74
|
if (keyBinding.linux && typeof keyBinding.linux !== 'string') {
|
|
75
|
-
rejects.push(( localize(
|
|
75
|
+
rejects.push(( localize(3503, "property `{0}` can be omitted or must be of type `string`", 'linux')));
|
|
76
76
|
return false;
|
|
77
77
|
}
|
|
78
78
|
if (keyBinding.win && typeof keyBinding.win !== 'string') {
|
|
79
|
-
rejects.push(( localize(
|
|
79
|
+
rejects.push(( localize(3503, "property `{0}` can be omitted or must be of type `string`", 'win')));
|
|
80
80
|
return false;
|
|
81
81
|
}
|
|
82
82
|
return true;
|
|
@@ -86,33 +86,33 @@ const keybindingType = {
|
|
|
86
86
|
default: { command: '', key: '' },
|
|
87
87
|
properties: {
|
|
88
88
|
command: {
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(3504, 'Identifier of the command to run when keybinding is triggered.')),
|
|
90
90
|
type: 'string'
|
|
91
91
|
},
|
|
92
92
|
args: {
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(3505, "Arguments to pass to the command to execute."))
|
|
94
94
|
},
|
|
95
95
|
key: {
|
|
96
96
|
description: ( localize(
|
|
97
|
-
|
|
97
|
+
3506,
|
|
98
98
|
'Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord).'
|
|
99
99
|
)),
|
|
100
100
|
type: 'string'
|
|
101
101
|
},
|
|
102
102
|
mac: {
|
|
103
|
-
description: ( localize(
|
|
103
|
+
description: ( localize(3507, 'Mac specific key or key sequence.')),
|
|
104
104
|
type: 'string'
|
|
105
105
|
},
|
|
106
106
|
linux: {
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(3508, 'Linux specific key or key sequence.')),
|
|
108
108
|
type: 'string'
|
|
109
109
|
},
|
|
110
110
|
win: {
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(3509, 'Windows specific key or key sequence.')),
|
|
112
112
|
type: 'string'
|
|
113
113
|
},
|
|
114
114
|
when: {
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(3510, 'Condition when the key is active.')),
|
|
116
116
|
type: 'string'
|
|
117
117
|
},
|
|
118
118
|
}
|
|
@@ -121,7 +121,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
121
121
|
extensionPoint: 'keybindings',
|
|
122
122
|
deps: [commandsExtensionPoint],
|
|
123
123
|
jsonSchema: {
|
|
124
|
-
description: ( localize(
|
|
124
|
+
description: ( localize(3511, "Contributes keybindings.")),
|
|
125
125
|
oneOf: [
|
|
126
126
|
keybindingType,
|
|
127
127
|
{
|
|
@@ -504,7 +504,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
504
504
|
}
|
|
505
505
|
if (rejects.length > 0) {
|
|
506
506
|
collector.error(( localize(
|
|
507
|
-
|
|
507
|
+
3512,
|
|
508
508
|
"Invalid `contributes.{0}`: {1}",
|
|
509
509
|
keybindingsExtPoint.name,
|
|
510
510
|
rejects.join('\n')
|
|
@@ -594,7 +594,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
594
594
|
static _getAllCommandsAsComment(boundCommands) {
|
|
595
595
|
const unboundCommands = getAllUnboundCommands(boundCommands);
|
|
596
596
|
const pretty = unboundCommands.sort().join('\n// - ');
|
|
597
|
-
return '// ' + ( localize(
|
|
597
|
+
return '// ' + ( localize(3513, "Here are other available commands: ")) + '\n// - ' + pretty;
|
|
598
598
|
}
|
|
599
599
|
mightProducePrintableCharacter(event) {
|
|
600
600
|
if (event.ctrlKey || event.metaKey || event.altKey) {
|
|
@@ -719,7 +719,7 @@ class KeybindingsJsonSchema {
|
|
|
719
719
|
this.schema = {
|
|
720
720
|
id: KeybindingsJsonSchema.schemaId,
|
|
721
721
|
type: 'array',
|
|
722
|
-
title: ( localize(
|
|
722
|
+
title: ( localize(3514, "Keybindings configuration")),
|
|
723
723
|
allowTrailingCommas: true,
|
|
724
724
|
allowComments: true,
|
|
725
725
|
definitions: {
|
|
@@ -743,7 +743,7 @@ class KeybindingsJsonSchema {
|
|
|
743
743
|
'type': 'string',
|
|
744
744
|
'enum': this.commandsEnum,
|
|
745
745
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
746
|
-
'description': ( localize(
|
|
746
|
+
'description': ( localize(3515, "Name of the command to execute")),
|
|
747
747
|
},
|
|
748
748
|
'commandType': {
|
|
749
749
|
'anyOf': [
|
|
@@ -754,7 +754,7 @@ class KeybindingsJsonSchema {
|
|
|
754
754
|
'type': 'string',
|
|
755
755
|
'enum': this.removalCommandsEnum,
|
|
756
756
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
757
|
-
'description': ( localize(
|
|
757
|
+
'description': ( localize(3516, "Name of the command to remove keyboard shortcut for")),
|
|
758
758
|
},
|
|
759
759
|
{
|
|
760
760
|
'type': 'string'
|
|
@@ -772,7 +772,7 @@ class KeybindingsJsonSchema {
|
|
|
772
772
|
'properties': {
|
|
773
773
|
'key': {
|
|
774
774
|
'type': 'string',
|
|
775
|
-
'description': ( localize(
|
|
775
|
+
'description': ( localize(3517, "Key or key sequence (separated by space)")),
|
|
776
776
|
},
|
|
777
777
|
'command': {
|
|
778
778
|
'anyOf': [
|
|
@@ -785,7 +785,7 @@ class KeybindingsJsonSchema {
|
|
|
785
785
|
'type': 'array'
|
|
786
786
|
},
|
|
787
787
|
'errorMessage': ( localize(
|
|
788
|
-
|
|
788
|
+
3518,
|
|
789
789
|
"Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
|
|
790
790
|
'string'
|
|
791
791
|
))
|
|
@@ -801,10 +801,10 @@ class KeybindingsJsonSchema {
|
|
|
801
801
|
},
|
|
802
802
|
'when': {
|
|
803
803
|
'type': 'string',
|
|
804
|
-
'description': ( localize(
|
|
804
|
+
'description': ( localize(3519, "Condition when the key is active."))
|
|
805
805
|
},
|
|
806
806
|
'args': {
|
|
807
|
-
'description': ( localize(
|
|
807
|
+
'description': ( localize(3520, "Arguments to pass to the command to execute."))
|
|
808
808
|
}
|
|
809
809
|
},
|
|
810
810
|
'$ref': '#/definitions/commandsSchemas'
|
|
@@ -492,12 +492,12 @@ const keyboardConfiguration = {
|
|
|
492
492
|
'id': 'keyboard',
|
|
493
493
|
'order': 15,
|
|
494
494
|
'type': 'object',
|
|
495
|
-
'title': ( localize(
|
|
495
|
+
'title': ( localize(3521, "Keyboard")),
|
|
496
496
|
'properties': {
|
|
497
497
|
'keyboard.layout': {
|
|
498
498
|
'type': 'string',
|
|
499
499
|
'default': 'autodetect',
|
|
500
|
-
'description': ( localize(
|
|
500
|
+
'description': ( localize(3522, "Control the keyboard layout used in web."))
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
};
|