@codingame/monaco-vscode-keybindings-service-override 32.0.2 → 33.0.7
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 +151 -151
- 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": "
|
|
3
|
+
"version": "33.0.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - keybindings service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "33.0.7",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "33.0.7"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -23,7 +23,7 @@ const keyboardConfiguration = {
|
|
|
23
23
|
"id": "keyboard",
|
|
24
24
|
"order": 15,
|
|
25
25
|
"type": "object",
|
|
26
|
-
"title": ( localize(
|
|
26
|
+
"title": ( localize(2028, "Keyboard")),
|
|
27
27
|
"properties": {
|
|
28
28
|
"keyboard.dispatch": {
|
|
29
29
|
scope: ConfigurationScope.APPLICATION,
|
|
@@ -31,7 +31,7 @@ const keyboardConfiguration = {
|
|
|
31
31
|
enum: ["code", "keyCode"],
|
|
32
32
|
default: "code",
|
|
33
33
|
markdownDescription: ( localize(
|
|
34
|
-
|
|
34
|
+
2029,
|
|
35
35
|
"Controls the dispatching logic for key presses to use either `code` (recommended) or `keyCode`."
|
|
36
36
|
)),
|
|
37
37
|
included: OS === OperatingSystem.Macintosh || OS === OperatingSystem.Linux
|
|
@@ -40,7 +40,7 @@ const keyboardConfiguration = {
|
|
|
40
40
|
scope: ConfigurationScope.APPLICATION,
|
|
41
41
|
type: "boolean",
|
|
42
42
|
default: false,
|
|
43
|
-
markdownDescription: ( localize(
|
|
43
|
+
markdownDescription: ( localize(2030, "Controls if the AltGraph+ modifier should be treated as Ctrl+Alt+.")),
|
|
44
44
|
included: OS === OperatingSystem.Windows
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -10,10 +10,10 @@ class RunCommands extends Action2 {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super({
|
|
12
12
|
id: "runCommands",
|
|
13
|
-
title: ( localize2(
|
|
13
|
+
title: ( localize2(8420, "Run Commands")),
|
|
14
14
|
f1: false,
|
|
15
15
|
metadata: {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(8421, "Run several commands")),
|
|
17
17
|
args: [{
|
|
18
18
|
name: "args",
|
|
19
19
|
schema: {
|
|
@@ -22,7 +22,7 @@ class RunCommands extends Action2 {
|
|
|
22
22
|
properties: {
|
|
23
23
|
commands: {
|
|
24
24
|
type: "array",
|
|
25
|
-
description: ( localize(
|
|
25
|
+
description: ( localize(8422, "Commands to run")),
|
|
26
26
|
items: {
|
|
27
27
|
anyOf: [{
|
|
28
28
|
$ref: "vscode://schemas/keybindings#/definitions/commandNames"
|
|
@@ -54,14 +54,14 @@ class RunCommands extends Action2 {
|
|
|
54
54
|
const notificationService = accessor.get(INotificationService);
|
|
55
55
|
if (!this._isCommandArgs(args)) {
|
|
56
56
|
notificationService.error(( localize(
|
|
57
|
-
|
|
57
|
+
8423,
|
|
58
58
|
"'runCommands' has received an argument with incorrect type. Please, review the argument passed to the command."
|
|
59
59
|
)));
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
if (args.commands.length === 0) {
|
|
63
63
|
notificationService.warn(( localize(
|
|
64
|
-
|
|
64
|
+
8424,
|
|
65
65
|
"'runCommands' has not received commands to run. Did you forget to pass commands in the 'runCommands' argument?"
|
|
66
66
|
)));
|
|
67
67
|
return;
|
|
@@ -15,7 +15,7 @@ class ToggleKeybindingsLogAction extends Action2 {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super({
|
|
17
17
|
id: "workbench.action.toggleKeybindingsLog",
|
|
18
|
-
title: ( localize2(
|
|
18
|
+
title: ( localize2(10718, "Toggle Keyboard Shortcuts Troubleshooting")),
|
|
19
19
|
category: Categories.Developer,
|
|
20
20
|
f1: true
|
|
21
21
|
});
|
package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js
CHANGED
|
@@ -24,7 +24,7 @@ import { DEFINE_KEYBINDING_EDITOR_CONTRIB_ID } from '@codingame/monaco-vscode-ap
|
|
|
24
24
|
|
|
25
25
|
var KeybindingEditorDecorationsRenderer_1;
|
|
26
26
|
const NLS_KB_LAYOUT_ERROR_MESSAGE = ( localize(
|
|
27
|
-
|
|
27
|
+
12222,
|
|
28
28
|
"You won't be able to produce this key combination under your current keyboard layout."
|
|
29
29
|
));
|
|
30
30
|
let DefineKeybindingEditorContribution = class DefineKeybindingEditorContribution extends Disposable {
|
|
@@ -184,13 +184,13 @@ let KeybindingEditorDecorationsRenderer = KeybindingEditorDecorationsRenderer_1
|
|
|
184
184
|
} else {
|
|
185
185
|
if (usLabel && uiLabel !== usLabel) {
|
|
186
186
|
msg = ( new MarkdownString(( localize(
|
|
187
|
-
|
|
187
|
+
12223,
|
|
188
188
|
"**{0}** for your current keyboard layout (**{1}** for US standard).",
|
|
189
189
|
uiLabel,
|
|
190
190
|
usLabel
|
|
191
191
|
))));
|
|
192
192
|
} else {
|
|
193
|
-
msg = ( new MarkdownString(( localize(
|
|
193
|
+
msg = ( new MarkdownString(( localize(12224, "**{0}** for your current keyboard layout.", uiLabel))));
|
|
194
194
|
}
|
|
195
195
|
className = "keybindingInfo";
|
|
196
196
|
overviewRulerColor = themeColorFromId(overviewRulerInfo);
|
|
@@ -20,194 +20,194 @@ import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
20
20
|
const apiMenus = [{
|
|
21
21
|
key: "commandPalette",
|
|
22
22
|
id: MenuId.CommandPalette,
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(16336, "The Command Palette")),
|
|
24
24
|
supportsSubmenus: false
|
|
25
25
|
}, {
|
|
26
26
|
key: "touchBar",
|
|
27
27
|
id: MenuId.TouchBarContext,
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(16337, "The touch bar (macOS only)")),
|
|
29
29
|
supportsSubmenus: false
|
|
30
30
|
}, {
|
|
31
31
|
key: "editor/title",
|
|
32
32
|
id: MenuId.EditorTitle,
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(16338, "The editor title menu"))
|
|
34
34
|
}, {
|
|
35
35
|
key: "modalEditor/editorTitle",
|
|
36
36
|
id: MenuId.ModalEditorEditorTitle,
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(16339, "The editor title menu in the modal editor"))
|
|
38
38
|
}, {
|
|
39
39
|
key: "editor/title/run",
|
|
40
40
|
id: MenuId.EditorTitleRun,
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(16340, "Run submenu inside the editor title menu"))
|
|
42
42
|
}, {
|
|
43
43
|
key: "editor/context",
|
|
44
44
|
id: MenuId.EditorContext,
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(16341, "The editor context menu"))
|
|
46
46
|
}, {
|
|
47
47
|
key: "editor/context/copy",
|
|
48
48
|
id: MenuId.EditorContextCopy,
|
|
49
|
-
description: ( localize(
|
|
49
|
+
description: ( localize(16342, "'Copy as' submenu in the editor context menu"))
|
|
50
50
|
}, {
|
|
51
51
|
key: "editor/context/share",
|
|
52
52
|
id: MenuId.EditorContextShare,
|
|
53
|
-
description: ( localize(
|
|
53
|
+
description: ( localize(16343, "'Share' submenu in the editor context menu")),
|
|
54
54
|
proposed: "contribShareMenu"
|
|
55
55
|
}, {
|
|
56
56
|
key: "explorer/context",
|
|
57
57
|
id: MenuId.ExplorerContext,
|
|
58
|
-
description: ( localize(
|
|
58
|
+
description: ( localize(16344, "The file explorer context menu"))
|
|
59
59
|
}, {
|
|
60
60
|
key: "explorer/context/share",
|
|
61
61
|
id: MenuId.ExplorerContextShare,
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(16345, "'Share' submenu in the file explorer context menu")),
|
|
63
63
|
proposed: "contribShareMenu"
|
|
64
64
|
}, {
|
|
65
65
|
key: "editor/title/context",
|
|
66
66
|
id: MenuId.EditorTitleContext,
|
|
67
|
-
description: ( localize(
|
|
67
|
+
description: ( localize(16346, "The editor tabs context menu"))
|
|
68
68
|
}, {
|
|
69
69
|
key: "editor/title/context/share",
|
|
70
70
|
id: MenuId.EditorTitleContextShare,
|
|
71
|
-
description: ( localize(
|
|
71
|
+
description: ( localize(16347, "'Share' submenu inside the editor title context menu")),
|
|
72
72
|
proposed: "contribShareMenu"
|
|
73
73
|
}, {
|
|
74
74
|
key: "debug/callstack/context",
|
|
75
75
|
id: MenuId.DebugCallStackContext,
|
|
76
|
-
description: ( localize(
|
|
76
|
+
description: ( localize(16348, "The debug callstack view context menu"))
|
|
77
77
|
}, {
|
|
78
78
|
key: "debug/variables/context",
|
|
79
79
|
id: MenuId.DebugVariablesContext,
|
|
80
|
-
description: ( localize(
|
|
80
|
+
description: ( localize(16349, "The debug variables view context menu"))
|
|
81
81
|
}, {
|
|
82
82
|
key: "debug/watch/context",
|
|
83
83
|
id: MenuId.DebugWatchContext,
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(16350, "The debug watch view context menu"))
|
|
85
85
|
}, {
|
|
86
86
|
key: "debug/toolBar",
|
|
87
87
|
id: MenuId.DebugToolBar,
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(16351, "The debug toolbar menu"))
|
|
89
89
|
}, {
|
|
90
90
|
key: "debug/createConfiguration",
|
|
91
91
|
id: MenuId.DebugCreateConfiguration,
|
|
92
92
|
proposed: "contribDebugCreateConfiguration",
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(16352, "The debug create configuration menu"))
|
|
94
94
|
}, {
|
|
95
95
|
key: "notebook/variables/context",
|
|
96
96
|
id: MenuId.NotebookVariablesContext,
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(16353, "The notebook variables view context menu"))
|
|
98
98
|
}, {
|
|
99
99
|
key: "menuBar/home",
|
|
100
100
|
id: MenuId.MenubarHomeMenu,
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(16354, "The home indicator context menu (web only)")),
|
|
102
102
|
proposed: "contribMenuBarHome",
|
|
103
103
|
supportsSubmenus: false
|
|
104
104
|
}, {
|
|
105
105
|
key: "menuBar/edit/copy",
|
|
106
106
|
id: MenuId.MenubarCopy,
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(16355, "'Copy as' submenu in the top level Edit menu"))
|
|
108
108
|
}, {
|
|
109
109
|
key: "scm/title",
|
|
110
110
|
id: MenuId.SCMTitle,
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(16356, "The Source Control title menu"))
|
|
112
112
|
}, {
|
|
113
113
|
key: "scm/sourceControl",
|
|
114
114
|
id: MenuId.SCMSourceControl,
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(16357, "The Source Control menu"))
|
|
116
116
|
}, {
|
|
117
117
|
key: "scm/repositories/title",
|
|
118
118
|
id: MenuId.SCMSourceControlTitle,
|
|
119
|
-
description: ( localize(
|
|
119
|
+
description: ( localize(16358, "The Source Control Repositories title menu")),
|
|
120
120
|
proposed: "contribSourceControlTitleMenu"
|
|
121
121
|
}, {
|
|
122
122
|
key: "scm/repository",
|
|
123
123
|
id: MenuId.SCMSourceControlInline,
|
|
124
|
-
description: ( localize(
|
|
124
|
+
description: ( localize(16359, "The Source Control repository menu"))
|
|
125
125
|
}, {
|
|
126
126
|
key: "scm/resourceState/context",
|
|
127
127
|
id: MenuId.SCMResourceContext,
|
|
128
|
-
description: ( localize(
|
|
128
|
+
description: ( localize(16360, "The Source Control resource state context menu"))
|
|
129
129
|
}, {
|
|
130
130
|
key: "scm/resourceFolder/context",
|
|
131
131
|
id: MenuId.SCMResourceFolderContext,
|
|
132
|
-
description: ( localize(
|
|
132
|
+
description: ( localize(16361, "The Source Control resource folder context menu"))
|
|
133
133
|
}, {
|
|
134
134
|
key: "scm/resourceGroup/context",
|
|
135
135
|
id: MenuId.SCMResourceGroupContext,
|
|
136
|
-
description: ( localize(
|
|
136
|
+
description: ( localize(16362, "The Source Control resource group context menu"))
|
|
137
137
|
}, {
|
|
138
138
|
key: "scm/change/title",
|
|
139
139
|
id: MenuId.SCMChangeContext,
|
|
140
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(16363, "The Source Control inline change menu"))
|
|
141
141
|
}, {
|
|
142
142
|
key: "scm/inputBox",
|
|
143
143
|
id: MenuId.SCMInputBox,
|
|
144
|
-
description: ( localize(
|
|
144
|
+
description: ( localize(16364, "The Source Control input box menu")),
|
|
145
145
|
proposed: "contribSourceControlInputBoxMenu"
|
|
146
146
|
}, {
|
|
147
147
|
key: "scm/history/title",
|
|
148
148
|
id: MenuId.SCMHistoryTitle,
|
|
149
|
-
description: ( localize(
|
|
149
|
+
description: ( localize(16365, "The Source Control History title menu")),
|
|
150
150
|
proposed: "contribSourceControlHistoryTitleMenu"
|
|
151
151
|
}, {
|
|
152
152
|
key: "scm/historyItem/context",
|
|
153
153
|
id: MenuId.SCMHistoryItemContext,
|
|
154
|
-
description: ( localize(
|
|
154
|
+
description: ( localize(16366, "The Source Control history item context menu")),
|
|
155
155
|
proposed: "contribSourceControlHistoryItemMenu"
|
|
156
156
|
}, {
|
|
157
157
|
key: "scm/historyItemRef/context",
|
|
158
158
|
id: MenuId.SCMHistoryItemRefContext,
|
|
159
|
-
description: ( localize(
|
|
159
|
+
description: ( localize(16367, "The Source Control history item reference context menu")),
|
|
160
160
|
proposed: "contribSourceControlHistoryItemMenu"
|
|
161
161
|
}, {
|
|
162
162
|
key: "scm/artifactGroup/context",
|
|
163
163
|
id: MenuId.SCMArtifactGroupContext,
|
|
164
|
-
description: ( localize(
|
|
164
|
+
description: ( localize(16368, "The Source Control artifact group context menu")),
|
|
165
165
|
proposed: "contribSourceControlArtifactGroupMenu"
|
|
166
166
|
}, {
|
|
167
167
|
key: "scm/artifact/context",
|
|
168
168
|
id: MenuId.SCMArtifactContext,
|
|
169
|
-
description: ( localize(
|
|
169
|
+
description: ( localize(16369, "The Source Control artifact context menu")),
|
|
170
170
|
proposed: "contribSourceControlArtifactMenu"
|
|
171
171
|
}, {
|
|
172
172
|
key: "statusBar/remoteIndicator",
|
|
173
173
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
174
|
-
description: ( localize(
|
|
174
|
+
description: ( localize(16370, "The remote indicator menu in the status bar")),
|
|
175
175
|
supportsSubmenus: false
|
|
176
176
|
}, {
|
|
177
177
|
key: "terminal/context",
|
|
178
178
|
id: MenuId.TerminalInstanceContext,
|
|
179
|
-
description: ( localize(
|
|
179
|
+
description: ( localize(16371, "The terminal context menu"))
|
|
180
180
|
}, {
|
|
181
181
|
key: "terminal/title/context",
|
|
182
182
|
id: MenuId.TerminalTabContext,
|
|
183
|
-
description: ( localize(
|
|
183
|
+
description: ( localize(16372, "The terminal tabs context menu"))
|
|
184
184
|
}, {
|
|
185
185
|
key: "view/title",
|
|
186
186
|
id: MenuId.ViewTitle,
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(16373, "The contributed view title menu"))
|
|
188
188
|
}, {
|
|
189
189
|
key: "viewContainer/title",
|
|
190
190
|
id: MenuId.ViewContainerTitle,
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(16374, "The contributed view container title menu")),
|
|
192
192
|
proposed: "contribViewContainerTitle"
|
|
193
193
|
}, {
|
|
194
194
|
key: "view/item/context",
|
|
195
195
|
id: MenuId.ViewItemContext,
|
|
196
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(16375, "The contributed view item context menu"))
|
|
197
197
|
}, {
|
|
198
198
|
key: "comments/comment/editorActions",
|
|
199
199
|
id: MenuId.CommentEditorActions,
|
|
200
|
-
description: ( localize(
|
|
200
|
+
description: ( localize(16376, "The contributed comment editor actions")),
|
|
201
201
|
proposed: "contribCommentEditorActionsMenu"
|
|
202
202
|
}, {
|
|
203
203
|
key: "comments/commentThread/title",
|
|
204
204
|
id: MenuId.CommentThreadTitle,
|
|
205
|
-
description: ( localize(
|
|
205
|
+
description: ( localize(16377, "The contributed comment thread title menu"))
|
|
206
206
|
}, {
|
|
207
207
|
key: "comments/commentThread/context",
|
|
208
208
|
id: MenuId.CommentThreadActions,
|
|
209
209
|
description: ( localize(
|
|
210
|
-
|
|
210
|
+
16378,
|
|
211
211
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
212
212
|
)),
|
|
213
213
|
supportsSubmenus: false
|
|
@@ -215,7 +215,7 @@ const apiMenus = [{
|
|
|
215
215
|
key: "comments/commentThread/additionalActions",
|
|
216
216
|
id: MenuId.CommentThreadAdditionalActions,
|
|
217
217
|
description: ( localize(
|
|
218
|
-
|
|
218
|
+
16378,
|
|
219
219
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
220
220
|
)),
|
|
221
221
|
supportsSubmenus: true,
|
|
@@ -224,19 +224,19 @@ const apiMenus = [{
|
|
|
224
224
|
key: "comments/commentThread/title/context",
|
|
225
225
|
id: MenuId.CommentThreadTitleContext,
|
|
226
226
|
description: ( localize(
|
|
227
|
-
|
|
227
|
+
16379,
|
|
228
228
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
229
229
|
)),
|
|
230
230
|
proposed: "contribCommentPeekContext"
|
|
231
231
|
}, {
|
|
232
232
|
key: "comments/comment/title",
|
|
233
233
|
id: MenuId.CommentTitle,
|
|
234
|
-
description: ( localize(
|
|
234
|
+
description: ( localize(16380, "The contributed comment title menu"))
|
|
235
235
|
}, {
|
|
236
236
|
key: "comments/comment/context",
|
|
237
237
|
id: MenuId.CommentActions,
|
|
238
238
|
description: ( localize(
|
|
239
|
-
|
|
239
|
+
16381,
|
|
240
240
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
241
241
|
)),
|
|
242
242
|
supportsSubmenus: false
|
|
@@ -244,204 +244,204 @@ const apiMenus = [{
|
|
|
244
244
|
key: "comments/commentThread/comment/context",
|
|
245
245
|
id: MenuId.CommentThreadCommentContext,
|
|
246
246
|
description: ( localize(
|
|
247
|
-
|
|
247
|
+
16382,
|
|
248
248
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
249
249
|
)),
|
|
250
250
|
proposed: "contribCommentPeekContext"
|
|
251
251
|
}, {
|
|
252
252
|
key: "commentsView/commentThread/context",
|
|
253
253
|
id: MenuId.CommentsViewThreadActions,
|
|
254
|
-
description: ( localize(
|
|
254
|
+
description: ( localize(16383, "The contributed comment thread context menu in the comments view")),
|
|
255
255
|
proposed: "contribCommentsViewThreadMenus"
|
|
256
256
|
}, {
|
|
257
257
|
key: "notebook/toolbar",
|
|
258
258
|
id: MenuId.NotebookToolbar,
|
|
259
|
-
description: ( localize(
|
|
259
|
+
description: ( localize(16384, "The contributed notebook toolbar menu"))
|
|
260
260
|
}, {
|
|
261
261
|
key: "notebook/kernelSource",
|
|
262
262
|
id: MenuId.NotebookKernelSource,
|
|
263
|
-
description: ( localize(
|
|
263
|
+
description: ( localize(16385, "The contributed notebook kernel sources menu")),
|
|
264
264
|
proposed: "notebookKernelSource"
|
|
265
265
|
}, {
|
|
266
266
|
key: "notebook/cell/title",
|
|
267
267
|
id: MenuId.NotebookCellTitle,
|
|
268
|
-
description: ( localize(
|
|
268
|
+
description: ( localize(16386, "The contributed notebook cell title menu"))
|
|
269
269
|
}, {
|
|
270
270
|
key: "notebook/cell/execute",
|
|
271
271
|
id: MenuId.NotebookCellExecute,
|
|
272
|
-
description: ( localize(
|
|
272
|
+
description: ( localize(16387, "The contributed notebook cell execution menu"))
|
|
273
273
|
}, {
|
|
274
274
|
key: "interactive/toolbar",
|
|
275
275
|
id: MenuId.InteractiveToolbar,
|
|
276
|
-
description: ( localize(
|
|
276
|
+
description: ( localize(16388, "The contributed interactive toolbar menu"))
|
|
277
277
|
}, {
|
|
278
278
|
key: "interactive/cell/title",
|
|
279
279
|
id: MenuId.InteractiveCellTitle,
|
|
280
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(16389, "The contributed interactive cell title menu"))
|
|
281
281
|
}, {
|
|
282
282
|
key: "issue/reporter",
|
|
283
283
|
id: MenuId.IssueReporter,
|
|
284
|
-
description: ( localize(
|
|
284
|
+
description: ( localize(16390, "The contributed issue reporter menu"))
|
|
285
285
|
}, {
|
|
286
286
|
key: "testing/item/context",
|
|
287
287
|
id: MenuId.TestItem,
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(16391, "The contributed test item menu"))
|
|
289
289
|
}, {
|
|
290
290
|
key: "testing/item/gutter",
|
|
291
291
|
id: MenuId.TestItemGutter,
|
|
292
|
-
description: ( localize(
|
|
292
|
+
description: ( localize(16392, "The menu for a gutter decoration for a test item"))
|
|
293
293
|
}, {
|
|
294
294
|
key: "testing/profiles/context",
|
|
295
295
|
id: MenuId.TestProfilesContext,
|
|
296
|
-
description: ( localize(
|
|
296
|
+
description: ( localize(16393, "The menu for configuring testing profiles."))
|
|
297
297
|
}, {
|
|
298
298
|
key: "testing/item/result",
|
|
299
299
|
id: MenuId.TestPeekElement,
|
|
300
|
-
description: ( localize(
|
|
300
|
+
description: ( localize(16394, "The menu for an item in the Test Results view or peek."))
|
|
301
301
|
}, {
|
|
302
302
|
key: "testing/message/context",
|
|
303
303
|
id: MenuId.TestMessageContext,
|
|
304
304
|
description: ( localize(
|
|
305
|
-
|
|
305
|
+
16395,
|
|
306
306
|
"A prominent button overlaying editor content where the message is displayed"
|
|
307
307
|
))
|
|
308
308
|
}, {
|
|
309
309
|
key: "testing/message/content",
|
|
310
310
|
id: MenuId.TestMessageContent,
|
|
311
|
-
description: ( localize(
|
|
311
|
+
description: ( localize(16396, "Context menu for the message in the results tree"))
|
|
312
312
|
}, {
|
|
313
313
|
key: "extension/context",
|
|
314
314
|
id: MenuId.ExtensionContext,
|
|
315
|
-
description: ( localize(
|
|
315
|
+
description: ( localize(16397, "The extension context menu"))
|
|
316
316
|
}, {
|
|
317
317
|
key: "timeline/title",
|
|
318
318
|
id: MenuId.TimelineTitle,
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(16398, "The Timeline view title menu"))
|
|
320
320
|
}, {
|
|
321
321
|
key: "timeline/item/context",
|
|
322
322
|
id: MenuId.TimelineItemContext,
|
|
323
|
-
description: ( localize(
|
|
323
|
+
description: ( localize(16399, "The Timeline view item context menu"))
|
|
324
324
|
}, {
|
|
325
325
|
key: "ports/item/context",
|
|
326
326
|
id: MenuId.TunnelContext,
|
|
327
|
-
description: ( localize(
|
|
327
|
+
description: ( localize(16400, "The Ports view item context menu"))
|
|
328
328
|
}, {
|
|
329
329
|
key: "ports/item/origin/inline",
|
|
330
330
|
id: MenuId.TunnelOriginInline,
|
|
331
|
-
description: ( localize(
|
|
331
|
+
description: ( localize(16401, "The Ports view item origin inline menu"))
|
|
332
332
|
}, {
|
|
333
333
|
key: "ports/item/port/inline",
|
|
334
334
|
id: MenuId.TunnelPortInline,
|
|
335
|
-
description: ( localize(
|
|
335
|
+
description: ( localize(16402, "The Ports view item port inline menu"))
|
|
336
336
|
}, {
|
|
337
337
|
key: "file/newFile",
|
|
338
338
|
id: MenuId.NewFile,
|
|
339
339
|
description: ( localize(
|
|
340
|
-
|
|
340
|
+
16403,
|
|
341
341
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
342
342
|
)),
|
|
343
343
|
supportsSubmenus: false
|
|
344
344
|
}, {
|
|
345
345
|
key: "webview/context",
|
|
346
346
|
id: MenuId.WebviewContext,
|
|
347
|
-
description: ( localize(
|
|
347
|
+
description: ( localize(16404, "The webview context menu"))
|
|
348
348
|
}, {
|
|
349
349
|
key: "file/share",
|
|
350
350
|
id: MenuId.MenubarShare,
|
|
351
|
-
description: ( localize(
|
|
351
|
+
description: ( localize(16405, "Share submenu shown in the top level File menu.")),
|
|
352
352
|
proposed: "contribShareMenu"
|
|
353
353
|
}, {
|
|
354
354
|
key: "editor/inlineCompletions/actions",
|
|
355
355
|
id: MenuId.InlineCompletionsActions,
|
|
356
|
-
description: ( localize(
|
|
356
|
+
description: ( localize(16406, "The actions shown when hovering on an inline completion")),
|
|
357
357
|
supportsSubmenus: false,
|
|
358
358
|
proposed: "inlineCompletionsAdditions"
|
|
359
359
|
}, {
|
|
360
360
|
key: "editor/content",
|
|
361
361
|
id: MenuId.EditorContent,
|
|
362
|
-
description: ( localize(
|
|
362
|
+
description: ( localize(16407, "The prominent button in an editor, overlays its content")),
|
|
363
363
|
proposed: "contribEditorContentMenu"
|
|
364
364
|
}, {
|
|
365
365
|
key: "editor/lineNumber/context",
|
|
366
366
|
id: MenuId.EditorLineNumberContext,
|
|
367
|
-
description: ( localize(
|
|
367
|
+
description: ( localize(16408, "The contributed editor line number context menu"))
|
|
368
368
|
}, {
|
|
369
369
|
key: "mergeEditor/result/title",
|
|
370
370
|
id: MenuId.MergeInputResultToolbar,
|
|
371
|
-
description: ( localize(
|
|
371
|
+
description: ( localize(16409, "The result toolbar of the merge editor")),
|
|
372
372
|
proposed: "contribMergeEditorMenus"
|
|
373
373
|
}, {
|
|
374
374
|
key: "multiDiffEditor/content",
|
|
375
375
|
id: MenuId.MultiDiffEditorContent,
|
|
376
|
-
description: ( localize(
|
|
376
|
+
description: ( localize(16410, "A prominent button overlaying the multi diff editor")),
|
|
377
377
|
proposed: "contribEditorContentMenu"
|
|
378
378
|
}, {
|
|
379
379
|
key: "multiDiffEditor/resource/title",
|
|
380
380
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
381
|
-
description: ( localize(
|
|
381
|
+
description: ( localize(16411, "The resource toolbar in the multi diff editor")),
|
|
382
382
|
proposed: "contribMultiDiffEditorMenus"
|
|
383
383
|
}, {
|
|
384
384
|
key: "diffEditor/gutter/hunk",
|
|
385
385
|
id: MenuId.DiffEditorHunkToolbar,
|
|
386
|
-
description: ( localize(
|
|
386
|
+
description: ( localize(16412, "The gutter toolbar in the diff editor")),
|
|
387
387
|
proposed: "contribDiffEditorGutterToolBarMenus"
|
|
388
388
|
}, {
|
|
389
389
|
key: "diffEditor/gutter/selection",
|
|
390
390
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
391
|
-
description: ( localize(
|
|
391
|
+
description: ( localize(16412, "The gutter toolbar in the diff editor")),
|
|
392
392
|
proposed: "contribDiffEditorGutterToolBarMenus"
|
|
393
393
|
}, {
|
|
394
394
|
key: "searchPanel/aiResults/commands",
|
|
395
395
|
id: MenuId.SearchActionMenu,
|
|
396
396
|
description: ( localize(
|
|
397
|
-
|
|
397
|
+
16413,
|
|
398
398
|
"The commands that will contribute to the menu rendered as buttons next to the AI search title"
|
|
399
399
|
))
|
|
400
400
|
}, {
|
|
401
401
|
key: "editor/context/chat",
|
|
402
402
|
id: MenuId.ChatTextEditorMenu,
|
|
403
|
-
description: ( localize(
|
|
403
|
+
description: ( localize(16414, "The Chat submenu in the text editor context menu.")),
|
|
404
404
|
supportsSubmenus: false,
|
|
405
405
|
proposed: "chatParticipantPrivate"
|
|
406
406
|
}, {
|
|
407
407
|
key: "chat/input/editing/sessionToolbar",
|
|
408
408
|
id: MenuId.ChatEditingSessionChangesToolbar,
|
|
409
|
-
description: ( localize(
|
|
409
|
+
description: ( localize(16415, "The Chat Editing widget toolbar menu for session changes.")),
|
|
410
410
|
proposed: "chatSessionsProvider"
|
|
411
411
|
}, {
|
|
412
412
|
key: "chat/input/editing/sessionTitleToolbar",
|
|
413
413
|
id: MenuId.ChatEditingSessionTitleToolbar,
|
|
414
|
-
description: ( localize(
|
|
414
|
+
description: ( localize(16416, "The Chat Editing widget toolbar menu for session title.")),
|
|
415
415
|
proposed: "chatSessionsProvider"
|
|
416
416
|
}, {
|
|
417
417
|
key: "chat/chatSessions",
|
|
418
418
|
id: MenuId.AgentSessionsContext,
|
|
419
|
-
description: ( localize(
|
|
419
|
+
description: ( localize(16417, "The Chat Sessions menu.")),
|
|
420
420
|
supportsSubmenus: false,
|
|
421
421
|
proposed: "chatSessionsProvider"
|
|
422
422
|
}, {
|
|
423
423
|
key: "chatSessions/newSession",
|
|
424
424
|
id: MenuId.AgentSessionsCreateSubMenu,
|
|
425
|
-
description: ( localize(
|
|
425
|
+
description: ( localize(16418, "Menu for new chat sessions.")),
|
|
426
426
|
supportsSubmenus: false,
|
|
427
427
|
proposed: "chatSessionsProvider"
|
|
428
428
|
}, {
|
|
429
429
|
key: "chat/multiDiff/context",
|
|
430
430
|
id: MenuId.ChatMultiDiffContext,
|
|
431
|
-
description: ( localize(
|
|
431
|
+
description: ( localize(16419, "The Chat Multi-Diff context menu.")),
|
|
432
432
|
supportsSubmenus: false,
|
|
433
433
|
proposed: "chatSessionsProvider"
|
|
434
434
|
}, {
|
|
435
435
|
key: "chat/customizations/create",
|
|
436
436
|
id: MenuId.for("AICustomizationManagementCreate"),
|
|
437
|
-
description: ( localize(
|
|
437
|
+
description: ( localize(16420, "The create button in the Chat Customizations management editor.")),
|
|
438
438
|
supportsSubmenus: false,
|
|
439
439
|
proposed: "chatSessionCustomizationProvider"
|
|
440
440
|
}, {
|
|
441
441
|
key: "chat/customizations/item",
|
|
442
442
|
id: MenuId.for("AICustomizationManagementEditorItem"),
|
|
443
443
|
description: ( localize(
|
|
444
|
-
|
|
444
|
+
16421,
|
|
445
445
|
"The item context menu in the Chat Customizations management editor, including inline actions."
|
|
446
446
|
)),
|
|
447
447
|
supportsSubmenus: false,
|
|
@@ -449,36 +449,36 @@ const apiMenus = [{
|
|
|
449
449
|
}, {
|
|
450
450
|
key: "chat/editor/inlineGutter",
|
|
451
451
|
id: MenuId.ChatEditorInlineMenu,
|
|
452
|
-
description: ( localize(
|
|
452
|
+
description: ( localize(16422, "The inline gutter menu in the chat editor.")),
|
|
453
453
|
supportsSubmenus: false,
|
|
454
454
|
proposed: "contribChatEditorInlineGutterMenu"
|
|
455
455
|
}, {
|
|
456
456
|
key: "chat/contextUsage/actions",
|
|
457
457
|
id: MenuId.ChatContextUsageActions,
|
|
458
|
-
description: ( localize(
|
|
458
|
+
description: ( localize(16423, "Actions in the chat context usage details popup.")),
|
|
459
459
|
proposed: "chatParticipantAdditions"
|
|
460
460
|
}, {
|
|
461
461
|
key: "chat/newSession",
|
|
462
462
|
id: MenuId.ChatNewMenu,
|
|
463
|
-
description: ( localize(
|
|
463
|
+
description: ( localize(16424, "The Chat new session menu.")),
|
|
464
464
|
proposed: "chatSessionsProvider"
|
|
465
465
|
}, {
|
|
466
466
|
key: "agents/changes/actions",
|
|
467
467
|
id: MenuId.AgentsChangesToolbar,
|
|
468
|
-
description: ( localize(
|
|
468
|
+
description: ( localize(16425, "The Changes view toolbar of the agents window.")),
|
|
469
469
|
proposed: "chatSessionsProvider"
|
|
470
470
|
}, {
|
|
471
471
|
key: "agents/changes/actions/primary",
|
|
472
472
|
id: MenuId.AgentsChangesPrimaryActionSubMenu,
|
|
473
473
|
description: ( localize(
|
|
474
|
-
|
|
474
|
+
16426,
|
|
475
475
|
"The Changes view toolbar primary action submenu in the agents window."
|
|
476
476
|
)),
|
|
477
477
|
proposed: "chatSessionsProvider"
|
|
478
478
|
}, {
|
|
479
479
|
key: "agents/change/inline",
|
|
480
480
|
id: MenuId.AgentsChangeInlineToolbar,
|
|
481
|
-
description: ( localize(
|
|
481
|
+
description: ( localize(16427, "The Changes view inline menu in the agents window.")),
|
|
482
482
|
proposed: "chatSessionsProvider"
|
|
483
483
|
}];
|
|
484
484
|
var schema;
|
|
@@ -490,23 +490,23 @@ var schema;
|
|
|
490
490
|
function isValidMenuItem(item, collector) {
|
|
491
491
|
if (typeof item.command !== "string") {
|
|
492
492
|
collector.error(( localize(
|
|
493
|
-
|
|
493
|
+
16428,
|
|
494
494
|
"property `{0}` is mandatory and must be of type `string`",
|
|
495
495
|
"command"
|
|
496
496
|
)));
|
|
497
497
|
return false;
|
|
498
498
|
}
|
|
499
499
|
if (item.alt && typeof item.alt !== "string") {
|
|
500
|
-
collector.error(( localize(
|
|
500
|
+
collector.error(( localize(16429, "property `{0}` can be omitted or must be of type `string`", "alt")));
|
|
501
501
|
return false;
|
|
502
502
|
}
|
|
503
503
|
if (item.when && typeof item.when !== "string") {
|
|
504
|
-
collector.error(( localize(
|
|
504
|
+
collector.error(( localize(16429, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
505
505
|
return false;
|
|
506
506
|
}
|
|
507
507
|
if (item.group && typeof item.group !== "string") {
|
|
508
508
|
collector.error(( localize(
|
|
509
|
-
|
|
509
|
+
16429,
|
|
510
510
|
"property `{0}` can be omitted or must be of type `string`",
|
|
511
511
|
"group"
|
|
512
512
|
)));
|
|
@@ -518,19 +518,19 @@ var schema;
|
|
|
518
518
|
function isValidSubmenuItem(item, collector) {
|
|
519
519
|
if (typeof item.submenu !== "string") {
|
|
520
520
|
collector.error(( localize(
|
|
521
|
-
|
|
521
|
+
16428,
|
|
522
522
|
"property `{0}` is mandatory and must be of type `string`",
|
|
523
523
|
"submenu"
|
|
524
524
|
)));
|
|
525
525
|
return false;
|
|
526
526
|
}
|
|
527
527
|
if (item.when && typeof item.when !== "string") {
|
|
528
|
-
collector.error(( localize(
|
|
528
|
+
collector.error(( localize(16429, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
529
529
|
return false;
|
|
530
530
|
}
|
|
531
531
|
if (item.group && typeof item.group !== "string") {
|
|
532
532
|
collector.error(( localize(
|
|
533
|
-
|
|
533
|
+
16429,
|
|
534
534
|
"property `{0}` can be omitted or must be of type `string`",
|
|
535
535
|
"group"
|
|
536
536
|
)));
|
|
@@ -541,7 +541,7 @@ var schema;
|
|
|
541
541
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
542
542
|
function isValidItems(items, collector) {
|
|
543
543
|
if (!Array.isArray(items)) {
|
|
544
|
-
collector.error(( localize(
|
|
544
|
+
collector.error(( localize(16430, "submenu items must be an array")));
|
|
545
545
|
return false;
|
|
546
546
|
}
|
|
547
547
|
for (const item of items) {
|
|
@@ -560,15 +560,15 @@ var schema;
|
|
|
560
560
|
schema.isValidItems = isValidItems;
|
|
561
561
|
function isValidSubmenu(submenu, collector) {
|
|
562
562
|
if (typeof submenu !== "object") {
|
|
563
|
-
collector.error(( localize(
|
|
563
|
+
collector.error(( localize(16431, "submenu items must be an object")));
|
|
564
564
|
return false;
|
|
565
565
|
}
|
|
566
566
|
if (typeof submenu.id !== "string") {
|
|
567
|
-
collector.error(( localize(
|
|
567
|
+
collector.error(( localize(16428, "property `{0}` is mandatory and must be of type `string`", "id")));
|
|
568
568
|
return false;
|
|
569
569
|
}
|
|
570
570
|
if (typeof submenu.label !== "string") {
|
|
571
|
-
collector.error(( localize(
|
|
571
|
+
collector.error(( localize(16428, "property `{0}` is mandatory and must be of type `string`", "label")));
|
|
572
572
|
return false;
|
|
573
573
|
}
|
|
574
574
|
return true;
|
|
@@ -580,24 +580,24 @@ var schema;
|
|
|
580
580
|
properties: {
|
|
581
581
|
command: {
|
|
582
582
|
description: ( localize(
|
|
583
|
-
|
|
583
|
+
16432,
|
|
584
584
|
"Identifier of the command to execute. The command must be declared in the 'commands'-section"
|
|
585
585
|
)),
|
|
586
586
|
type: "string"
|
|
587
587
|
},
|
|
588
588
|
alt: {
|
|
589
589
|
description: ( localize(
|
|
590
|
-
|
|
590
|
+
16433,
|
|
591
591
|
"Identifier of an alternative command to execute. The command must be declared in the 'commands'-section"
|
|
592
592
|
)),
|
|
593
593
|
type: "string"
|
|
594
594
|
},
|
|
595
595
|
when: {
|
|
596
|
-
description: ( localize(
|
|
596
|
+
description: ( localize(16434, "Condition which must be true to show this item")),
|
|
597
597
|
type: "string"
|
|
598
598
|
},
|
|
599
599
|
group: {
|
|
600
|
-
description: ( localize(
|
|
600
|
+
description: ( localize(16435, "Group into which this item belongs")),
|
|
601
601
|
type: "string"
|
|
602
602
|
}
|
|
603
603
|
}
|
|
@@ -607,15 +607,15 @@ var schema;
|
|
|
607
607
|
required: ["submenu"],
|
|
608
608
|
properties: {
|
|
609
609
|
submenu: {
|
|
610
|
-
description: ( localize(
|
|
610
|
+
description: ( localize(16436, "Identifier of the submenu to display in this item.")),
|
|
611
611
|
type: "string"
|
|
612
612
|
},
|
|
613
613
|
when: {
|
|
614
|
-
description: ( localize(
|
|
614
|
+
description: ( localize(16434, "Condition which must be true to show this item")),
|
|
615
615
|
type: "string"
|
|
616
616
|
},
|
|
617
617
|
group: {
|
|
618
|
-
description: ( localize(
|
|
618
|
+
description: ( localize(16435, "Group into which this item belongs")),
|
|
619
619
|
type: "string"
|
|
620
620
|
}
|
|
621
621
|
}
|
|
@@ -625,16 +625,16 @@ var schema;
|
|
|
625
625
|
required: ["id", "label"],
|
|
626
626
|
properties: {
|
|
627
627
|
id: {
|
|
628
|
-
description: ( localize(
|
|
628
|
+
description: ( localize(16437, "Identifier of the menu to display as a submenu.")),
|
|
629
629
|
type: "string"
|
|
630
630
|
},
|
|
631
631
|
label: {
|
|
632
|
-
description: ( localize(
|
|
632
|
+
description: ( localize(16438, "The label of the menu item which leads to this submenu.")),
|
|
633
633
|
type: "string"
|
|
634
634
|
},
|
|
635
635
|
icon: {
|
|
636
636
|
description: ( localize(
|
|
637
|
-
|
|
637
|
+
16439,
|
|
638
638
|
"(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)\""
|
|
639
639
|
)),
|
|
640
640
|
anyOf: [{
|
|
@@ -643,11 +643,11 @@ var schema;
|
|
|
643
643
|
type: "object",
|
|
644
644
|
properties: {
|
|
645
645
|
light: {
|
|
646
|
-
description: ( localize(
|
|
646
|
+
description: ( localize(16440, "Icon path when a light theme is used")),
|
|
647
647
|
type: "string"
|
|
648
648
|
},
|
|
649
649
|
dark: {
|
|
650
|
-
description: ( localize(
|
|
650
|
+
description: ( localize(16441, "Icon path when a dark theme is used")),
|
|
651
651
|
type: "string"
|
|
652
652
|
}
|
|
653
653
|
}
|
|
@@ -656,11 +656,11 @@ var schema;
|
|
|
656
656
|
}
|
|
657
657
|
};
|
|
658
658
|
schema.menusContribution = {
|
|
659
|
-
description: ( localize(
|
|
659
|
+
description: ( localize(16442, "Contributes menu items to the editor")),
|
|
660
660
|
type: "object",
|
|
661
661
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
662
662
|
markdownDescription: menu.proposed ? ( localize(
|
|
663
|
-
|
|
663
|
+
16443,
|
|
664
664
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
665
665
|
menu.proposed,
|
|
666
666
|
menu.description
|
|
@@ -679,18 +679,18 @@ var schema;
|
|
|
679
679
|
}
|
|
680
680
|
};
|
|
681
681
|
schema.submenusContribution = {
|
|
682
|
-
description: ( localize(
|
|
682
|
+
description: ( localize(16444, "Contributes submenu items to the editor")),
|
|
683
683
|
type: "array",
|
|
684
684
|
items: submenu
|
|
685
685
|
};
|
|
686
686
|
function isValidCommand(command, collector) {
|
|
687
687
|
if (!command) {
|
|
688
|
-
collector.error(( localize(
|
|
688
|
+
collector.error(( localize(16445, "expected non-empty value.")));
|
|
689
689
|
return false;
|
|
690
690
|
}
|
|
691
691
|
if (isFalsyOrWhitespace(command.command)) {
|
|
692
692
|
collector.error(( localize(
|
|
693
|
-
|
|
693
|
+
16428,
|
|
694
694
|
"property `{0}` is mandatory and must be of type `string`",
|
|
695
695
|
"command"
|
|
696
696
|
)));
|
|
@@ -704,7 +704,7 @@ var schema;
|
|
|
704
704
|
}
|
|
705
705
|
if (command.enablement && typeof command.enablement !== "string") {
|
|
706
706
|
collector.error(( localize(
|
|
707
|
-
|
|
707
|
+
16429,
|
|
708
708
|
"property `{0}` can be omitted or must be of type `string`",
|
|
709
709
|
"precondition"
|
|
710
710
|
)));
|
|
@@ -729,7 +729,7 @@ var schema;
|
|
|
729
729
|
return true;
|
|
730
730
|
}
|
|
731
731
|
collector.error(( localize(
|
|
732
|
-
|
|
732
|
+
16446,
|
|
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,21 +737,21 @@ var schema;
|
|
|
737
737
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
738
738
|
if (typeof localized === "undefined") {
|
|
739
739
|
collector.error(( localize(
|
|
740
|
-
|
|
740
|
+
16447,
|
|
741
741
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
742
742
|
propertyName
|
|
743
743
|
)));
|
|
744
744
|
return false;
|
|
745
745
|
} else if (typeof localized === "string" && isFalsyOrWhitespace(localized)) {
|
|
746
746
|
collector.error(( localize(
|
|
747
|
-
|
|
747
|
+
16428,
|
|
748
748
|
"property `{0}` is mandatory and must be of type `string`",
|
|
749
749
|
propertyName
|
|
750
750
|
)));
|
|
751
751
|
return false;
|
|
752
752
|
} else if (typeof localized !== "string" && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
753
753
|
collector.error(( localize(
|
|
754
|
-
|
|
754
|
+
16448,
|
|
755
755
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
756
756
|
`${propertyName}.value`,
|
|
757
757
|
`${propertyName}.original`
|
|
@@ -765,37 +765,37 @@ var schema;
|
|
|
765
765
|
required: ["command", "title"],
|
|
766
766
|
properties: {
|
|
767
767
|
command: {
|
|
768
|
-
description: ( localize(
|
|
768
|
+
description: ( localize(16449, "Identifier of the command to execute")),
|
|
769
769
|
type: "string"
|
|
770
770
|
},
|
|
771
771
|
title: {
|
|
772
|
-
description: ( localize(
|
|
772
|
+
description: ( localize(16450, "Title by which the command is represented in the UI")),
|
|
773
773
|
type: "string"
|
|
774
774
|
},
|
|
775
775
|
shortTitle: {
|
|
776
776
|
markdownDescription: ( localize(
|
|
777
|
-
|
|
777
|
+
16451,
|
|
778
778
|
"(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."
|
|
779
779
|
)),
|
|
780
780
|
type: "string"
|
|
781
781
|
},
|
|
782
782
|
category: {
|
|
783
783
|
description: ( localize(
|
|
784
|
-
|
|
784
|
+
16452,
|
|
785
785
|
"(Optional) Category string by which the command is grouped in the UI"
|
|
786
786
|
)),
|
|
787
787
|
type: "string"
|
|
788
788
|
},
|
|
789
789
|
enablement: {
|
|
790
790
|
description: ( localize(
|
|
791
|
-
|
|
791
|
+
16453,
|
|
792
792
|
"(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."
|
|
793
793
|
)),
|
|
794
794
|
type: "string"
|
|
795
795
|
},
|
|
796
796
|
icon: {
|
|
797
797
|
description: ( localize(
|
|
798
|
-
|
|
798
|
+
16454,
|
|
799
799
|
"(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)\""
|
|
800
800
|
)),
|
|
801
801
|
anyOf: [{
|
|
@@ -804,11 +804,11 @@ var schema;
|
|
|
804
804
|
type: "object",
|
|
805
805
|
properties: {
|
|
806
806
|
light: {
|
|
807
|
-
description: ( localize(
|
|
807
|
+
description: ( localize(16455, "Icon path when a light theme is used")),
|
|
808
808
|
type: "string"
|
|
809
809
|
},
|
|
810
810
|
dark: {
|
|
811
|
-
description: ( localize(
|
|
811
|
+
description: ( localize(16456, "Icon path when a dark theme is used")),
|
|
812
812
|
type: "string"
|
|
813
813
|
}
|
|
814
814
|
}
|
|
@@ -817,7 +817,7 @@ var schema;
|
|
|
817
817
|
}
|
|
818
818
|
};
|
|
819
819
|
schema.commandsContribution = {
|
|
820
|
-
description: ( localize(
|
|
820
|
+
description: ( localize(16457, "Contributes commands to the command palette.")),
|
|
821
821
|
oneOf: [commandType, {
|
|
822
822
|
type: "array",
|
|
823
823
|
items: commandType
|
|
@@ -867,14 +867,14 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
867
867
|
if (existingCmd) {
|
|
868
868
|
if (existingCmd.source) {
|
|
869
869
|
extension.collector.info(( localize(
|
|
870
|
-
|
|
870
|
+
16458,
|
|
871
871
|
"Command `{0}` already registered by {1} ({2})",
|
|
872
872
|
userFriendlyCommand.command,
|
|
873
873
|
existingCmd.source.title,
|
|
874
874
|
existingCmd.source.id
|
|
875
875
|
)));
|
|
876
876
|
} else {
|
|
877
|
-
extension.collector.info(( localize(
|
|
877
|
+
extension.collector.info(( localize(16459, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -922,19 +922,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
922
922
|
continue;
|
|
923
923
|
}
|
|
924
924
|
if (!submenuInfo.id) {
|
|
925
|
-
collector.warn(( localize(
|
|
925
|
+
collector.warn(( localize(16460, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
926
926
|
continue;
|
|
927
927
|
}
|
|
928
928
|
if (( _submenus.has(submenuInfo.id))) {
|
|
929
929
|
collector.info(( localize(
|
|
930
|
-
|
|
930
|
+
16461,
|
|
931
931
|
"The `{0}` submenu was already previously registered.",
|
|
932
932
|
submenuInfo.id
|
|
933
933
|
)));
|
|
934
934
|
continue;
|
|
935
935
|
}
|
|
936
936
|
if (!submenuInfo.label) {
|
|
937
|
-
collector.warn(( localize(
|
|
937
|
+
collector.warn(( localize(16462, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
938
938
|
continue;
|
|
939
939
|
}
|
|
940
940
|
let absoluteIcon;
|
|
@@ -995,7 +995,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
995
995
|
}
|
|
996
996
|
if (menu.proposed && !isProposedApiEnabled(extension.description)) {
|
|
997
997
|
collector.error(( localize(
|
|
998
|
-
|
|
998
|
+
16463,
|
|
999
999
|
"{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}",
|
|
1000
1000
|
entry[0],
|
|
1001
1001
|
menu.proposed,
|
|
@@ -1010,7 +1010,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1010
1010
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
1011
1011
|
if (!command) {
|
|
1012
1012
|
collector.error(( localize(
|
|
1013
|
-
|
|
1013
|
+
16464,
|
|
1014
1014
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
1015
1015
|
menuItem.command
|
|
1016
1016
|
)));
|
|
@@ -1018,13 +1018,13 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
if (menuItem.alt && !alt) {
|
|
1020
1020
|
collector.warn(( localize(
|
|
1021
|
-
|
|
1021
|
+
16465,
|
|
1022
1022
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
1023
1023
|
menuItem.alt
|
|
1024
1024
|
)));
|
|
1025
1025
|
}
|
|
1026
1026
|
if (menuItem.command === menuItem.alt) {
|
|
1027
|
-
collector.info(( localize(
|
|
1027
|
+
collector.info(( localize(16466, "Menu item references the same command as default and alt-command")));
|
|
1028
1028
|
}
|
|
1029
1029
|
item = {
|
|
1030
1030
|
command,
|
|
@@ -1036,7 +1036,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1036
1036
|
} else {
|
|
1037
1037
|
if (menu.supportsSubmenus === false) {
|
|
1038
1038
|
collector.error(( localize(
|
|
1039
|
-
|
|
1039
|
+
16467,
|
|
1040
1040
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1041
1041
|
)));
|
|
1042
1042
|
continue;
|
|
@@ -1044,7 +1044,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1044
1044
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1045
1045
|
if (!submenu) {
|
|
1046
1046
|
collector.error(( localize(
|
|
1047
|
-
|
|
1047
|
+
16468,
|
|
1048
1048
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1049
1049
|
menuItem.submenu
|
|
1050
1050
|
)));
|
|
@@ -1057,7 +1057,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1059
1059
|
collector.warn(( localize(
|
|
1060
|
-
|
|
1060
|
+
16469,
|
|
1061
1061
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1062
1062
|
menuItem.submenu,
|
|
1063
1063
|
entry[0]
|
|
@@ -1085,7 +1085,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes("viewContainer == workbench.view.debug")) {
|
|
1087
1087
|
collector.error(( localize(
|
|
1088
|
-
|
|
1088
|
+
16470,
|
|
1089
1089
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1090
1090
|
"`viewContainer/title`",
|
|
1091
1091
|
"`viewContainer == workbench.view.debug`",
|
|
@@ -1187,7 +1187,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1187
1187
|
dispose: () => {}
|
|
1188
1188
|
};
|
|
1189
1189
|
}
|
|
1190
|
-
const headers = [( localize(
|
|
1190
|
+
const headers = [( localize(16471, "ID")), ( localize(16472, "Title")), ( localize(16473, "Keyboard Shortcuts")), ( localize(16474, "Menu Contexts"))];
|
|
1191
1191
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id)).map(command => {
|
|
1192
1192
|
return [( new MarkdownString()).appendMarkdown(`\`${command.id}\``), typeof command.title === "string" ? command.title : command.title.value, command.keybindings, ( new MarkdownString()).appendMarkdown(`${( command.menus.sort((a, b) => a.localeCompare(b)).map(menu => `\`${menu}\``)).join(" ")}`)];
|
|
1193
1193
|
}));
|
|
@@ -1218,7 +1218,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1218
1218
|
CommandsTableRenderer = ( __decorate([( __param(0, IKeybindingService))], CommandsTableRenderer));
|
|
1219
1219
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1220
1220
|
id: "commands",
|
|
1221
|
-
label: ( localize(
|
|
1221
|
+
label: ( localize(16475, "Commands")),
|
|
1222
1222
|
access: {
|
|
1223
1223
|
canToggle: false
|
|
1224
1224
|
},
|
|
@@ -51,39 +51,39 @@ import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor
|
|
|
51
51
|
var WorkbenchKeybindingService_1;
|
|
52
52
|
function isValidContributedKeyBinding(keyBinding, rejects) {
|
|
53
53
|
if (!keyBinding) {
|
|
54
|
-
rejects.push(( localize(
|
|
54
|
+
rejects.push(( localize(16886, "expected non-empty value.")));
|
|
55
55
|
return false;
|
|
56
56
|
}
|
|
57
57
|
if (typeof keyBinding.command !== "string") {
|
|
58
58
|
rejects.push(( localize(
|
|
59
|
-
|
|
59
|
+
16887,
|
|
60
60
|
"property `{0}` is mandatory and must be of type `string`",
|
|
61
61
|
"command"
|
|
62
62
|
)));
|
|
63
63
|
return false;
|
|
64
64
|
}
|
|
65
65
|
if (keyBinding.key && typeof keyBinding.key !== "string") {
|
|
66
|
-
rejects.push(( localize(
|
|
66
|
+
rejects.push(( localize(16888, "property `{0}` can be omitted or must be of type `string`", "key")));
|
|
67
67
|
return false;
|
|
68
68
|
}
|
|
69
69
|
if (keyBinding.when && typeof keyBinding.when !== "string") {
|
|
70
|
-
rejects.push(( localize(
|
|
70
|
+
rejects.push(( localize(16888, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
71
71
|
return false;
|
|
72
72
|
}
|
|
73
73
|
if (keyBinding.mac && typeof keyBinding.mac !== "string") {
|
|
74
|
-
rejects.push(( localize(
|
|
74
|
+
rejects.push(( localize(16888, "property `{0}` can be omitted or must be of type `string`", "mac")));
|
|
75
75
|
return false;
|
|
76
76
|
}
|
|
77
77
|
if (keyBinding.linux && typeof keyBinding.linux !== "string") {
|
|
78
78
|
rejects.push(( localize(
|
|
79
|
-
|
|
79
|
+
16888,
|
|
80
80
|
"property `{0}` can be omitted or must be of type `string`",
|
|
81
81
|
"linux"
|
|
82
82
|
)));
|
|
83
83
|
return false;
|
|
84
84
|
}
|
|
85
85
|
if (keyBinding.win && typeof keyBinding.win !== "string") {
|
|
86
|
-
rejects.push(( localize(
|
|
86
|
+
rejects.push(( localize(16888, "property `{0}` can be omitted or must be of type `string`", "win")));
|
|
87
87
|
return false;
|
|
88
88
|
}
|
|
89
89
|
return true;
|
|
@@ -97,33 +97,33 @@ const keybindingType = {
|
|
|
97
97
|
required: ["command", "key"],
|
|
98
98
|
properties: {
|
|
99
99
|
command: {
|
|
100
|
-
description: ( localize(
|
|
100
|
+
description: ( localize(16889, "Identifier of the command to run when keybinding is triggered.")),
|
|
101
101
|
type: "string"
|
|
102
102
|
},
|
|
103
103
|
args: {
|
|
104
|
-
description: ( localize(
|
|
104
|
+
description: ( localize(16890, "Arguments to pass to the command to execute."))
|
|
105
105
|
},
|
|
106
106
|
key: {
|
|
107
107
|
description: ( localize(
|
|
108
|
-
|
|
108
|
+
16891,
|
|
109
109
|
"Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord)."
|
|
110
110
|
)),
|
|
111
111
|
type: "string"
|
|
112
112
|
},
|
|
113
113
|
mac: {
|
|
114
|
-
description: ( localize(
|
|
114
|
+
description: ( localize(16892, "Mac specific key or key sequence.")),
|
|
115
115
|
type: "string"
|
|
116
116
|
},
|
|
117
117
|
linux: {
|
|
118
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(16893, "Linux specific key or key sequence.")),
|
|
119
119
|
type: "string"
|
|
120
120
|
},
|
|
121
121
|
win: {
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(16894, "Windows specific key or key sequence.")),
|
|
123
123
|
type: "string"
|
|
124
124
|
},
|
|
125
125
|
when: {
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(16895, "Condition when the key is active.")),
|
|
127
127
|
type: "string"
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -132,7 +132,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
132
132
|
extensionPoint: "keybindings",
|
|
133
133
|
deps: [commandsExtensionPoint],
|
|
134
134
|
jsonSchema: {
|
|
135
|
-
description: ( localize(
|
|
135
|
+
description: ( localize(16896, "Contributes keybindings.")),
|
|
136
136
|
oneOf: [keybindingType, {
|
|
137
137
|
type: "array",
|
|
138
138
|
items: keybindingType
|
|
@@ -555,7 +555,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
555
555
|
}
|
|
556
556
|
if (rejects.length > 0) {
|
|
557
557
|
collector.error(( localize(
|
|
558
|
-
|
|
558
|
+
16897,
|
|
559
559
|
"Invalid `contributes.{0}`: {1}",
|
|
560
560
|
keybindingsExtPoint.name,
|
|
561
561
|
rejects.join("\n")
|
|
@@ -643,7 +643,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
643
643
|
static _getAllCommandsAsComment(boundCommands) {
|
|
644
644
|
const unboundCommands = getAllUnboundCommands(boundCommands);
|
|
645
645
|
const pretty = unboundCommands.sort().join("\n// - ");
|
|
646
|
-
return "// " + ( localize(
|
|
646
|
+
return "// " + ( localize(16898, "Here are other available commands: ")) + "\n// - " + pretty;
|
|
647
647
|
}
|
|
648
648
|
mightProducePrintableCharacter(event) {
|
|
649
649
|
if (event.ctrlKey || event.metaKey || event.altKey) {
|
|
@@ -766,7 +766,7 @@ class KeybindingsJsonSchema {
|
|
|
766
766
|
this.schema = {
|
|
767
767
|
id: KeybindingsJsonSchema.schemaId,
|
|
768
768
|
type: "array",
|
|
769
|
-
title: ( localize(
|
|
769
|
+
title: ( localize(16899, "Keybindings configuration")),
|
|
770
770
|
allowTrailingCommas: true,
|
|
771
771
|
allowComments: true,
|
|
772
772
|
definitions: {
|
|
@@ -790,7 +790,7 @@ class KeybindingsJsonSchema {
|
|
|
790
790
|
"type": "string",
|
|
791
791
|
"enum": this.commandsEnum,
|
|
792
792
|
"enumDescriptions": this.commandsEnumDescriptions,
|
|
793
|
-
"description": ( localize(
|
|
793
|
+
"description": ( localize(16900, "Name of the command to execute"))
|
|
794
794
|
},
|
|
795
795
|
"commandType": {
|
|
796
796
|
"anyOf": [{
|
|
@@ -799,7 +799,7 @@ class KeybindingsJsonSchema {
|
|
|
799
799
|
"type": "string",
|
|
800
800
|
"enum": this.removalCommandsEnum,
|
|
801
801
|
"enumDescriptions": this.commandsEnumDescriptions,
|
|
802
|
-
"description": ( localize(
|
|
802
|
+
"description": ( localize(16901, "Name of the command to remove keyboard shortcut for"))
|
|
803
803
|
}, {
|
|
804
804
|
"type": "string"
|
|
805
805
|
}]
|
|
@@ -821,7 +821,7 @@ class KeybindingsJsonSchema {
|
|
|
821
821
|
"properties": {
|
|
822
822
|
"key": {
|
|
823
823
|
"type": "string",
|
|
824
|
-
"description": ( localize(
|
|
824
|
+
"description": ( localize(16902, "Key or key sequence (separated by space)"))
|
|
825
825
|
},
|
|
826
826
|
"command": {
|
|
827
827
|
"anyOf": [{
|
|
@@ -833,7 +833,7 @@ class KeybindingsJsonSchema {
|
|
|
833
833
|
"type": "array"
|
|
834
834
|
},
|
|
835
835
|
"errorMessage": ( localize(
|
|
836
|
-
|
|
836
|
+
16903,
|
|
837
837
|
"Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
|
|
838
838
|
"string"
|
|
839
839
|
))
|
|
@@ -847,10 +847,10 @@ class KeybindingsJsonSchema {
|
|
|
847
847
|
},
|
|
848
848
|
"when": {
|
|
849
849
|
"type": "string",
|
|
850
|
-
"description": ( localize(
|
|
850
|
+
"description": ( localize(16904, "Condition when the key is active."))
|
|
851
851
|
},
|
|
852
852
|
"args": {
|
|
853
|
-
"description": ( localize(
|
|
853
|
+
"description": ( localize(16905, "Arguments to pass to the command to execute."))
|
|
854
854
|
}
|
|
855
855
|
},
|
|
856
856
|
"$ref": "#/definitions/commandsSchemas"
|
|
@@ -476,12 +476,12 @@ const keyboardConfiguration = {
|
|
|
476
476
|
"id": "keyboard",
|
|
477
477
|
"order": 15,
|
|
478
478
|
"type": "object",
|
|
479
|
-
"title": ( localize(
|
|
479
|
+
"title": ( localize(16906, "Keyboard")),
|
|
480
480
|
"properties": {
|
|
481
481
|
"keyboard.layout": {
|
|
482
482
|
"type": "string",
|
|
483
483
|
"default": "autodetect",
|
|
484
|
-
"description": ( localize(
|
|
484
|
+
"description": ( localize(16907, "Control the keyboard layout used in web."))
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
};
|