@codingame/monaco-vscode-keybindings-service-override 8.0.0 → 8.0.2
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 +138 -138
- 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": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
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@8.0.
|
|
30
|
-
"@codingame/monaco-vscode-files-service-override": "8.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@8.0.2",
|
|
30
|
+
"@codingame/monaco-vscode-files-service-override": "8.0.2"
|
|
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(8664, "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
|
+
8665,
|
|
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(8666, "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(3529, "Run Commands")),
|
|
13
13
|
f1: false,
|
|
14
14
|
metadata: {
|
|
15
|
-
description: ( localize(
|
|
15
|
+
description: ( localize(3530, "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(3531, "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
|
+
3532,
|
|
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
|
+
3533,
|
|
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(3525, "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
|
+
3526,
|
|
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
|
+
3527,
|
|
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(3528, "**{0}** for your current keyboard layout.", uiLabel)))));
|
|
192
192
|
}
|
|
193
193
|
className = 'keybindingInfo';
|
|
194
194
|
overviewRulerColor = themeColorFromId(overviewRulerInfo);
|
|
@@ -20,239 +20,239 @@ const apiMenus = [
|
|
|
20
20
|
{
|
|
21
21
|
key: 'commandPalette',
|
|
22
22
|
id: MenuId.CommandPalette,
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(8540, "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(8541, "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(8542, "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(8543, "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(8544, "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(8545, "'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(8546, "'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(8547, "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(8548, "'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(8549, "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(8550, "'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(8551, "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(8552, "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(8553, "The debug toolbar menu"))
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
key: 'notebook/variables/context',
|
|
97
97
|
id: MenuId.NotebookVariablesContext,
|
|
98
|
-
description: ( localize(
|
|
98
|
+
description: ( localize(8554, "The notebook variables view context menu"))
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
key: 'menuBar/home',
|
|
102
102
|
id: MenuId.MenubarHomeMenu,
|
|
103
|
-
description: ( localize(
|
|
103
|
+
description: ( localize(8555, "The home indicator context menu (web only)")),
|
|
104
104
|
proposed: 'contribMenuBarHome',
|
|
105
105
|
supportsSubmenus: false
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
key: 'menuBar/edit/copy',
|
|
109
109
|
id: MenuId.MenubarCopy,
|
|
110
|
-
description: ( localize(
|
|
110
|
+
description: ( localize(8556, "'Copy as' submenu in the top level Edit menu"))
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
key: 'scm/title',
|
|
114
114
|
id: MenuId.SCMTitle,
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(8557, "The Source Control title menu"))
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
key: 'scm/sourceControl',
|
|
119
119
|
id: MenuId.SCMSourceControl,
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(8558, "The Source Control menu"))
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
key: 'scm/sourceControl/title',
|
|
124
124
|
id: MenuId.SCMSourceControlTitle,
|
|
125
|
-
description: ( localize(
|
|
125
|
+
description: ( localize(8559, "The Source Control title menu")),
|
|
126
126
|
proposed: 'contribSourceControlTitleMenu'
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
key: 'scm/resourceState/context',
|
|
130
130
|
id: MenuId.SCMResourceContext,
|
|
131
|
-
description: ( localize(
|
|
131
|
+
description: ( localize(8560, "The Source Control resource state context menu"))
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
key: 'scm/resourceFolder/context',
|
|
135
135
|
id: MenuId.SCMResourceFolderContext,
|
|
136
|
-
description: ( localize(
|
|
136
|
+
description: ( localize(8561, "The Source Control resource folder context menu"))
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
key: 'scm/resourceGroup/context',
|
|
140
140
|
id: MenuId.SCMResourceGroupContext,
|
|
141
|
-
description: ( localize(
|
|
141
|
+
description: ( localize(8562, "The Source Control resource group context menu"))
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
key: 'scm/change/title',
|
|
145
145
|
id: MenuId.SCMChangeContext,
|
|
146
|
-
description: ( localize(
|
|
146
|
+
description: ( localize(8563, "The Source Control inline change menu"))
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
key: 'scm/inputBox',
|
|
150
150
|
id: MenuId.SCMInputBox,
|
|
151
|
-
description: ( localize(
|
|
151
|
+
description: ( localize(8564, "The Source Control input box menu")),
|
|
152
152
|
proposed: 'contribSourceControlInputBoxMenu'
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
key: 'scm/historyItemChanges/title',
|
|
156
156
|
id: MenuId.SCMChangesSeparator,
|
|
157
|
-
description: ( localize(
|
|
157
|
+
description: ( localize(8565, "The Source Control incoming/outgoing changes title menu")),
|
|
158
158
|
proposed: 'contribSourceControlHistoryItemChangesMenu'
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
key: 'scm/historyItem/context',
|
|
162
162
|
id: MenuId.SCMChangesContext,
|
|
163
|
-
description: ( localize(
|
|
163
|
+
description: ( localize(8566, "The Source Control history item context menu")),
|
|
164
164
|
proposed: 'contribSourceControlHistoryItemChangesMenu'
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
key: 'scm/incomingChanges',
|
|
168
168
|
id: MenuId.SCMIncomingChanges,
|
|
169
|
-
description: ( localize(
|
|
169
|
+
description: ( localize(8567, "The Source Control incoming changes menu")),
|
|
170
170
|
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
key: 'scm/incomingChanges/context',
|
|
174
174
|
id: MenuId.SCMIncomingChangesContext,
|
|
175
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(8568, "The Source Control incoming changes context menu")),
|
|
176
176
|
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
key: 'scm/outgoingChanges',
|
|
180
180
|
id: MenuId.SCMOutgoingChanges,
|
|
181
|
-
description: ( localize(
|
|
181
|
+
description: ( localize(8569, "The Source Control outgoing changes menu")),
|
|
182
182
|
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
key: 'scm/outgoingChanges/context',
|
|
186
186
|
id: MenuId.SCMOutgoingChangesContext,
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(8570, "The Source Control outgoing changes context menu")),
|
|
188
188
|
proposed: 'contribSourceControlHistoryItemGroupMenu'
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
key: 'scm/incomingChanges/allChanges/context',
|
|
192
192
|
id: MenuId.SCMIncomingChangesAllChangesContext,
|
|
193
|
-
description: ( localize(
|
|
193
|
+
description: ( localize(8571, "The Source Control all incoming changes context menu")),
|
|
194
194
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
key: 'scm/incomingChanges/historyItem/context',
|
|
198
198
|
id: MenuId.SCMIncomingChangesHistoryItemContext,
|
|
199
|
-
description: ( localize(
|
|
199
|
+
description: ( localize(8572, "The Source Control incoming changes history item context menu")),
|
|
200
200
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
key: 'scm/outgoingChanges/allChanges/context',
|
|
204
204
|
id: MenuId.SCMOutgoingChangesAllChangesContext,
|
|
205
|
-
description: ( localize(
|
|
205
|
+
description: ( localize(8573, "The Source Control all outgoing changes context menu")),
|
|
206
206
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
key: 'scm/outgoingChanges/historyItem/context',
|
|
210
210
|
id: MenuId.SCMOutgoingChangesHistoryItemContext,
|
|
211
|
-
description: ( localize(
|
|
211
|
+
description: ( localize(8574, "The Source Control outgoing changes history item context menu")),
|
|
212
212
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
key: 'statusBar/remoteIndicator',
|
|
216
216
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
217
|
-
description: ( localize(
|
|
217
|
+
description: ( localize(8575, "The remote indicator menu in the status bar")),
|
|
218
218
|
supportsSubmenus: false
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
key: 'terminal/context',
|
|
222
222
|
id: MenuId.TerminalInstanceContext,
|
|
223
|
-
description: ( localize(
|
|
223
|
+
description: ( localize(8576, "The terminal context menu"))
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
key: 'terminal/title/context',
|
|
227
227
|
id: MenuId.TerminalTabContext,
|
|
228
|
-
description: ( localize(
|
|
228
|
+
description: ( localize(8577, "The terminal tabs context menu"))
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
key: 'view/title',
|
|
232
232
|
id: MenuId.ViewTitle,
|
|
233
|
-
description: ( localize(
|
|
233
|
+
description: ( localize(8578, "The contributed view title menu"))
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
key: 'view/item/context',
|
|
237
237
|
id: MenuId.ViewItemContext,
|
|
238
|
-
description: ( localize(
|
|
238
|
+
description: ( localize(8579, "The contributed view item context menu"))
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
key: 'comments/comment/editorActions',
|
|
242
242
|
id: MenuId.CommentEditorActions,
|
|
243
|
-
description: ( localize(
|
|
243
|
+
description: ( localize(8580, "The contributed comment editor actions")),
|
|
244
244
|
proposed: 'contribCommentEditorActionsMenu'
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
key: 'comments/commentThread/title',
|
|
248
248
|
id: MenuId.CommentThreadTitle,
|
|
249
|
-
description: ( localize(
|
|
249
|
+
description: ( localize(8581, "The contributed comment thread title menu"))
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
key: 'comments/commentThread/context',
|
|
253
253
|
id: MenuId.CommentThreadActions,
|
|
254
254
|
description: ( localize(
|
|
255
|
-
|
|
255
|
+
8582,
|
|
256
256
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
257
257
|
)),
|
|
258
258
|
supportsSubmenus: false
|
|
@@ -261,7 +261,7 @@ const apiMenus = [
|
|
|
261
261
|
key: 'comments/commentThread/additionalActions',
|
|
262
262
|
id: MenuId.CommentThreadAdditionalActions,
|
|
263
263
|
description: ( localize(
|
|
264
|
-
|
|
264
|
+
8582,
|
|
265
265
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
266
266
|
)),
|
|
267
267
|
supportsSubmenus: false,
|
|
@@ -271,7 +271,7 @@ const apiMenus = [
|
|
|
271
271
|
key: 'comments/commentThread/title/context',
|
|
272
272
|
id: MenuId.CommentThreadTitleContext,
|
|
273
273
|
description: ( localize(
|
|
274
|
-
|
|
274
|
+
8583,
|
|
275
275
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
276
276
|
)),
|
|
277
277
|
proposed: 'contribCommentPeekContext'
|
|
@@ -279,13 +279,13 @@ const apiMenus = [
|
|
|
279
279
|
{
|
|
280
280
|
key: 'comments/comment/title',
|
|
281
281
|
id: MenuId.CommentTitle,
|
|
282
|
-
description: ( localize(
|
|
282
|
+
description: ( localize(8584, "The contributed comment title menu"))
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
key: 'comments/comment/context',
|
|
286
286
|
id: MenuId.CommentActions,
|
|
287
287
|
description: ( localize(
|
|
288
|
-
|
|
288
|
+
8585,
|
|
289
289
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
290
290
|
)),
|
|
291
291
|
supportsSubmenus: false
|
|
@@ -294,7 +294,7 @@ const apiMenus = [
|
|
|
294
294
|
key: 'comments/commentThread/comment/context',
|
|
295
295
|
id: MenuId.CommentThreadCommentContext,
|
|
296
296
|
description: ( localize(
|
|
297
|
-
|
|
297
|
+
8586,
|
|
298
298
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
299
299
|
)),
|
|
300
300
|
proposed: 'contribCommentPeekContext'
|
|
@@ -302,173 +302,173 @@ const apiMenus = [
|
|
|
302
302
|
{
|
|
303
303
|
key: 'commentsView/commentThread/context',
|
|
304
304
|
id: MenuId.CommentsViewThreadActions,
|
|
305
|
-
description: ( localize(
|
|
305
|
+
description: ( localize(8587, "The contributed comment thread context menu in the comments view")),
|
|
306
306
|
proposed: 'contribCommentsViewThreadMenus'
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
309
|
key: 'notebook/toolbar',
|
|
310
310
|
id: MenuId.NotebookToolbar,
|
|
311
|
-
description: ( localize(
|
|
311
|
+
description: ( localize(8588, "The contributed notebook toolbar menu"))
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
key: 'notebook/kernelSource',
|
|
315
315
|
id: MenuId.NotebookKernelSource,
|
|
316
|
-
description: ( localize(
|
|
316
|
+
description: ( localize(8589, "The contributed notebook kernel sources menu")),
|
|
317
317
|
proposed: 'notebookKernelSource'
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
key: 'notebook/cell/title',
|
|
321
321
|
id: MenuId.NotebookCellTitle,
|
|
322
|
-
description: ( localize(
|
|
322
|
+
description: ( localize(8590, "The contributed notebook cell title menu"))
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
key: 'notebook/cell/execute',
|
|
326
326
|
id: MenuId.NotebookCellExecute,
|
|
327
|
-
description: ( localize(
|
|
327
|
+
description: ( localize(8591, "The contributed notebook cell execution menu"))
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
330
|
key: 'interactive/toolbar',
|
|
331
331
|
id: MenuId.InteractiveToolbar,
|
|
332
|
-
description: ( localize(
|
|
332
|
+
description: ( localize(8592, "The contributed interactive toolbar menu")),
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
335
|
key: 'interactive/cell/title',
|
|
336
336
|
id: MenuId.InteractiveCellTitle,
|
|
337
|
-
description: ( localize(
|
|
337
|
+
description: ( localize(8593, "The contributed interactive cell title menu")),
|
|
338
338
|
},
|
|
339
339
|
{
|
|
340
340
|
key: 'issue/reporter',
|
|
341
341
|
id: MenuId.IssueReporter,
|
|
342
|
-
description: ( localize(
|
|
342
|
+
description: ( localize(8594, "The contributed issue reporter menu")),
|
|
343
343
|
proposed: 'contribIssueReporter'
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
key: 'testing/item/context',
|
|
347
347
|
id: MenuId.TestItem,
|
|
348
|
-
description: ( localize(
|
|
348
|
+
description: ( localize(8595, "The contributed test item menu")),
|
|
349
349
|
},
|
|
350
350
|
{
|
|
351
351
|
key: 'testing/item/gutter',
|
|
352
352
|
id: MenuId.TestItemGutter,
|
|
353
|
-
description: ( localize(
|
|
353
|
+
description: ( localize(8596, "The menu for a gutter decoration for a test item")),
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
356
|
key: 'testing/profiles/context',
|
|
357
357
|
id: MenuId.TestProfilesContext,
|
|
358
|
-
description: ( localize(
|
|
358
|
+
description: ( localize(8597, "The menu for configuring testing profiles.")),
|
|
359
359
|
},
|
|
360
360
|
{
|
|
361
361
|
key: 'testing/item/result',
|
|
362
362
|
id: MenuId.TestPeekElement,
|
|
363
|
-
description: ( localize(
|
|
363
|
+
description: ( localize(8598, "The menu for an item in the Test Results view or peek.")),
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
key: 'testing/message/context',
|
|
367
367
|
id: MenuId.TestMessageContext,
|
|
368
368
|
description: ( localize(
|
|
369
|
-
|
|
369
|
+
8599,
|
|
370
370
|
"A prominent button overlaying editor content where the message is displayed"
|
|
371
371
|
)),
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
key: 'testing/message/content',
|
|
375
375
|
id: MenuId.TestMessageContent,
|
|
376
|
-
description: ( localize(
|
|
376
|
+
description: ( localize(8600, "Context menu for the message in the results tree")),
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
key: 'extension/context',
|
|
380
380
|
id: MenuId.ExtensionContext,
|
|
381
|
-
description: ( localize(
|
|
381
|
+
description: ( localize(8601, "The extension context menu"))
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
key: 'timeline/title',
|
|
385
385
|
id: MenuId.TimelineTitle,
|
|
386
|
-
description: ( localize(
|
|
386
|
+
description: ( localize(8602, "The Timeline view title menu"))
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
key: 'timeline/item/context',
|
|
390
390
|
id: MenuId.TimelineItemContext,
|
|
391
|
-
description: ( localize(
|
|
391
|
+
description: ( localize(8603, "The Timeline view item context menu"))
|
|
392
392
|
},
|
|
393
393
|
{
|
|
394
394
|
key: 'ports/item/context',
|
|
395
395
|
id: MenuId.TunnelContext,
|
|
396
|
-
description: ( localize(
|
|
396
|
+
description: ( localize(8604, "The Ports view item context menu"))
|
|
397
397
|
},
|
|
398
398
|
{
|
|
399
399
|
key: 'ports/item/origin/inline',
|
|
400
400
|
id: MenuId.TunnelOriginInline,
|
|
401
|
-
description: ( localize(
|
|
401
|
+
description: ( localize(8605, "The Ports view item origin inline menu"))
|
|
402
402
|
},
|
|
403
403
|
{
|
|
404
404
|
key: 'ports/item/port/inline',
|
|
405
405
|
id: MenuId.TunnelPortInline,
|
|
406
|
-
description: ( localize(
|
|
406
|
+
description: ( localize(8606, "The Ports view item port inline menu"))
|
|
407
407
|
},
|
|
408
408
|
{
|
|
409
409
|
key: 'file/newFile',
|
|
410
410
|
id: MenuId.NewFile,
|
|
411
|
-
description: ( localize(
|
|
411
|
+
description: ( localize(8607, "The 'New File...' quick pick, shown on welcome page and File menu.")),
|
|
412
412
|
supportsSubmenus: false,
|
|
413
413
|
},
|
|
414
414
|
{
|
|
415
415
|
key: 'webview/context',
|
|
416
416
|
id: MenuId.WebviewContext,
|
|
417
|
-
description: ( localize(
|
|
417
|
+
description: ( localize(8608, "The webview context menu"))
|
|
418
418
|
},
|
|
419
419
|
{
|
|
420
420
|
key: 'file/share',
|
|
421
421
|
id: MenuId.MenubarShare,
|
|
422
|
-
description: ( localize(
|
|
422
|
+
description: ( localize(8609, "Share submenu shown in the top level File menu.")),
|
|
423
423
|
proposed: 'contribShareMenu'
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
key: 'editor/inlineCompletions/actions',
|
|
427
427
|
id: MenuId.InlineCompletionsActions,
|
|
428
|
-
description: ( localize(
|
|
428
|
+
description: ( localize(8610, "The actions shown when hovering on an inline completion")),
|
|
429
429
|
supportsSubmenus: false,
|
|
430
430
|
proposed: 'inlineCompletionsAdditions'
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
key: 'editor/inlineEdit/actions',
|
|
434
434
|
id: MenuId.InlineEditActions,
|
|
435
|
-
description: ( localize(
|
|
435
|
+
description: ( localize(8611, "The actions shown when hovering on an inline edit")),
|
|
436
436
|
supportsSubmenus: false,
|
|
437
437
|
proposed: 'inlineEdit'
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
440
|
key: 'editor/content',
|
|
441
441
|
id: MenuId.EditorContent,
|
|
442
|
-
description: ( localize(
|
|
442
|
+
description: ( localize(8612, "The prominent button in an editor, overlays its content")),
|
|
443
443
|
proposed: 'contribEditorContentMenu'
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
446
|
key: 'editor/lineNumber/context',
|
|
447
447
|
id: MenuId.EditorLineNumberContext,
|
|
448
|
-
description: ( localize(
|
|
448
|
+
description: ( localize(8613, "The contributed editor line number context menu"))
|
|
449
449
|
},
|
|
450
450
|
{
|
|
451
451
|
key: 'mergeEditor/result/title',
|
|
452
452
|
id: MenuId.MergeInputResultToolbar,
|
|
453
|
-
description: ( localize(
|
|
453
|
+
description: ( localize(8614, "The result toolbar of the merge editor")),
|
|
454
454
|
proposed: 'contribMergeEditorMenus'
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
457
|
key: 'multiDiffEditor/resource/title',
|
|
458
458
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
459
|
-
description: ( localize(
|
|
459
|
+
description: ( localize(8615, "The resource toolbar in the multi diff editor")),
|
|
460
460
|
proposed: 'contribMultiDiffEditorMenus'
|
|
461
461
|
},
|
|
462
462
|
{
|
|
463
463
|
key: 'diffEditor/gutter/hunk',
|
|
464
464
|
id: MenuId.DiffEditorHunkToolbar,
|
|
465
|
-
description: ( localize(
|
|
465
|
+
description: ( localize(8616, "The gutter toolbar in the diff editor")),
|
|
466
466
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
467
467
|
},
|
|
468
468
|
{
|
|
469
469
|
key: 'diffEditor/gutter/selection',
|
|
470
470
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
471
|
-
description: ( localize(
|
|
471
|
+
description: ( localize(8616, "The gutter toolbar in the diff editor")),
|
|
472
472
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
473
473
|
}
|
|
474
474
|
];
|
|
@@ -481,22 +481,22 @@ var schema;
|
|
|
481
481
|
function isValidMenuItem(item, collector) {
|
|
482
482
|
if (typeof item.command !== 'string') {
|
|
483
483
|
collector.error(( localize(
|
|
484
|
-
|
|
484
|
+
8617,
|
|
485
485
|
"property `{0}` is mandatory and must be of type `string`",
|
|
486
486
|
'command'
|
|
487
487
|
)));
|
|
488
488
|
return false;
|
|
489
489
|
}
|
|
490
490
|
if (item.alt && typeof item.alt !== 'string') {
|
|
491
|
-
collector.error(( localize(
|
|
491
|
+
collector.error(( localize(8618, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
492
492
|
return false;
|
|
493
493
|
}
|
|
494
494
|
if (item.when && typeof item.when !== 'string') {
|
|
495
|
-
collector.error(( localize(
|
|
495
|
+
collector.error(( localize(8618, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
496
496
|
return false;
|
|
497
497
|
}
|
|
498
498
|
if (item.group && typeof item.group !== 'string') {
|
|
499
|
-
collector.error(( localize(
|
|
499
|
+
collector.error(( localize(8618, "property `{0}` can be omitted or must be of type `string`", 'group')));
|
|
500
500
|
return false;
|
|
501
501
|
}
|
|
502
502
|
return true;
|
|
@@ -505,18 +505,18 @@ var schema;
|
|
|
505
505
|
function isValidSubmenuItem(item, collector) {
|
|
506
506
|
if (typeof item.submenu !== 'string') {
|
|
507
507
|
collector.error(( localize(
|
|
508
|
-
|
|
508
|
+
8617,
|
|
509
509
|
"property `{0}` is mandatory and must be of type `string`",
|
|
510
510
|
'submenu'
|
|
511
511
|
)));
|
|
512
512
|
return false;
|
|
513
513
|
}
|
|
514
514
|
if (item.when && typeof item.when !== 'string') {
|
|
515
|
-
collector.error(( localize(
|
|
515
|
+
collector.error(( localize(8618, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
516
516
|
return false;
|
|
517
517
|
}
|
|
518
518
|
if (item.group && typeof item.group !== 'string') {
|
|
519
|
-
collector.error(( localize(
|
|
519
|
+
collector.error(( localize(8618, "property `{0}` can be omitted or must be of type `string`", 'group')));
|
|
520
520
|
return false;
|
|
521
521
|
}
|
|
522
522
|
return true;
|
|
@@ -524,7 +524,7 @@ var schema;
|
|
|
524
524
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
525
525
|
function isValidItems(items, collector) {
|
|
526
526
|
if (!Array.isArray(items)) {
|
|
527
|
-
collector.error(( localize(
|
|
527
|
+
collector.error(( localize(8619, "submenu items must be an array")));
|
|
528
528
|
return false;
|
|
529
529
|
}
|
|
530
530
|
for (const item of items) {
|
|
@@ -544,15 +544,15 @@ var schema;
|
|
|
544
544
|
schema.isValidItems = isValidItems;
|
|
545
545
|
function isValidSubmenu(submenu, collector) {
|
|
546
546
|
if (typeof submenu !== 'object') {
|
|
547
|
-
collector.error(( localize(
|
|
547
|
+
collector.error(( localize(8620, "submenu items must be an object")));
|
|
548
548
|
return false;
|
|
549
549
|
}
|
|
550
550
|
if (typeof submenu.id !== 'string') {
|
|
551
|
-
collector.error(( localize(
|
|
551
|
+
collector.error(( localize(8617, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
552
552
|
return false;
|
|
553
553
|
}
|
|
554
554
|
if (typeof submenu.label !== 'string') {
|
|
555
|
-
collector.error(( localize(
|
|
555
|
+
collector.error(( localize(8617, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
556
556
|
return false;
|
|
557
557
|
}
|
|
558
558
|
return true;
|
|
@@ -564,24 +564,24 @@ var schema;
|
|
|
564
564
|
properties: {
|
|
565
565
|
command: {
|
|
566
566
|
description: ( localize(
|
|
567
|
-
|
|
567
|
+
8621,
|
|
568
568
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
569
569
|
)),
|
|
570
570
|
type: 'string'
|
|
571
571
|
},
|
|
572
572
|
alt: {
|
|
573
573
|
description: ( localize(
|
|
574
|
-
|
|
574
|
+
8622,
|
|
575
575
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
576
576
|
)),
|
|
577
577
|
type: 'string'
|
|
578
578
|
},
|
|
579
579
|
when: {
|
|
580
|
-
description: ( localize(
|
|
580
|
+
description: ( localize(8623, 'Condition which must be true to show this item')),
|
|
581
581
|
type: 'string'
|
|
582
582
|
},
|
|
583
583
|
group: {
|
|
584
|
-
description: ( localize(
|
|
584
|
+
description: ( localize(8624, 'Group into which this item belongs')),
|
|
585
585
|
type: 'string'
|
|
586
586
|
}
|
|
587
587
|
}
|
|
@@ -591,15 +591,15 @@ var schema;
|
|
|
591
591
|
required: ['submenu'],
|
|
592
592
|
properties: {
|
|
593
593
|
submenu: {
|
|
594
|
-
description: ( localize(
|
|
594
|
+
description: ( localize(8625, 'Identifier of the submenu to display in this item.')),
|
|
595
595
|
type: 'string'
|
|
596
596
|
},
|
|
597
597
|
when: {
|
|
598
|
-
description: ( localize(
|
|
598
|
+
description: ( localize(8623, 'Condition which must be true to show this item')),
|
|
599
599
|
type: 'string'
|
|
600
600
|
},
|
|
601
601
|
group: {
|
|
602
|
-
description: ( localize(
|
|
602
|
+
description: ( localize(8624, 'Group into which this item belongs')),
|
|
603
603
|
type: 'string'
|
|
604
604
|
}
|
|
605
605
|
}
|
|
@@ -609,16 +609,16 @@ var schema;
|
|
|
609
609
|
required: ['id', 'label'],
|
|
610
610
|
properties: {
|
|
611
611
|
id: {
|
|
612
|
-
description: ( localize(
|
|
612
|
+
description: ( localize(8626, 'Identifier of the menu to display as a submenu.')),
|
|
613
613
|
type: 'string'
|
|
614
614
|
},
|
|
615
615
|
label: {
|
|
616
|
-
description: ( localize(
|
|
616
|
+
description: ( localize(8627, 'The label of the menu item which leads to this submenu.')),
|
|
617
617
|
type: 'string'
|
|
618
618
|
},
|
|
619
619
|
icon: {
|
|
620
620
|
description: ( localize(
|
|
621
|
-
|
|
621
|
+
8628,
|
|
622
622
|
'(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)`'
|
|
623
623
|
)),
|
|
624
624
|
anyOf: [{
|
|
@@ -628,11 +628,11 @@ var schema;
|
|
|
628
628
|
type: 'object',
|
|
629
629
|
properties: {
|
|
630
630
|
light: {
|
|
631
|
-
description: ( localize(
|
|
631
|
+
description: ( localize(8629, 'Icon path when a light theme is used')),
|
|
632
632
|
type: 'string'
|
|
633
633
|
},
|
|
634
634
|
dark: {
|
|
635
|
-
description: ( localize(
|
|
635
|
+
description: ( localize(8630, 'Icon path when a dark theme is used')),
|
|
636
636
|
type: 'string'
|
|
637
637
|
}
|
|
638
638
|
}
|
|
@@ -641,11 +641,11 @@ var schema;
|
|
|
641
641
|
}
|
|
642
642
|
};
|
|
643
643
|
schema.menusContribution = {
|
|
644
|
-
description: ( localize(
|
|
644
|
+
description: ( localize(8631, "Contributes menu items to the editor")),
|
|
645
645
|
type: 'object',
|
|
646
646
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
647
647
|
markdownDescription: menu.proposed ? ( localize(
|
|
648
|
-
|
|
648
|
+
8632,
|
|
649
649
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
650
650
|
menu.proposed,
|
|
651
651
|
menu.description
|
|
@@ -660,18 +660,18 @@ var schema;
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
schema.submenusContribution = {
|
|
663
|
-
description: ( localize(
|
|
663
|
+
description: ( localize(8633, "Contributes submenu items to the editor")),
|
|
664
664
|
type: 'array',
|
|
665
665
|
items: submenu
|
|
666
666
|
};
|
|
667
667
|
function isValidCommand(command, collector) {
|
|
668
668
|
if (!command) {
|
|
669
|
-
collector.error(( localize(
|
|
669
|
+
collector.error(( localize(8634, "expected non-empty value.")));
|
|
670
670
|
return false;
|
|
671
671
|
}
|
|
672
672
|
if (isFalsyOrWhitespace(command.command)) {
|
|
673
673
|
collector.error(( localize(
|
|
674
|
-
|
|
674
|
+
8617,
|
|
675
675
|
"property `{0}` is mandatory and must be of type `string`",
|
|
676
676
|
'command'
|
|
677
677
|
)));
|
|
@@ -685,7 +685,7 @@ var schema;
|
|
|
685
685
|
}
|
|
686
686
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
687
687
|
collector.error(( localize(
|
|
688
|
-
|
|
688
|
+
8618,
|
|
689
689
|
"property `{0}` can be omitted or must be of type `string`",
|
|
690
690
|
'precondition'
|
|
691
691
|
)));
|
|
@@ -711,7 +711,7 @@ var schema;
|
|
|
711
711
|
return true;
|
|
712
712
|
}
|
|
713
713
|
collector.error(( localize(
|
|
714
|
-
|
|
714
|
+
8635,
|
|
715
715
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
716
716
|
)));
|
|
717
717
|
return false;
|
|
@@ -719,7 +719,7 @@ var schema;
|
|
|
719
719
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
720
720
|
if (typeof localized === 'undefined') {
|
|
721
721
|
collector.error(( localize(
|
|
722
|
-
|
|
722
|
+
8636,
|
|
723
723
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
724
724
|
propertyName
|
|
725
725
|
)));
|
|
@@ -727,7 +727,7 @@ var schema;
|
|
|
727
727
|
}
|
|
728
728
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
729
729
|
collector.error(( localize(
|
|
730
|
-
|
|
730
|
+
8617,
|
|
731
731
|
"property `{0}` is mandatory and must be of type `string`",
|
|
732
732
|
propertyName
|
|
733
733
|
)));
|
|
@@ -735,7 +735,7 @@ var schema;
|
|
|
735
735
|
}
|
|
736
736
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
737
737
|
collector.error(( localize(
|
|
738
|
-
|
|
738
|
+
8637,
|
|
739
739
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
740
740
|
`${propertyName}.value`,
|
|
741
741
|
`${propertyName}.original`
|
|
@@ -749,37 +749,37 @@ var schema;
|
|
|
749
749
|
required: ['command', 'title'],
|
|
750
750
|
properties: {
|
|
751
751
|
command: {
|
|
752
|
-
description: ( localize(
|
|
752
|
+
description: ( localize(8638, 'Identifier of the command to execute')),
|
|
753
753
|
type: 'string'
|
|
754
754
|
},
|
|
755
755
|
title: {
|
|
756
|
-
description: ( localize(
|
|
756
|
+
description: ( localize(8639, 'Title by which the command is represented in the UI')),
|
|
757
757
|
type: 'string'
|
|
758
758
|
},
|
|
759
759
|
shortTitle: {
|
|
760
760
|
markdownDescription: ( localize(
|
|
761
|
-
|
|
761
|
+
8640,
|
|
762
762
|
'(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.'
|
|
763
763
|
)),
|
|
764
764
|
type: 'string'
|
|
765
765
|
},
|
|
766
766
|
category: {
|
|
767
767
|
description: ( localize(
|
|
768
|
-
|
|
768
|
+
8641,
|
|
769
769
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
770
770
|
)),
|
|
771
771
|
type: 'string'
|
|
772
772
|
},
|
|
773
773
|
enablement: {
|
|
774
774
|
description: ( localize(
|
|
775
|
-
|
|
775
|
+
8642,
|
|
776
776
|
'(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.'
|
|
777
777
|
)),
|
|
778
778
|
type: 'string'
|
|
779
779
|
},
|
|
780
780
|
icon: {
|
|
781
781
|
description: ( localize(
|
|
782
|
-
|
|
782
|
+
8643,
|
|
783
783
|
'(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)`'
|
|
784
784
|
)),
|
|
785
785
|
anyOf: [{
|
|
@@ -789,11 +789,11 @@ var schema;
|
|
|
789
789
|
type: 'object',
|
|
790
790
|
properties: {
|
|
791
791
|
light: {
|
|
792
|
-
description: ( localize(
|
|
792
|
+
description: ( localize(8644, 'Icon path when a light theme is used')),
|
|
793
793
|
type: 'string'
|
|
794
794
|
},
|
|
795
795
|
dark: {
|
|
796
|
-
description: ( localize(
|
|
796
|
+
description: ( localize(8645, 'Icon path when a dark theme is used')),
|
|
797
797
|
type: 'string'
|
|
798
798
|
}
|
|
799
799
|
}
|
|
@@ -802,7 +802,7 @@ var schema;
|
|
|
802
802
|
}
|
|
803
803
|
};
|
|
804
804
|
schema.commandsContribution = {
|
|
805
|
-
description: ( localize(
|
|
805
|
+
description: ( localize(8646, "Contributes commands to the command palette.")),
|
|
806
806
|
oneOf: [
|
|
807
807
|
commandType,
|
|
808
808
|
{
|
|
@@ -846,7 +846,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
846
846
|
if (existingCmd) {
|
|
847
847
|
if (existingCmd.source) {
|
|
848
848
|
extension.collector.info(( localize(
|
|
849
|
-
|
|
849
|
+
8647,
|
|
850
850
|
"Command `{0}` already registered by {1} ({2})",
|
|
851
851
|
userFriendlyCommand.command,
|
|
852
852
|
existingCmd.source.title,
|
|
@@ -854,7 +854,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
854
854
|
)));
|
|
855
855
|
}
|
|
856
856
|
else {
|
|
857
|
-
extension.collector.info(( localize(
|
|
857
|
+
extension.collector.info(( localize(8648, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -895,19 +895,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
895
895
|
continue;
|
|
896
896
|
}
|
|
897
897
|
if (!submenuInfo.id) {
|
|
898
|
-
collector.warn(( localize(
|
|
898
|
+
collector.warn(( localize(8649, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
899
899
|
continue;
|
|
900
900
|
}
|
|
901
901
|
if (( (_submenus.has(submenuInfo.id)))) {
|
|
902
902
|
collector.info(( localize(
|
|
903
|
-
|
|
903
|
+
8650,
|
|
904
904
|
"The `{0}` submenu was already previously registered.",
|
|
905
905
|
submenuInfo.id
|
|
906
906
|
)));
|
|
907
907
|
continue;
|
|
908
908
|
}
|
|
909
909
|
if (!submenuInfo.label) {
|
|
910
|
-
collector.warn(( localize(
|
|
910
|
+
collector.warn(( localize(8651, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
911
911
|
continue;
|
|
912
912
|
}
|
|
913
913
|
let absoluteIcon;
|
|
@@ -964,7 +964,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
964
964
|
}
|
|
965
965
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
966
966
|
collector.error(( localize(
|
|
967
|
-
|
|
967
|
+
8652,
|
|
968
968
|
"{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}",
|
|
969
969
|
entry[0],
|
|
970
970
|
menu.proposed,
|
|
@@ -979,7 +979,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
979
979
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
980
980
|
if (!command) {
|
|
981
981
|
collector.error(( localize(
|
|
982
|
-
|
|
982
|
+
8653,
|
|
983
983
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
984
984
|
menuItem.command
|
|
985
985
|
)));
|
|
@@ -987,20 +987,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
987
987
|
}
|
|
988
988
|
if (menuItem.alt && !alt) {
|
|
989
989
|
collector.warn(( localize(
|
|
990
|
-
|
|
990
|
+
8654,
|
|
991
991
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
992
992
|
menuItem.alt
|
|
993
993
|
)));
|
|
994
994
|
}
|
|
995
995
|
if (menuItem.command === menuItem.alt) {
|
|
996
|
-
collector.info(( localize(
|
|
996
|
+
collector.info(( localize(8655, "Menu item references the same command as default and alt-command")));
|
|
997
997
|
}
|
|
998
998
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
999
999
|
}
|
|
1000
1000
|
else {
|
|
1001
1001
|
if (menu.supportsSubmenus === false) {
|
|
1002
1002
|
collector.error(( localize(
|
|
1003
|
-
|
|
1003
|
+
8656,
|
|
1004
1004
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1005
1005
|
)));
|
|
1006
1006
|
continue;
|
|
@@ -1008,7 +1008,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1008
1008
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1009
1009
|
if (!submenu) {
|
|
1010
1010
|
collector.error(( localize(
|
|
1011
|
-
|
|
1011
|
+
8657,
|
|
1012
1012
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1013
1013
|
menuItem.submenu
|
|
1014
1014
|
)));
|
|
@@ -1021,7 +1021,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
if (( (submenuRegistrations.has(submenu.id.id)))) {
|
|
1023
1023
|
collector.warn(( localize(
|
|
1024
|
-
|
|
1024
|
+
8658,
|
|
1025
1025
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1026
1026
|
menuItem.submenu,
|
|
1027
1027
|
entry[0]
|
|
@@ -1101,10 +1101,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1101
1101
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1102
1102
|
}
|
|
1103
1103
|
const headers = [
|
|
1104
|
-
( localize(
|
|
1105
|
-
( localize(
|
|
1106
|
-
( localize(
|
|
1107
|
-
( localize(
|
|
1104
|
+
( localize(8659, "ID")),
|
|
1105
|
+
( localize(8660, "Title")),
|
|
1106
|
+
( localize(8661, "Keyboard Shortcuts")),
|
|
1107
|
+
( localize(8662, "Menu Contexts"))
|
|
1108
1108
|
];
|
|
1109
1109
|
const rows = ( (commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1110
1110
|
.map(command => {
|
|
@@ -1144,7 +1144,7 @@ CommandsTableRenderer = ( (__decorate([
|
|
|
1144
1144
|
], CommandsTableRenderer)));
|
|
1145
1145
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
1146
1146
|
id: 'commands',
|
|
1147
|
-
label: ( localize(
|
|
1147
|
+
label: ( localize(8663, "Commands")),
|
|
1148
1148
|
access: {
|
|
1149
1149
|
canToggle: false,
|
|
1150
1150
|
},
|
|
@@ -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(3503, "expected non-empty value.")));
|
|
52
52
|
return false;
|
|
53
53
|
}
|
|
54
54
|
if (typeof keyBinding.command !== 'string') {
|
|
55
55
|
rejects.push(( localize(
|
|
56
|
-
|
|
56
|
+
3504,
|
|
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(3505, "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(3505, "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(3505, "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(3505, "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(3505, "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(3506, '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(3507, "Arguments to pass to the command to execute."))
|
|
94
94
|
},
|
|
95
95
|
key: {
|
|
96
96
|
description: ( localize(
|
|
97
|
-
|
|
97
|
+
3508,
|
|
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(3509, 'Mac specific key or key sequence.')),
|
|
104
104
|
type: 'string'
|
|
105
105
|
},
|
|
106
106
|
linux: {
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(3510, 'Linux specific key or key sequence.')),
|
|
108
108
|
type: 'string'
|
|
109
109
|
},
|
|
110
110
|
win: {
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(3511, 'Windows specific key or key sequence.')),
|
|
112
112
|
type: 'string'
|
|
113
113
|
},
|
|
114
114
|
when: {
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(3512, '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(3513, "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
|
+
3514,
|
|
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(3515, "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(3516, "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(3517, "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(3518, "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(3519, "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
|
+
3520,
|
|
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(3521, "Condition when the key is active."))
|
|
805
805
|
},
|
|
806
806
|
'args': {
|
|
807
|
-
'description': ( localize(
|
|
807
|
+
'description': ( localize(3522, "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(3523, "Keyboard")),
|
|
496
496
|
'properties': {
|
|
497
497
|
'keyboard.layout': {
|
|
498
498
|
'type': 'string',
|
|
499
499
|
'default': 'autodetect',
|
|
500
|
-
'description': ( localize(
|
|
500
|
+
'description': ( localize(3524, "Control the keyboard layout used in web."))
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
};
|