@codingame/monaco-vscode-view-common-service-override 24.2.0 → 25.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 +61 -77
- 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 +169 -167
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +2 -4
- 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 +12 -12
- 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 +3 -3
- 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/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -1
- 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 +5 -5
- 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/webviewEditorInputSerializer.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +12 -4
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +9 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +12 -9
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +8 -8
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.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": "25.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "25.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -17,8 +17,6 @@ import { CustomTreeView, TreeViewPane } from '@codingame/monaco-vscode-api/vscod
|
|
|
17
17
|
import { ViewPaneContainer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
18
18
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
19
19
|
import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
20
|
-
import { ChatContextKeyExprs } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
21
|
-
import { LEGACY_AGENT_SESSIONS_VIEW_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
22
20
|
import { VIEWLET_ID as VIEWLET_ID$3 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
23
21
|
import { VIEWLET_ID as VIEWLET_ID$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/files/common/files';
|
|
24
22
|
import { VIEWLET_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/remote/browser/remoteExplorer';
|
|
@@ -33,19 +31,19 @@ const viewsContainerSchema = {
|
|
|
33
31
|
properties: {
|
|
34
32
|
id: {
|
|
35
33
|
description: ( localize(
|
|
36
|
-
|
|
34
|
+
2576,
|
|
37
35
|
"Unique id used to identify the container in which views can be contributed using 'views' contribution point"
|
|
38
36
|
)),
|
|
39
37
|
type: 'string',
|
|
40
38
|
pattern: '^[a-zA-Z0-9_-]+$'
|
|
41
39
|
},
|
|
42
40
|
title: {
|
|
43
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(2577, 'Human readable string used to render the container')),
|
|
44
42
|
type: 'string'
|
|
45
43
|
},
|
|
46
44
|
icon: {
|
|
47
45
|
description: ( localize(
|
|
48
|
-
|
|
46
|
+
2578,
|
|
49
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."
|
|
50
48
|
)),
|
|
51
49
|
type: 'string'
|
|
@@ -54,21 +52,21 @@ const viewsContainerSchema = {
|
|
|
54
52
|
required: ['id', 'title', 'icon']
|
|
55
53
|
};
|
|
56
54
|
const viewsContainersContribution = {
|
|
57
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(2579, 'Contributes views containers to the editor')),
|
|
58
56
|
type: 'object',
|
|
59
57
|
properties: {
|
|
60
58
|
'activitybar': {
|
|
61
|
-
description: ( localize(
|
|
59
|
+
description: ( localize(2580, "Contribute views containers to Activity Bar")),
|
|
62
60
|
type: 'array',
|
|
63
61
|
items: viewsContainerSchema
|
|
64
62
|
},
|
|
65
63
|
'panel': {
|
|
66
|
-
description: ( localize(
|
|
64
|
+
description: ( localize(2581, "Contribute views containers to Panel")),
|
|
67
65
|
type: 'array',
|
|
68
66
|
items: viewsContainerSchema
|
|
69
67
|
},
|
|
70
68
|
'secondarySidebar': {
|
|
71
|
-
description: ( localize(
|
|
69
|
+
description: ( localize(2582, "Contribute views containers to Secondary Side Bar")),
|
|
72
70
|
type: 'array',
|
|
73
71
|
items: viewsContainerSchema
|
|
74
72
|
}
|
|
@@ -93,7 +91,7 @@ const viewDescriptor = {
|
|
|
93
91
|
properties: {
|
|
94
92
|
type: {
|
|
95
93
|
markdownDescription: ( localize(
|
|
96
|
-
|
|
94
|
+
2583,
|
|
97
95
|
"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`."
|
|
98
96
|
)),
|
|
99
97
|
type: 'string',
|
|
@@ -102,45 +100,45 @@ const viewDescriptor = {
|
|
|
102
100
|
'webview',
|
|
103
101
|
],
|
|
104
102
|
markdownEnumDescriptions: [
|
|
105
|
-
( localize(
|
|
103
|
+
( localize(2584, "The view is backed by a `TreeView` created by `createTreeView`.")),
|
|
106
104
|
( localize(
|
|
107
|
-
|
|
105
|
+
2585,
|
|
108
106
|
"The view is backed by a `WebviewView` registered by `registerWebviewViewProvider`."
|
|
109
107
|
)),
|
|
110
108
|
]
|
|
111
109
|
},
|
|
112
110
|
id: {
|
|
113
111
|
markdownDescription: ( localize(
|
|
114
|
-
|
|
112
|
+
2586,
|
|
115
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`.'
|
|
116
114
|
)),
|
|
117
115
|
type: 'string'
|
|
118
116
|
},
|
|
119
117
|
name: {
|
|
120
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(2587, 'The human-readable name of the view. Will be shown')),
|
|
121
119
|
type: 'string'
|
|
122
120
|
},
|
|
123
121
|
when: {
|
|
124
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(2588, 'Condition which must be true to show this view')),
|
|
125
123
|
type: 'string'
|
|
126
124
|
},
|
|
127
125
|
icon: {
|
|
128
126
|
description: ( localize(
|
|
129
|
-
|
|
127
|
+
2589,
|
|
130
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."
|
|
131
129
|
)),
|
|
132
130
|
type: 'string'
|
|
133
131
|
},
|
|
134
132
|
contextualTitle: {
|
|
135
133
|
description: ( localize(
|
|
136
|
-
|
|
134
|
+
2590,
|
|
137
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."
|
|
138
136
|
)),
|
|
139
137
|
type: 'string'
|
|
140
138
|
},
|
|
141
139
|
visibility: {
|
|
142
140
|
description: ( localize(
|
|
143
|
-
|
|
141
|
+
2591,
|
|
144
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."
|
|
145
143
|
)),
|
|
146
144
|
type: 'string',
|
|
@@ -152,27 +150,27 @@ const viewDescriptor = {
|
|
|
152
150
|
default: 'visible',
|
|
153
151
|
enumDescriptions: [
|
|
154
152
|
( localize(
|
|
155
|
-
|
|
153
|
+
2592,
|
|
156
154
|
"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`."
|
|
157
155
|
)),
|
|
158
156
|
( localize(
|
|
159
|
-
|
|
157
|
+
2593,
|
|
160
158
|
"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."
|
|
161
159
|
)),
|
|
162
|
-
( localize(
|
|
160
|
+
( localize(2594, "The view will show in the view container, but will be collapsed."))
|
|
163
161
|
]
|
|
164
162
|
},
|
|
165
163
|
initialSize: {
|
|
166
164
|
type: 'number',
|
|
167
165
|
description: ( localize(
|
|
168
|
-
|
|
166
|
+
2595,
|
|
169
167
|
"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."
|
|
170
168
|
)),
|
|
171
169
|
},
|
|
172
170
|
accessibilityHelpContent: {
|
|
173
171
|
type: 'string',
|
|
174
172
|
markdownDescription: ( localize(
|
|
175
|
-
|
|
173
|
+
2596,
|
|
176
174
|
"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."
|
|
177
175
|
))
|
|
178
176
|
}
|
|
@@ -184,25 +182,25 @@ const remoteViewDescriptor = {
|
|
|
184
182
|
properties: {
|
|
185
183
|
id: {
|
|
186
184
|
description: ( localize(
|
|
187
|
-
|
|
185
|
+
2586,
|
|
188
186
|
'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`.'
|
|
189
187
|
)),
|
|
190
188
|
type: 'string'
|
|
191
189
|
},
|
|
192
190
|
name: {
|
|
193
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(2587, 'The human-readable name of the view. Will be shown')),
|
|
194
192
|
type: 'string'
|
|
195
193
|
},
|
|
196
194
|
when: {
|
|
197
|
-
description: ( localize(
|
|
195
|
+
description: ( localize(2588, 'Condition which must be true to show this view')),
|
|
198
196
|
type: 'string'
|
|
199
197
|
},
|
|
200
198
|
group: {
|
|
201
|
-
description: ( localize(
|
|
199
|
+
description: ( localize(2597, 'Nested group in the viewlet')),
|
|
202
200
|
type: 'string'
|
|
203
201
|
},
|
|
204
202
|
remoteName: {
|
|
205
|
-
description: ( localize(
|
|
203
|
+
description: ( localize(2598, 'The name of the remote type associated with this view')),
|
|
206
204
|
type: ['string', 'array'],
|
|
207
205
|
items: {
|
|
208
206
|
type: 'string'
|
|
@@ -211,54 +209,45 @@ const remoteViewDescriptor = {
|
|
|
211
209
|
}
|
|
212
210
|
};
|
|
213
211
|
const viewsContribution = {
|
|
214
|
-
description: ( localize(
|
|
212
|
+
description: ( localize(2599, "Contributes views to the editor")),
|
|
215
213
|
type: 'object',
|
|
216
214
|
properties: {
|
|
217
215
|
'explorer': {
|
|
218
|
-
description: ( localize(
|
|
216
|
+
description: ( localize(2600, "Contributes views to Explorer container in the Activity bar")),
|
|
219
217
|
type: 'array',
|
|
220
218
|
items: viewDescriptor,
|
|
221
219
|
default: []
|
|
222
220
|
},
|
|
223
221
|
'debug': {
|
|
224
|
-
description: ( localize(
|
|
222
|
+
description: ( localize(2601, "Contributes views to Debug container in the Activity bar")),
|
|
225
223
|
type: 'array',
|
|
226
224
|
items: viewDescriptor,
|
|
227
225
|
default: []
|
|
228
226
|
},
|
|
229
227
|
'scm': {
|
|
230
|
-
description: ( localize(
|
|
228
|
+
description: ( localize(2602, "Contributes views to SCM container in the Activity bar")),
|
|
231
229
|
type: 'array',
|
|
232
230
|
items: viewDescriptor,
|
|
233
231
|
default: []
|
|
234
232
|
},
|
|
235
233
|
'test': {
|
|
236
|
-
description: ( localize(
|
|
234
|
+
description: ( localize(2603, "Contributes views to Test container in the Activity bar")),
|
|
237
235
|
type: 'array',
|
|
238
236
|
items: viewDescriptor,
|
|
239
237
|
default: []
|
|
240
238
|
},
|
|
241
239
|
'remote': {
|
|
242
240
|
description: ( localize(
|
|
243
|
-
|
|
241
|
+
2604,
|
|
244
242
|
"Contributes views to Remote container in the Activity bar. To contribute to this container, the 'contribViewsRemote' API proposal must be enabled."
|
|
245
243
|
)),
|
|
246
244
|
type: 'array',
|
|
247
245
|
items: remoteViewDescriptor,
|
|
248
246
|
default: []
|
|
249
247
|
},
|
|
250
|
-
'agentSessions': {
|
|
251
|
-
description: ( localize(
|
|
252
|
-
2586,
|
|
253
|
-
"Contributes views to Agent Sessions container in the Activity bar. To contribute to this container, the 'chatSessionsProvider' API proposal must be enabled."
|
|
254
|
-
)),
|
|
255
|
-
type: 'array',
|
|
256
|
-
items: viewDescriptor,
|
|
257
|
-
default: []
|
|
258
|
-
}
|
|
259
248
|
},
|
|
260
249
|
additionalProperties: {
|
|
261
|
-
description: ( localize(
|
|
250
|
+
description: ( localize(2605, "Contributes views to contributed views container")),
|
|
262
251
|
type: 'array',
|
|
263
252
|
items: viewDescriptor,
|
|
264
253
|
default: []
|
|
@@ -344,13 +333,13 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
344
333
|
}
|
|
345
334
|
isValidViewsContainer(viewsContainersDescriptors, collector) {
|
|
346
335
|
if (!Array.isArray(viewsContainersDescriptors)) {
|
|
347
|
-
collector.error(( localize(
|
|
336
|
+
collector.error(( localize(2606, "views containers must be an array")));
|
|
348
337
|
return false;
|
|
349
338
|
}
|
|
350
339
|
for (const descriptor of viewsContainersDescriptors) {
|
|
351
340
|
if (typeof descriptor.id !== 'string' && isFalsyOrWhitespace(descriptor.id)) {
|
|
352
341
|
collector.error(( localize(
|
|
353
|
-
|
|
342
|
+
2607,
|
|
354
343
|
"property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
|
|
355
344
|
'id'
|
|
356
345
|
)));
|
|
@@ -358,23 +347,23 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
358
347
|
}
|
|
359
348
|
if (!(/^[a-z0-9_-]+$/i.test(descriptor.id))) {
|
|
360
349
|
collector.error(( localize(
|
|
361
|
-
|
|
350
|
+
2607,
|
|
362
351
|
"property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
|
|
363
352
|
'id'
|
|
364
353
|
)));
|
|
365
354
|
return false;
|
|
366
355
|
}
|
|
367
356
|
if (typeof descriptor.title !== 'string') {
|
|
368
|
-
collector.error(( localize(
|
|
357
|
+
collector.error(( localize(2608, "property `{0}` is mandatory and must be of type `string`", 'title')));
|
|
369
358
|
return false;
|
|
370
359
|
}
|
|
371
360
|
if (typeof descriptor.icon !== 'string') {
|
|
372
|
-
collector.error(( localize(
|
|
361
|
+
collector.error(( localize(2608, "property `{0}` is mandatory and must be of type `string`", 'icon')));
|
|
373
362
|
return false;
|
|
374
363
|
}
|
|
375
364
|
if (isFalsyOrWhitespace(descriptor.title)) {
|
|
376
365
|
collector.warn(( localize(
|
|
377
|
-
|
|
366
|
+
2609,
|
|
378
367
|
"property `{0}` is mandatory and must be of type `string` with non-empty value",
|
|
379
368
|
'title'
|
|
380
369
|
)));
|
|
@@ -444,7 +433,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
444
433
|
}
|
|
445
434
|
if (key === 'remote' && !isProposedApiEnabled(extension.description, 'contribViewsRemote')) {
|
|
446
435
|
collector.warn(( localize(
|
|
447
|
-
|
|
436
|
+
2610,
|
|
448
437
|
"View container '{0}' requires 'enabledApiProposals: [\"contribViewsRemote\"]' to be added to 'Remote'.",
|
|
449
438
|
key
|
|
450
439
|
)));
|
|
@@ -452,7 +441,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
452
441
|
}
|
|
453
442
|
if (key === 'agentSessions' && !isProposedApiEnabled(extension.description, 'chatSessionsProvider')) {
|
|
454
443
|
collector.warn(( localize(
|
|
455
|
-
|
|
444
|
+
2611,
|
|
456
445
|
"View container '{0}' requires 'enabledApiProposals: [\"chatSessionsProvider\"]'.",
|
|
457
446
|
key
|
|
458
447
|
)));
|
|
@@ -461,7 +450,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
461
450
|
const viewContainer = this.getViewContainer(key);
|
|
462
451
|
if (!viewContainer) {
|
|
463
452
|
collector.warn(( localize(
|
|
464
|
-
|
|
453
|
+
2612,
|
|
465
454
|
"View container '{0}' does not exist and all views registered to it will be added to 'Explorer'.",
|
|
466
455
|
key
|
|
467
456
|
)));
|
|
@@ -471,11 +460,11 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
471
460
|
for (let index = 0; index < value.length; index++) {
|
|
472
461
|
const item = value[index];
|
|
473
462
|
if (( viewIds.has(item.id))) {
|
|
474
|
-
collector.error(( localize(
|
|
463
|
+
collector.error(( localize(2613, "Cannot register multiple views with same id `{0}`", item.id)));
|
|
475
464
|
continue;
|
|
476
465
|
}
|
|
477
466
|
if (this.viewsRegistry.getView(item.id) !== null) {
|
|
478
|
-
collector.error(( localize(
|
|
467
|
+
collector.error(( localize(2614, "A view with id `{0}` is already registered.", item.id)));
|
|
479
468
|
continue;
|
|
480
469
|
}
|
|
481
470
|
const order = ExtensionIdentifier.equals(extension.description.identifier, container.extensionId)
|
|
@@ -490,7 +479,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
490
479
|
const initialVisibility = this.convertInitialVisibility(item.visibility);
|
|
491
480
|
const type = this.getViewType(item.type);
|
|
492
481
|
if (!type) {
|
|
493
|
-
collector.error(( localize(
|
|
482
|
+
collector.error(( localize(2615, "Unknown view type `{0}`.", item.type)));
|
|
494
483
|
continue;
|
|
495
484
|
}
|
|
496
485
|
let weight = undefined;
|
|
@@ -506,16 +495,12 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
506
495
|
if (isProposedApiEnabled(extension.description, 'contribAccessibilityHelpContent') && item.accessibilityHelpContent) {
|
|
507
496
|
accessibilityHelpContent = ( new MarkdownString(item.accessibilityHelpContent));
|
|
508
497
|
}
|
|
509
|
-
let when = ContextKeyExpr.deserialize(item.when);
|
|
510
|
-
if (key === 'agentSessions') {
|
|
511
|
-
when = ( ContextKeyExpr.and(when, ChatContextKeyExprs.agentViewWhen));
|
|
512
|
-
}
|
|
513
498
|
const viewDescriptor = {
|
|
514
499
|
type: type,
|
|
515
500
|
ctorDescriptor: type === ViewType.Tree ? ( new SyncDescriptor(TreeViewPane)) : ( new SyncDescriptor(WebviewViewPane)),
|
|
516
501
|
id: item.id,
|
|
517
502
|
name: { value: item.name, original: item.name },
|
|
518
|
-
when,
|
|
503
|
+
when: ContextKeyExpr.deserialize(item.when),
|
|
519
504
|
containerIcon: icon || viewContainer?.icon,
|
|
520
505
|
containerTitle: item.contextualTitle || (viewContainer && (typeof viewContainer.title === 'string' ? viewContainer.title : viewContainer.title.value)),
|
|
521
506
|
canToggleVisibility: true,
|
|
@@ -576,29 +561,29 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
576
561
|
}
|
|
577
562
|
isValidViewDescriptors(viewDescriptors, collector) {
|
|
578
563
|
if (!Array.isArray(viewDescriptors)) {
|
|
579
|
-
collector.error(( localize(
|
|
564
|
+
collector.error(( localize(2616, "views must be an array")));
|
|
580
565
|
return false;
|
|
581
566
|
}
|
|
582
567
|
for (const descriptor of viewDescriptors) {
|
|
583
568
|
if (typeof descriptor.id !== 'string') {
|
|
584
|
-
collector.error(( localize(
|
|
569
|
+
collector.error(( localize(2608, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
585
570
|
return false;
|
|
586
571
|
}
|
|
587
572
|
if (typeof descriptor.name !== 'string') {
|
|
588
|
-
collector.error(( localize(
|
|
573
|
+
collector.error(( localize(2608, "property `{0}` is mandatory and must be of type `string`", 'name')));
|
|
589
574
|
return false;
|
|
590
575
|
}
|
|
591
576
|
if (descriptor.when && typeof descriptor.when !== 'string') {
|
|
592
|
-
collector.error(( localize(
|
|
577
|
+
collector.error(( localize(2617, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
593
578
|
return false;
|
|
594
579
|
}
|
|
595
580
|
if (descriptor.icon && typeof descriptor.icon !== 'string') {
|
|
596
|
-
collector.error(( localize(
|
|
581
|
+
collector.error(( localize(2617, "property `{0}` can be omitted or must be of type `string`", 'icon')));
|
|
597
582
|
return false;
|
|
598
583
|
}
|
|
599
584
|
if (descriptor.contextualTitle && typeof descriptor.contextualTitle !== 'string') {
|
|
600
585
|
collector.error(( localize(
|
|
601
|
-
|
|
586
|
+
2617,
|
|
602
587
|
"property `{0}` can be omitted or must be of type `string`",
|
|
603
588
|
'contextualTitle'
|
|
604
589
|
)));
|
|
@@ -606,7 +591,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
606
591
|
}
|
|
607
592
|
if (descriptor.visibility && !this.convertInitialVisibility(descriptor.visibility)) {
|
|
608
593
|
collector.error(( localize(
|
|
609
|
-
|
|
594
|
+
2618,
|
|
610
595
|
"property `{0}` can be omitted or must be one of {1}",
|
|
611
596
|
'visibility',
|
|
612
597
|
( Object.values(InitialVisibility)).join(', ')
|
|
@@ -622,7 +607,6 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
622
607
|
case 'debug': return this.viewContainersRegistry.get(VIEWLET_ID$3);
|
|
623
608
|
case 'scm': return this.viewContainersRegistry.get(VIEWLET_ID$2);
|
|
624
609
|
case 'remote': return this.viewContainersRegistry.get(VIEWLET_ID);
|
|
625
|
-
case 'agentSessions': return this.viewContainersRegistry.get(LEGACY_AGENT_SESSIONS_VIEW_ID);
|
|
626
610
|
default: return this.viewContainersRegistry.get(`workbench.view.extension.${value}`);
|
|
627
611
|
}
|
|
628
612
|
}
|
|
@@ -659,9 +643,9 @@ class ViewContainersDataRenderer extends Disposable {
|
|
|
659
643
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
660
644
|
}
|
|
661
645
|
const headers = [
|
|
662
|
-
( localize(
|
|
663
|
-
( localize(
|
|
664
|
-
( localize(
|
|
646
|
+
( localize(2619, "ID")),
|
|
647
|
+
( localize(2620, "Title")),
|
|
648
|
+
( localize(2621, "Where")),
|
|
665
649
|
];
|
|
666
650
|
const rows = ( viewContainers
|
|
667
651
|
.sort((a, b) => a.id.localeCompare(b.id))
|
|
@@ -700,9 +684,9 @@ class ViewsDataRenderer extends Disposable {
|
|
|
700
684
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
701
685
|
}
|
|
702
686
|
const headers = [
|
|
703
|
-
( localize(
|
|
704
|
-
( localize(
|
|
705
|
-
( localize(
|
|
687
|
+
( localize(2622, "ID")),
|
|
688
|
+
( localize(2623, "Name")),
|
|
689
|
+
( localize(2621, "Where")),
|
|
706
690
|
];
|
|
707
691
|
const rows = ( views
|
|
708
692
|
.sort((a, b) => a.id.localeCompare(b.id))
|
|
@@ -724,7 +708,7 @@ class ViewsDataRenderer extends Disposable {
|
|
|
724
708
|
}
|
|
725
709
|
( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
726
710
|
id: 'viewsContainers',
|
|
727
|
-
label: ( localize(
|
|
711
|
+
label: ( localize(2624, "View Containers")),
|
|
728
712
|
access: {
|
|
729
713
|
canToggle: false
|
|
730
714
|
},
|
|
@@ -732,7 +716,7 @@ class ViewsDataRenderer extends Disposable {
|
|
|
732
716
|
});
|
|
733
717
|
( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
734
718
|
id: 'views',
|
|
735
|
-
label: ( localize(
|
|
719
|
+
label: ( localize(2625, "Views")),
|
|
736
720
|
access: {
|
|
737
721
|
canToggle: false
|
|
738
722
|
},
|
|
@@ -20,8 +20,8 @@ class KeybindingsReferenceAction extends Action2 {
|
|
|
20
20
|
super({
|
|
21
21
|
id: KeybindingsReferenceAction.ID,
|
|
22
22
|
title: {
|
|
23
|
-
...( localize2(
|
|
24
|
-
mnemonicTitle: ( localize(
|
|
23
|
+
...( localize2(2755, "Keyboard Shortcuts Reference")),
|
|
24
|
+
mnemonicTitle: ( localize(2756, "&&Keyboard Shortcuts Reference")),
|
|
25
25
|
},
|
|
26
26
|
category: Categories.Help,
|
|
27
27
|
f1: true,
|
|
@@ -53,8 +53,8 @@ class OpenIntroductoryVideosUrlAction extends Action2 {
|
|
|
53
53
|
super({
|
|
54
54
|
id: OpenIntroductoryVideosUrlAction.ID,
|
|
55
55
|
title: {
|
|
56
|
-
...( localize2(
|
|
57
|
-
mnemonicTitle: ( localize(
|
|
56
|
+
...( localize2(2757, "Video Tutorials")),
|
|
57
|
+
mnemonicTitle: ( localize(2758, "&&Video Tutorials")),
|
|
58
58
|
},
|
|
59
59
|
category: Categories.Help,
|
|
60
60
|
f1: true,
|
|
@@ -80,8 +80,8 @@ class OpenTipsAndTricksUrlAction extends Action2 {
|
|
|
80
80
|
super({
|
|
81
81
|
id: OpenTipsAndTricksUrlAction.ID,
|
|
82
82
|
title: {
|
|
83
|
-
...( localize2(
|
|
84
|
-
mnemonicTitle: ( localize(
|
|
83
|
+
...( localize2(2759, "Tips and Tricks")),
|
|
84
|
+
mnemonicTitle: ( localize(2760, "Tips and Tri&&cks")),
|
|
85
85
|
},
|
|
86
86
|
category: Categories.Help,
|
|
87
87
|
f1: true,
|
|
@@ -107,8 +107,8 @@ class OpenDocumentationUrlAction extends Action2 {
|
|
|
107
107
|
super({
|
|
108
108
|
id: OpenDocumentationUrlAction.ID,
|
|
109
109
|
title: {
|
|
110
|
-
...( localize2(
|
|
111
|
-
mnemonicTitle: ( localize(
|
|
110
|
+
...( localize2(2761, "Documentation")),
|
|
111
|
+
mnemonicTitle: ( localize(2762, "&&Documentation")),
|
|
112
112
|
},
|
|
113
113
|
category: Categories.Help,
|
|
114
114
|
f1: true,
|
|
@@ -134,7 +134,7 @@ class OpenNewsletterSignupUrlAction extends Action2 {
|
|
|
134
134
|
constructor() {
|
|
135
135
|
super({
|
|
136
136
|
id: OpenNewsletterSignupUrlAction.ID,
|
|
137
|
-
title: ( localize2(
|
|
137
|
+
title: ( localize2(2763, 'Signup for the VS Code Newsletter')),
|
|
138
138
|
category: Categories.Help,
|
|
139
139
|
f1: true
|
|
140
140
|
});
|
|
@@ -155,8 +155,8 @@ class OpenYouTubeUrlAction extends Action2 {
|
|
|
155
155
|
super({
|
|
156
156
|
id: OpenYouTubeUrlAction.ID,
|
|
157
157
|
title: {
|
|
158
|
-
...( localize2(
|
|
159
|
-
mnemonicTitle: ( localize(
|
|
158
|
+
...( localize2(2764, "Join Us on YouTube")),
|
|
159
|
+
mnemonicTitle: ( localize(2765, "&&Join Us on YouTube")),
|
|
160
160
|
},
|
|
161
161
|
category: Categories.Help,
|
|
162
162
|
f1: true,
|
|
@@ -182,8 +182,8 @@ class OpenRequestFeatureUrlAction extends Action2 {
|
|
|
182
182
|
super({
|
|
183
183
|
id: OpenRequestFeatureUrlAction.ID,
|
|
184
184
|
title: {
|
|
185
|
-
...( localize2(
|
|
186
|
-
mnemonicTitle: ( localize(
|
|
185
|
+
...( localize2(2766, "Search Feature Requests")),
|
|
186
|
+
mnemonicTitle: ( localize(2767, "&&Search Feature Requests")),
|
|
187
187
|
},
|
|
188
188
|
category: Categories.Help,
|
|
189
189
|
f1: true,
|
|
@@ -209,8 +209,8 @@ class OpenLicenseUrlAction extends Action2 {
|
|
|
209
209
|
super({
|
|
210
210
|
id: OpenLicenseUrlAction.ID,
|
|
211
211
|
title: {
|
|
212
|
-
...( localize2(
|
|
213
|
-
mnemonicTitle: ( localize(
|
|
212
|
+
...( localize2(2768, "View License")),
|
|
213
|
+
mnemonicTitle: ( localize(2769, "View &&License")),
|
|
214
214
|
},
|
|
215
215
|
category: Categories.Help,
|
|
216
216
|
f1: true,
|
|
@@ -243,8 +243,8 @@ class OpenPrivacyStatementUrlAction extends Action2 {
|
|
|
243
243
|
super({
|
|
244
244
|
id: OpenPrivacyStatementUrlAction.ID,
|
|
245
245
|
title: {
|
|
246
|
-
...( localize2(
|
|
247
|
-
mnemonicTitle: ( localize(
|
|
246
|
+
...( localize2(2770, "Privacy Statement")),
|
|
247
|
+
mnemonicTitle: ( localize(2771, "Privac&&y Statement")),
|
|
248
248
|
},
|
|
249
249
|
category: Categories.Help,
|
|
250
250
|
f1: true,
|
|
@@ -268,7 +268,7 @@ class GetStartedWithAccessibilityFeatures extends Action2 {
|
|
|
268
268
|
constructor() {
|
|
269
269
|
super({
|
|
270
270
|
id: GetStartedWithAccessibilityFeatures.ID,
|
|
271
|
-
title: ( localize2(
|
|
271
|
+
title: ( localize2(2772, 'Get Started with Accessibility Features')),
|
|
272
272
|
category: Categories.Help,
|
|
273
273
|
f1: true,
|
|
274
274
|
menu: {
|
|
@@ -288,7 +288,7 @@ class AskVSCodeCopilot extends Action2 {
|
|
|
288
288
|
constructor() {
|
|
289
289
|
super({
|
|
290
290
|
id: AskVSCodeCopilot.ID,
|
|
291
|
-
title: ( localize2(
|
|
291
|
+
title: ( localize2(2773, 'Ask @vscode')),
|
|
292
292
|
category: Categories.Help,
|
|
293
293
|
f1: true,
|
|
294
294
|
precondition: ( ContextKeyExpr.equals('chatSetupHidden', false))
|
|
@@ -302,7 +302,7 @@ class AskVSCodeCopilot extends Action2 {
|
|
|
302
302
|
MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
|
303
303
|
command: {
|
|
304
304
|
id: AskVSCodeCopilot.ID,
|
|
305
|
-
title: ( localize2(
|
|
305
|
+
title: ( localize2(2773, 'Ask @vscode')),
|
|
306
306
|
},
|
|
307
307
|
order: 7,
|
|
308
308
|
group: '1_welcome',
|
|
@@ -782,12 +782,12 @@ registerAction2(class ToggleStickyScroll extends Action2 {
|
|
|
782
782
|
super({
|
|
783
783
|
id: 'tree.toggleStickyScroll',
|
|
784
784
|
title: {
|
|
785
|
-
...( localize2(
|
|
786
|
-
mnemonicTitle: ( localize(
|
|
785
|
+
...( localize2(2903, "Toggle Tree Sticky Scroll")),
|
|
786
|
+
mnemonicTitle: ( localize(2904, "&&Toggle Tree Sticky Scroll")),
|
|
787
787
|
},
|
|
788
788
|
category: 'View',
|
|
789
789
|
metadata: { description: ( localize(
|
|
790
|
-
|
|
790
|
+
2905,
|
|
791
791
|
"Toggles Sticky Scroll widget at the top of tree structures such as the File Explorer and Debug variables View."
|
|
792
792
|
)) },
|
|
793
793
|
f1: true
|