@codingame/monaco-vscode-view-common-service-override 28.4.1 → 29.0.0
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/workbench/api/browser/viewsExtensionPoint.js +59 -59
- package/vscode/src/vs/workbench/browser/actions/helpActions.js +20 -20
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +180 -169
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -8
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +3 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +29 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +10 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/scrollLocking/browser/scrollLocking.js +7 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +3 -3
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +8 -8
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +9 -9
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +7 -7
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +5 -5
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +9 -9
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.d.ts +1 -0
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "29.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-common 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-bulk-edit-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "29.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "29.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -31,19 +31,19 @@ const viewsContainerSchema = {
|
|
|
31
31
|
properties: {
|
|
32
32
|
id: {
|
|
33
33
|
description: ( localize(
|
|
34
|
-
|
|
34
|
+
2632,
|
|
35
35
|
"Unique id used to identify the container in which views can be contributed using 'views' contribution point"
|
|
36
36
|
)),
|
|
37
37
|
type: "string",
|
|
38
38
|
pattern: "^[a-zA-Z0-9_-]+$"
|
|
39
39
|
},
|
|
40
40
|
title: {
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(2633, "Human readable string used to render the container")),
|
|
42
42
|
type: "string"
|
|
43
43
|
},
|
|
44
44
|
icon: {
|
|
45
45
|
description: ( localize(
|
|
46
|
-
|
|
46
|
+
2634,
|
|
47
47
|
"Path to the container icon. Icons are 24x24 centered on a 50x40 block and have a fill color of 'rgb(215, 218, 224)' or '#d7dae0'. It is recommended that icons be in SVG, though any image file type is accepted."
|
|
48
48
|
)),
|
|
49
49
|
type: "string"
|
|
@@ -52,21 +52,21 @@ const viewsContainerSchema = {
|
|
|
52
52
|
required: ["id", "title", "icon"]
|
|
53
53
|
};
|
|
54
54
|
const viewsContainersContribution = {
|
|
55
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(2635, "Contributes views containers to the editor")),
|
|
56
56
|
type: "object",
|
|
57
57
|
properties: {
|
|
58
58
|
"activitybar": {
|
|
59
|
-
description: ( localize(
|
|
59
|
+
description: ( localize(2636, "Contribute views containers to Activity Bar")),
|
|
60
60
|
type: "array",
|
|
61
61
|
items: viewsContainerSchema
|
|
62
62
|
},
|
|
63
63
|
"panel": {
|
|
64
|
-
description: ( localize(
|
|
64
|
+
description: ( localize(2637, "Contribute views containers to Panel")),
|
|
65
65
|
type: "array",
|
|
66
66
|
items: viewsContainerSchema
|
|
67
67
|
},
|
|
68
68
|
"secondarySidebar": {
|
|
69
|
-
description: ( localize(
|
|
69
|
+
description: ( localize(2638, "Contribute views containers to Secondary Side Bar")),
|
|
70
70
|
type: "array",
|
|
71
71
|
items: viewsContainerSchema
|
|
72
72
|
}
|
|
@@ -97,72 +97,72 @@ const viewDescriptor = {
|
|
|
97
97
|
properties: {
|
|
98
98
|
type: {
|
|
99
99
|
markdownDescription: ( localize(
|
|
100
|
-
|
|
100
|
+
2639,
|
|
101
101
|
"Type of the view. This can either be `tree` for a tree view based view or `webview` for a webview based view. The default is `tree`."
|
|
102
102
|
)),
|
|
103
103
|
type: "string",
|
|
104
104
|
enum: ["tree", "webview"],
|
|
105
|
-
markdownEnumDescriptions: [( localize(
|
|
106
|
-
|
|
105
|
+
markdownEnumDescriptions: [( localize(2640, "The view is backed by a `TreeView` created by `createTreeView`.")), ( localize(
|
|
106
|
+
2641,
|
|
107
107
|
"The view is backed by a `WebviewView` registered by `registerWebviewViewProvider`."
|
|
108
108
|
))]
|
|
109
109
|
},
|
|
110
110
|
id: {
|
|
111
111
|
markdownDescription: ( localize(
|
|
112
|
-
|
|
112
|
+
2642,
|
|
113
113
|
"Identifier of the view. This should be unique across all views. It is recommended to include your extension id as part of the view id. Use this to register a data provider through `vscode.window.registerTreeDataProviderForView` API. Also to trigger activating your extension by registering `onView:${id}` event to `activationEvents`."
|
|
114
114
|
)),
|
|
115
115
|
type: "string"
|
|
116
116
|
},
|
|
117
117
|
name: {
|
|
118
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(2643, "The human-readable name of the view. Will be shown")),
|
|
119
119
|
type: "string"
|
|
120
120
|
},
|
|
121
121
|
when: {
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(2644, "Condition which must be true to show this view")),
|
|
123
123
|
type: "string"
|
|
124
124
|
},
|
|
125
125
|
icon: {
|
|
126
126
|
description: ( localize(
|
|
127
|
-
|
|
127
|
+
2645,
|
|
128
128
|
"Path to the view icon. View icons are displayed when the name of the view cannot be shown. It is recommended that icons be in SVG, though any image file type is accepted."
|
|
129
129
|
)),
|
|
130
130
|
type: "string"
|
|
131
131
|
},
|
|
132
132
|
contextualTitle: {
|
|
133
133
|
description: ( localize(
|
|
134
|
-
|
|
134
|
+
2646,
|
|
135
135
|
"Human-readable context for when the view is moved out of its original location. By default, the view's container name will be used."
|
|
136
136
|
)),
|
|
137
137
|
type: "string"
|
|
138
138
|
},
|
|
139
139
|
visibility: {
|
|
140
140
|
description: ( localize(
|
|
141
|
-
|
|
141
|
+
2647,
|
|
142
142
|
"Initial state of the view when the extension is first installed. Once the user has changed the view state by collapsing, moving, or hiding the view, the initial state will not be used again."
|
|
143
143
|
)),
|
|
144
144
|
type: "string",
|
|
145
145
|
enum: ["visible", "hidden", "collapsed"],
|
|
146
146
|
default: "visible",
|
|
147
147
|
enumDescriptions: [( localize(
|
|
148
|
-
|
|
148
|
+
2648,
|
|
149
149
|
"The default initial state for the view. In most containers the view will be expanded, however; some built-in containers (explorer, scm, and debug) show all contributed views collapsed regardless of the `visibility`."
|
|
150
150
|
)), ( localize(
|
|
151
|
-
|
|
151
|
+
2649,
|
|
152
152
|
"The view will not be shown in the view container, but will be discoverable through the views menu and other view entry points and can be un-hidden by the user."
|
|
153
|
-
)), ( localize(
|
|
153
|
+
)), ( localize(2650, "The view will show in the view container, but will be collapsed."))]
|
|
154
154
|
},
|
|
155
155
|
initialSize: {
|
|
156
156
|
type: "number",
|
|
157
157
|
description: ( localize(
|
|
158
|
-
|
|
158
|
+
2651,
|
|
159
159
|
"The initial size of the view. The size will behave like the css 'flex' property, and will set the initial size when the view is first shown. In the side bar, this is the height of the view. This value is only respected when the same extension owns both the view and the view container."
|
|
160
160
|
))
|
|
161
161
|
},
|
|
162
162
|
accessibilityHelpContent: {
|
|
163
163
|
type: "string",
|
|
164
164
|
markdownDescription: ( localize(
|
|
165
|
-
|
|
165
|
+
2652,
|
|
166
166
|
"When the accessibility help dialog is invoked in this view, this content will be presented to the user as a markdown string. Keybindings will be resolved when provided in the format of <keybinding:commandId>. If there is no keybinding, that will be indicated and this command will be included in a quickpick for easy configuration."
|
|
167
167
|
))
|
|
168
168
|
}
|
|
@@ -174,25 +174,25 @@ const remoteViewDescriptor = {
|
|
|
174
174
|
properties: {
|
|
175
175
|
id: {
|
|
176
176
|
description: ( localize(
|
|
177
|
-
|
|
177
|
+
2642,
|
|
178
178
|
"Identifier of the view. This should be unique across all views. It is recommended to include your extension id as part of the view id. Use this to register a data provider through `vscode.window.registerTreeDataProviderForView` API. Also to trigger activating your extension by registering `onView:${id}` event to `activationEvents`."
|
|
179
179
|
)),
|
|
180
180
|
type: "string"
|
|
181
181
|
},
|
|
182
182
|
name: {
|
|
183
|
-
description: ( localize(
|
|
183
|
+
description: ( localize(2643, "The human-readable name of the view. Will be shown")),
|
|
184
184
|
type: "string"
|
|
185
185
|
},
|
|
186
186
|
when: {
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(2644, "Condition which must be true to show this view")),
|
|
188
188
|
type: "string"
|
|
189
189
|
},
|
|
190
190
|
group: {
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(2653, "Nested group in the viewlet")),
|
|
192
192
|
type: "string"
|
|
193
193
|
},
|
|
194
194
|
remoteName: {
|
|
195
|
-
description: ( localize(
|
|
195
|
+
description: ( localize(2654, "The name of the remote type associated with this view")),
|
|
196
196
|
type: ["string", "array"],
|
|
197
197
|
items: {
|
|
198
198
|
type: "string"
|
|
@@ -201,36 +201,36 @@ const remoteViewDescriptor = {
|
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
const viewsContribution = {
|
|
204
|
-
description: ( localize(
|
|
204
|
+
description: ( localize(2655, "Contributes views to the editor")),
|
|
205
205
|
type: "object",
|
|
206
206
|
properties: {
|
|
207
207
|
"explorer": {
|
|
208
|
-
description: ( localize(
|
|
208
|
+
description: ( localize(2656, "Contributes views to Explorer container in the Activity bar")),
|
|
209
209
|
type: "array",
|
|
210
210
|
items: viewDescriptor,
|
|
211
211
|
default: []
|
|
212
212
|
},
|
|
213
213
|
"debug": {
|
|
214
|
-
description: ( localize(
|
|
214
|
+
description: ( localize(2657, "Contributes views to Debug container in the Activity bar")),
|
|
215
215
|
type: "array",
|
|
216
216
|
items: viewDescriptor,
|
|
217
217
|
default: []
|
|
218
218
|
},
|
|
219
219
|
"scm": {
|
|
220
|
-
description: ( localize(
|
|
220
|
+
description: ( localize(2658, "Contributes views to SCM container in the Activity bar")),
|
|
221
221
|
type: "array",
|
|
222
222
|
items: viewDescriptor,
|
|
223
223
|
default: []
|
|
224
224
|
},
|
|
225
225
|
"test": {
|
|
226
|
-
description: ( localize(
|
|
226
|
+
description: ( localize(2659, "Contributes views to Test container in the Activity bar")),
|
|
227
227
|
type: "array",
|
|
228
228
|
items: viewDescriptor,
|
|
229
229
|
default: []
|
|
230
230
|
},
|
|
231
231
|
"remote": {
|
|
232
232
|
description: ( localize(
|
|
233
|
-
|
|
233
|
+
2660,
|
|
234
234
|
"Contributes views to Remote container in the Activity bar. To contribute to this container, the 'contribViewsRemote' API proposal must be enabled."
|
|
235
235
|
)),
|
|
236
236
|
type: "array",
|
|
@@ -239,7 +239,7 @@ const viewsContribution = {
|
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
241
|
additionalProperties: {
|
|
242
|
-
description: ( localize(
|
|
242
|
+
description: ( localize(2661, "Contributes views to contributed views container")),
|
|
243
243
|
type: "array",
|
|
244
244
|
items: viewDescriptor,
|
|
245
245
|
default: []
|
|
@@ -364,13 +364,13 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
364
364
|
}
|
|
365
365
|
isValidViewsContainer(viewsContainersDescriptors, collector) {
|
|
366
366
|
if (!Array.isArray(viewsContainersDescriptors)) {
|
|
367
|
-
collector.error(( localize(
|
|
367
|
+
collector.error(( localize(2662, "views containers must be an array")));
|
|
368
368
|
return false;
|
|
369
369
|
}
|
|
370
370
|
for (const descriptor of viewsContainersDescriptors) {
|
|
371
371
|
if (typeof descriptor.id !== "string" && isFalsyOrWhitespace(descriptor.id)) {
|
|
372
372
|
collector.error(( localize(
|
|
373
|
-
|
|
373
|
+
2663,
|
|
374
374
|
"property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
|
|
375
375
|
"id"
|
|
376
376
|
)));
|
|
@@ -378,23 +378,23 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
378
378
|
}
|
|
379
379
|
if (!(/^[a-z0-9_-]+$/i.test(descriptor.id))) {
|
|
380
380
|
collector.error(( localize(
|
|
381
|
-
|
|
381
|
+
2663,
|
|
382
382
|
"property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
|
|
383
383
|
"id"
|
|
384
384
|
)));
|
|
385
385
|
return false;
|
|
386
386
|
}
|
|
387
387
|
if (typeof descriptor.title !== "string") {
|
|
388
|
-
collector.error(( localize(
|
|
388
|
+
collector.error(( localize(2664, "property `{0}` is mandatory and must be of type `string`", "title")));
|
|
389
389
|
return false;
|
|
390
390
|
}
|
|
391
391
|
if (typeof descriptor.icon !== "string") {
|
|
392
|
-
collector.error(( localize(
|
|
392
|
+
collector.error(( localize(2664, "property `{0}` is mandatory and must be of type `string`", "icon")));
|
|
393
393
|
return false;
|
|
394
394
|
}
|
|
395
395
|
if (isFalsyOrWhitespace(descriptor.title)) {
|
|
396
396
|
collector.warn(( localize(
|
|
397
|
-
|
|
397
|
+
2665,
|
|
398
398
|
"property `{0}` is mandatory and must be of type `string` with non-empty value",
|
|
399
399
|
"title"
|
|
400
400
|
)));
|
|
@@ -478,17 +478,17 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
478
478
|
if (!this.isValidViewDescriptors(value, collector)) {
|
|
479
479
|
return;
|
|
480
480
|
}
|
|
481
|
-
if (key === "remote" && !isProposedApiEnabled(extension.description
|
|
481
|
+
if (key === "remote" && !isProposedApiEnabled(extension.description)) {
|
|
482
482
|
collector.warn(( localize(
|
|
483
|
-
|
|
483
|
+
2666,
|
|
484
484
|
"View container '{0}' requires 'enabledApiProposals: [\"contribViewsRemote\"]' to be added to 'Remote'.",
|
|
485
485
|
key
|
|
486
486
|
)));
|
|
487
487
|
return;
|
|
488
488
|
}
|
|
489
|
-
if (key === "agentSessions" && !isProposedApiEnabled(extension.description
|
|
489
|
+
if (key === "agentSessions" && !isProposedApiEnabled(extension.description)) {
|
|
490
490
|
collector.warn(( localize(
|
|
491
|
-
|
|
491
|
+
2667,
|
|
492
492
|
"View container '{0}' requires 'enabledApiProposals: [\"chatSessionsProvider\"]'.",
|
|
493
493
|
key
|
|
494
494
|
)));
|
|
@@ -497,7 +497,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
497
497
|
const viewContainer = this.getViewContainer(key);
|
|
498
498
|
if (!viewContainer) {
|
|
499
499
|
collector.warn(( localize(
|
|
500
|
-
|
|
500
|
+
2668,
|
|
501
501
|
"View container '{0}' does not exist and all views registered to it will be added to 'Explorer'.",
|
|
502
502
|
key
|
|
503
503
|
)));
|
|
@@ -507,11 +507,11 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
507
507
|
for (let index = 0; index < value.length; index++) {
|
|
508
508
|
const item = value[index];
|
|
509
509
|
if (( viewIds.has(item.id))) {
|
|
510
|
-
collector.error(( localize(
|
|
510
|
+
collector.error(( localize(2669, "Cannot register multiple views with same id `{0}`", item.id)));
|
|
511
511
|
continue;
|
|
512
512
|
}
|
|
513
513
|
if (this.viewsRegistry.getView(item.id) !== null) {
|
|
514
|
-
collector.error(( localize(
|
|
514
|
+
collector.error(( localize(2670, "A view with id `{0}` is already registered.", item.id)));
|
|
515
515
|
continue;
|
|
516
516
|
}
|
|
517
517
|
const order = ExtensionIdentifier.equals(extension.description.identifier, container.extensionId) ? index + 1 : container.viewOrderDelegate ? container.viewOrderDelegate.getOrder(item.group) : undefined;
|
|
@@ -522,7 +522,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
522
522
|
const initialVisibility = this.convertInitialVisibility(item.visibility);
|
|
523
523
|
const type = this.getViewType(item.type);
|
|
524
524
|
if (!type) {
|
|
525
|
-
collector.error(( localize(
|
|
525
|
+
collector.error(( localize(2671, "Unknown view type `{0}`.", item.type)));
|
|
526
526
|
continue;
|
|
527
527
|
}
|
|
528
528
|
let weight = undefined;
|
|
@@ -536,7 +536,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
let accessibilityHelpContent;
|
|
539
|
-
if (isProposedApiEnabled(extension.description
|
|
539
|
+
if (isProposedApiEnabled(extension.description) && item.accessibilityHelpContent) {
|
|
540
540
|
accessibilityHelpContent = ( new MarkdownString(item.accessibilityHelpContent));
|
|
541
541
|
}
|
|
542
542
|
const viewDescriptor = {
|
|
@@ -614,29 +614,29 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
614
614
|
}
|
|
615
615
|
isValidViewDescriptors(viewDescriptors, collector) {
|
|
616
616
|
if (!Array.isArray(viewDescriptors)) {
|
|
617
|
-
collector.error(( localize(
|
|
617
|
+
collector.error(( localize(2672, "views must be an array")));
|
|
618
618
|
return false;
|
|
619
619
|
}
|
|
620
620
|
for (const descriptor of viewDescriptors) {
|
|
621
621
|
if (typeof descriptor.id !== "string") {
|
|
622
|
-
collector.error(( localize(
|
|
622
|
+
collector.error(( localize(2664, "property `{0}` is mandatory and must be of type `string`", "id")));
|
|
623
623
|
return false;
|
|
624
624
|
}
|
|
625
625
|
if (typeof descriptor.name !== "string") {
|
|
626
|
-
collector.error(( localize(
|
|
626
|
+
collector.error(( localize(2664, "property `{0}` is mandatory and must be of type `string`", "name")));
|
|
627
627
|
return false;
|
|
628
628
|
}
|
|
629
629
|
if (descriptor.when && typeof descriptor.when !== "string") {
|
|
630
|
-
collector.error(( localize(
|
|
630
|
+
collector.error(( localize(2673, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
631
631
|
return false;
|
|
632
632
|
}
|
|
633
633
|
if (descriptor.icon && typeof descriptor.icon !== "string") {
|
|
634
|
-
collector.error(( localize(
|
|
634
|
+
collector.error(( localize(2673, "property `{0}` can be omitted or must be of type `string`", "icon")));
|
|
635
635
|
return false;
|
|
636
636
|
}
|
|
637
637
|
if (descriptor.contextualTitle && typeof descriptor.contextualTitle !== "string") {
|
|
638
638
|
collector.error(( localize(
|
|
639
|
-
|
|
639
|
+
2673,
|
|
640
640
|
"property `{0}` can be omitted or must be of type `string`",
|
|
641
641
|
"contextualTitle"
|
|
642
642
|
)));
|
|
@@ -644,7 +644,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
644
644
|
}
|
|
645
645
|
if (descriptor.visibility && !this.convertInitialVisibility(descriptor.visibility)) {
|
|
646
646
|
collector.error(( localize(
|
|
647
|
-
|
|
647
|
+
2674,
|
|
648
648
|
"property `{0}` can be omitted or must be one of {1}",
|
|
649
649
|
"visibility",
|
|
650
650
|
( Object.values(InitialVisibility)).join(", ")
|
|
@@ -706,7 +706,7 @@ class ViewContainersDataRenderer extends Disposable {
|
|
|
706
706
|
dispose: () => {}
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
const headers = [( localize(
|
|
709
|
+
const headers = [( localize(2675, "ID")), ( localize(2676, "Title")), ( localize(2677, "Where"))];
|
|
710
710
|
const rows = ( viewContainers.sort((a, b) => a.id.localeCompare(b.id)).map(viewContainer => {
|
|
711
711
|
return [viewContainer.id, viewContainer.title, viewContainer.location];
|
|
712
712
|
}));
|
|
@@ -746,7 +746,7 @@ class ViewsDataRenderer extends Disposable {
|
|
|
746
746
|
dispose: () => {}
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
const headers = [( localize(
|
|
749
|
+
const headers = [( localize(2678, "ID")), ( localize(2679, "Name")), ( localize(2677, "Where"))];
|
|
750
750
|
const rows = ( views.sort((a, b) => a.id.localeCompare(b.id)).map(view => {
|
|
751
751
|
return [view.id, view.name, view.location];
|
|
752
752
|
}));
|
|
@@ -761,7 +761,7 @@ class ViewsDataRenderer extends Disposable {
|
|
|
761
761
|
}
|
|
762
762
|
( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
763
763
|
id: "viewsContainers",
|
|
764
|
-
label: ( localize(
|
|
764
|
+
label: ( localize(2680, "View Containers")),
|
|
765
765
|
access: {
|
|
766
766
|
canToggle: false
|
|
767
767
|
},
|
|
@@ -769,7 +769,7 @@ class ViewsDataRenderer extends Disposable {
|
|
|
769
769
|
});
|
|
770
770
|
( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
771
771
|
id: "views",
|
|
772
|
-
label: ( localize(
|
|
772
|
+
label: ( localize(2681, "Views")),
|
|
773
773
|
access: {
|
|
774
774
|
canToggle: false
|
|
775
775
|
},
|
|
@@ -24,8 +24,8 @@ class KeybindingsReferenceAction extends Action2 {
|
|
|
24
24
|
super({
|
|
25
25
|
id: KeybindingsReferenceAction.ID,
|
|
26
26
|
title: {
|
|
27
|
-
...( localize2(
|
|
28
|
-
mnemonicTitle: ( localize(
|
|
27
|
+
...( localize2(2811, "Keyboard Shortcuts Reference")),
|
|
28
|
+
mnemonicTitle: ( localize(2812, "&&Keyboard Shortcuts Reference"))
|
|
29
29
|
},
|
|
30
30
|
category: Categories.Help,
|
|
31
31
|
f1: true,
|
|
@@ -61,8 +61,8 @@ class OpenIntroductoryVideosUrlAction extends Action2 {
|
|
|
61
61
|
super({
|
|
62
62
|
id: OpenIntroductoryVideosUrlAction.ID,
|
|
63
63
|
title: {
|
|
64
|
-
...( localize2(
|
|
65
|
-
mnemonicTitle: ( localize(
|
|
64
|
+
...( localize2(2813, "Video Tutorials")),
|
|
65
|
+
mnemonicTitle: ( localize(2814, "&&Video Tutorials"))
|
|
66
66
|
},
|
|
67
67
|
category: Categories.Help,
|
|
68
68
|
f1: true,
|
|
@@ -92,8 +92,8 @@ class OpenTipsAndTricksUrlAction extends Action2 {
|
|
|
92
92
|
super({
|
|
93
93
|
id: OpenTipsAndTricksUrlAction.ID,
|
|
94
94
|
title: {
|
|
95
|
-
...( localize2(
|
|
96
|
-
mnemonicTitle: ( localize(
|
|
95
|
+
...( localize2(2815, "Tips and Tricks")),
|
|
96
|
+
mnemonicTitle: ( localize(2816, "Tips and Tri&&cks"))
|
|
97
97
|
},
|
|
98
98
|
category: Categories.Help,
|
|
99
99
|
f1: true,
|
|
@@ -123,8 +123,8 @@ class OpenDocumentationUrlAction extends Action2 {
|
|
|
123
123
|
super({
|
|
124
124
|
id: OpenDocumentationUrlAction.ID,
|
|
125
125
|
title: {
|
|
126
|
-
...( localize2(
|
|
127
|
-
mnemonicTitle: ( localize(
|
|
126
|
+
...( localize2(2817, "Documentation")),
|
|
127
|
+
mnemonicTitle: ( localize(2818, "&&Documentation"))
|
|
128
128
|
},
|
|
129
129
|
category: Categories.Help,
|
|
130
130
|
f1: true,
|
|
@@ -154,7 +154,7 @@ class OpenNewsletterSignupUrlAction extends Action2 {
|
|
|
154
154
|
constructor() {
|
|
155
155
|
super({
|
|
156
156
|
id: OpenNewsletterSignupUrlAction.ID,
|
|
157
|
-
title: ( localize2(
|
|
157
|
+
title: ( localize2(2819, "Signup for the VS Code Newsletter")),
|
|
158
158
|
category: Categories.Help,
|
|
159
159
|
f1: true
|
|
160
160
|
});
|
|
@@ -179,8 +179,8 @@ class OpenYouTubeUrlAction extends Action2 {
|
|
|
179
179
|
super({
|
|
180
180
|
id: OpenYouTubeUrlAction.ID,
|
|
181
181
|
title: {
|
|
182
|
-
...( localize2(
|
|
183
|
-
mnemonicTitle: ( localize(
|
|
182
|
+
...( localize2(2820, "Join Us on YouTube")),
|
|
183
|
+
mnemonicTitle: ( localize(2821, "&&Join Us on YouTube"))
|
|
184
184
|
},
|
|
185
185
|
category: Categories.Help,
|
|
186
186
|
f1: true,
|
|
@@ -210,8 +210,8 @@ class OpenRequestFeatureUrlAction extends Action2 {
|
|
|
210
210
|
super({
|
|
211
211
|
id: OpenRequestFeatureUrlAction.ID,
|
|
212
212
|
title: {
|
|
213
|
-
...( localize2(
|
|
214
|
-
mnemonicTitle: ( localize(
|
|
213
|
+
...( localize2(2822, "Search Feature Requests")),
|
|
214
|
+
mnemonicTitle: ( localize(2823, "&&Search Feature Requests"))
|
|
215
215
|
},
|
|
216
216
|
category: Categories.Help,
|
|
217
217
|
f1: true,
|
|
@@ -241,8 +241,8 @@ class OpenLicenseUrlAction extends Action2 {
|
|
|
241
241
|
super({
|
|
242
242
|
id: OpenLicenseUrlAction.ID,
|
|
243
243
|
title: {
|
|
244
|
-
...( localize2(
|
|
245
|
-
mnemonicTitle: ( localize(
|
|
244
|
+
...( localize2(2824, "View License")),
|
|
245
|
+
mnemonicTitle: ( localize(2825, "View &&License"))
|
|
246
246
|
},
|
|
247
247
|
category: Categories.Help,
|
|
248
248
|
f1: true,
|
|
@@ -278,8 +278,8 @@ class OpenPrivacyStatementUrlAction extends Action2 {
|
|
|
278
278
|
super({
|
|
279
279
|
id: OpenPrivacyStatementUrlAction.ID,
|
|
280
280
|
title: {
|
|
281
|
-
...( localize2(
|
|
282
|
-
mnemonicTitle: ( localize(
|
|
281
|
+
...( localize2(2826, "Privacy Statement")),
|
|
282
|
+
mnemonicTitle: ( localize(2827, "Privac&&y Statement"))
|
|
283
283
|
},
|
|
284
284
|
category: Categories.Help,
|
|
285
285
|
f1: true,
|
|
@@ -305,7 +305,7 @@ class GetStartedWithAccessibilityFeatures extends Action2 {
|
|
|
305
305
|
constructor() {
|
|
306
306
|
super({
|
|
307
307
|
id: GetStartedWithAccessibilityFeatures.ID,
|
|
308
|
-
title: ( localize2(
|
|
308
|
+
title: ( localize2(2828, "Get Started with Accessibility Features")),
|
|
309
309
|
category: Categories.Help,
|
|
310
310
|
f1: true,
|
|
311
311
|
menu: {
|
|
@@ -327,7 +327,7 @@ class AskVSCodeCopilot extends Action2 {
|
|
|
327
327
|
constructor() {
|
|
328
328
|
super({
|
|
329
329
|
id: AskVSCodeCopilot.ID,
|
|
330
|
-
title: ( localize2(
|
|
330
|
+
title: ( localize2(2829, "Ask @vscode")),
|
|
331
331
|
category: Categories.Help,
|
|
332
332
|
f1: true,
|
|
333
333
|
precondition: ( ContextKeyExpr.equals("chatSetupHidden", false))
|
|
@@ -345,7 +345,7 @@ class AskVSCodeCopilot extends Action2 {
|
|
|
345
345
|
MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
|
346
346
|
command: {
|
|
347
347
|
id: AskVSCodeCopilot.ID,
|
|
348
|
-
title: ( localize2(
|
|
348
|
+
title: ( localize2(2829, "Ask @vscode"))
|
|
349
349
|
},
|
|
350
350
|
order: 7,
|
|
351
351
|
group: "1_welcome",
|
|
@@ -784,13 +784,13 @@ registerAction2(class ToggleStickyScroll extends Action2 {
|
|
|
784
784
|
super({
|
|
785
785
|
id: "tree.toggleStickyScroll",
|
|
786
786
|
title: {
|
|
787
|
-
...( localize2(
|
|
788
|
-
mnemonicTitle: ( localize(
|
|
787
|
+
...( localize2(2959, "Toggle Tree Sticky Scroll")),
|
|
788
|
+
mnemonicTitle: ( localize(2960, "&&Toggle Tree Sticky Scroll"))
|
|
789
789
|
},
|
|
790
790
|
category: "View",
|
|
791
791
|
metadata: {
|
|
792
792
|
description: ( localize(
|
|
793
|
-
|
|
793
|
+
2961,
|
|
794
794
|
"Toggles Sticky Scroll widget at the top of tree structures such as the File Explorer and Debug variables View."
|
|
795
795
|
))
|
|
796
796
|
},
|
|
@@ -163,7 +163,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
163
163
|
constructor() {
|
|
164
164
|
super({
|
|
165
165
|
id: "workbench.action.navigateLeft",
|
|
166
|
-
title: ( localize2(
|
|
166
|
+
title: ( localize2(2962, "Navigate to the View on the Left")),
|
|
167
167
|
category: Categories.View,
|
|
168
168
|
f1: true
|
|
169
169
|
}, Direction.Left);
|
|
@@ -173,7 +173,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
173
173
|
constructor() {
|
|
174
174
|
super({
|
|
175
175
|
id: "workbench.action.navigateRight",
|
|
176
|
-
title: ( localize2(
|
|
176
|
+
title: ( localize2(2963, "Navigate to the View on the Right")),
|
|
177
177
|
category: Categories.View,
|
|
178
178
|
f1: true
|
|
179
179
|
}, Direction.Right);
|
|
@@ -183,7 +183,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: "workbench.action.navigateUp",
|
|
186
|
-
title: ( localize2(
|
|
186
|
+
title: ( localize2(2964, "Navigate to the View Above")),
|
|
187
187
|
category: Categories.View,
|
|
188
188
|
f1: true
|
|
189
189
|
}, Direction.Up);
|
|
@@ -193,7 +193,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
193
193
|
constructor() {
|
|
194
194
|
super({
|
|
195
195
|
id: "workbench.action.navigateDown",
|
|
196
|
-
title: ( localize2(
|
|
196
|
+
title: ( localize2(2965, "Navigate to the View Below")),
|
|
197
197
|
category: Categories.View,
|
|
198
198
|
f1: true
|
|
199
199
|
}, Direction.Down);
|
|
@@ -275,7 +275,7 @@ registerAction2(class extends BaseFocusAction {
|
|
|
275
275
|
constructor() {
|
|
276
276
|
super({
|
|
277
277
|
id: "workbench.action.focusNextPart",
|
|
278
|
-
title: ( localize2(
|
|
278
|
+
title: ( localize2(2966, "Focus Next Part")),
|
|
279
279
|
category: Categories.View,
|
|
280
280
|
f1: true,
|
|
281
281
|
keybinding: {
|
|
@@ -289,7 +289,7 @@ registerAction2(class extends BaseFocusAction {
|
|
|
289
289
|
constructor() {
|
|
290
290
|
super({
|
|
291
291
|
id: "workbench.action.focusPreviousPart",
|
|
292
|
-
title: ( localize2(
|
|
292
|
+
title: ( localize2(2967, "Focus Previous Part")),
|
|
293
293
|
category: Categories.View,
|
|
294
294
|
f1: true,
|
|
295
295
|
keybinding: {
|