@codingame/monaco-vscode-view-common-service-override 23.3.0 → 24.1.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/index.js +22 -22
- package/package.json +3 -41
- package/service-override/tools/editorAssets.js +1 -1
- package/service-override/vs/workbench/contrib/webview/browser/pre/index.html +2 -2
- package/service-override/vs/workbench/contrib/webview/browser/pre/service-worker.js +1 -1
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +68 -68
- 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 +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +181 -181
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -9
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +3 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +6 -6
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +4 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +2 -2
- 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/externalUriOpener/common/externalUriOpener.contribution.js +2 -2
- 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.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +32 -32
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +15 -15
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +7 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +14 -14
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/scrollLocking/browser/scrollLocking.js +9 -9
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +11 -11
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +6 -6
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +4 -4
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +8 -8
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +6 -6
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +10 -10
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +23 -34
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css +4 -4
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +11 -11
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +2 -2
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +2 -2
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +1 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -6
|
@@ -12,16 +12,16 @@ import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
12
12
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
13
13
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
14
14
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
15
|
-
import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-
|
|
16
|
-
import { CustomTreeView, TreeViewPane } from '@codingame/monaco-vscode-
|
|
17
|
-
import { ViewPaneContainer } from '@codingame/monaco-vscode-
|
|
15
|
+
import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/panecomposite';
|
|
16
|
+
import { CustomTreeView, TreeViewPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/treeView';
|
|
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
20
|
import { ChatContextKeyExprs } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
21
|
-
import {
|
|
21
|
+
import { LEGACY_AGENT_SESSIONS_VIEW_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
22
22
|
import { VIEWLET_ID as VIEWLET_ID$3 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
23
|
-
import { VIEWLET_ID as VIEWLET_ID$1 } from '@codingame/monaco-vscode-
|
|
24
|
-
import { VIEWLET_ID } from '@codingame/monaco-vscode-
|
|
23
|
+
import { VIEWLET_ID as VIEWLET_ID$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/files/common/files';
|
|
24
|
+
import { VIEWLET_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/remote/browser/remoteExplorer';
|
|
25
25
|
import { VIEWLET_ID as VIEWLET_ID$2 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm';
|
|
26
26
|
import { WebviewViewPane } from '../../contrib/webviewView/browser/webviewViewPane.js';
|
|
27
27
|
import { Extensions as Extensions$2 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
|
|
@@ -33,19 +33,19 @@ const viewsContainerSchema = {
|
|
|
33
33
|
properties: {
|
|
34
34
|
id: {
|
|
35
35
|
description: ( localize(
|
|
36
|
-
|
|
36
|
+
2557,
|
|
37
37
|
"Unique id used to identify the container in which views can be contributed using 'views' contribution point"
|
|
38
38
|
)),
|
|
39
39
|
type: 'string',
|
|
40
40
|
pattern: '^[a-zA-Z0-9_-]+$'
|
|
41
41
|
},
|
|
42
42
|
title: {
|
|
43
|
-
description: ( localize(
|
|
43
|
+
description: ( localize(2558, 'Human readable string used to render the container')),
|
|
44
44
|
type: 'string'
|
|
45
45
|
},
|
|
46
46
|
icon: {
|
|
47
47
|
description: ( localize(
|
|
48
|
-
|
|
48
|
+
2559,
|
|
49
49
|
"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
50
|
)),
|
|
51
51
|
type: 'string'
|
|
@@ -54,21 +54,21 @@ const viewsContainerSchema = {
|
|
|
54
54
|
required: ['id', 'title', 'icon']
|
|
55
55
|
};
|
|
56
56
|
const viewsContainersContribution = {
|
|
57
|
-
description: ( localize(
|
|
57
|
+
description: ( localize(2560, 'Contributes views containers to the editor')),
|
|
58
58
|
type: 'object',
|
|
59
59
|
properties: {
|
|
60
60
|
'activitybar': {
|
|
61
|
-
description: ( localize(
|
|
61
|
+
description: ( localize(2561, "Contribute views containers to Activity Bar")),
|
|
62
62
|
type: 'array',
|
|
63
63
|
items: viewsContainerSchema
|
|
64
64
|
},
|
|
65
65
|
'panel': {
|
|
66
|
-
description: ( localize(
|
|
66
|
+
description: ( localize(2562, "Contribute views containers to Panel")),
|
|
67
67
|
type: 'array',
|
|
68
68
|
items: viewsContainerSchema
|
|
69
69
|
},
|
|
70
70
|
'secondarySidebar': {
|
|
71
|
-
description: ( localize(
|
|
71
|
+
description: ( localize(2563, "Contribute views containers to Secondary Side Bar")),
|
|
72
72
|
type: 'array',
|
|
73
73
|
items: viewsContainerSchema
|
|
74
74
|
}
|
|
@@ -93,7 +93,7 @@ const viewDescriptor = {
|
|
|
93
93
|
properties: {
|
|
94
94
|
type: {
|
|
95
95
|
markdownDescription: ( localize(
|
|
96
|
-
|
|
96
|
+
2564,
|
|
97
97
|
"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
98
|
)),
|
|
99
99
|
type: 'string',
|
|
@@ -102,45 +102,45 @@ const viewDescriptor = {
|
|
|
102
102
|
'webview',
|
|
103
103
|
],
|
|
104
104
|
markdownEnumDescriptions: [
|
|
105
|
-
( localize(
|
|
105
|
+
( localize(2565, "The view is backed by a `TreeView` created by `createTreeView`.")),
|
|
106
106
|
( localize(
|
|
107
|
-
|
|
107
|
+
2566,
|
|
108
108
|
"The view is backed by a `WebviewView` registered by `registerWebviewViewProvider`."
|
|
109
109
|
)),
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
112
|
id: {
|
|
113
113
|
markdownDescription: ( localize(
|
|
114
|
-
|
|
114
|
+
2567,
|
|
115
115
|
'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
116
|
)),
|
|
117
117
|
type: 'string'
|
|
118
118
|
},
|
|
119
119
|
name: {
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(2568, 'The human-readable name of the view. Will be shown')),
|
|
121
121
|
type: 'string'
|
|
122
122
|
},
|
|
123
123
|
when: {
|
|
124
|
-
description: ( localize(
|
|
124
|
+
description: ( localize(2569, 'Condition which must be true to show this view')),
|
|
125
125
|
type: 'string'
|
|
126
126
|
},
|
|
127
127
|
icon: {
|
|
128
128
|
description: ( localize(
|
|
129
|
-
|
|
129
|
+
2570,
|
|
130
130
|
"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
131
|
)),
|
|
132
132
|
type: 'string'
|
|
133
133
|
},
|
|
134
134
|
contextualTitle: {
|
|
135
135
|
description: ( localize(
|
|
136
|
-
|
|
136
|
+
2571,
|
|
137
137
|
"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
138
|
)),
|
|
139
139
|
type: 'string'
|
|
140
140
|
},
|
|
141
141
|
visibility: {
|
|
142
142
|
description: ( localize(
|
|
143
|
-
|
|
143
|
+
2572,
|
|
144
144
|
"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
145
|
)),
|
|
146
146
|
type: 'string',
|
|
@@ -152,27 +152,27 @@ const viewDescriptor = {
|
|
|
152
152
|
default: 'visible',
|
|
153
153
|
enumDescriptions: [
|
|
154
154
|
( localize(
|
|
155
|
-
|
|
155
|
+
2573,
|
|
156
156
|
"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
157
|
)),
|
|
158
158
|
( localize(
|
|
159
|
-
|
|
159
|
+
2574,
|
|
160
160
|
"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
161
|
)),
|
|
162
|
-
( localize(
|
|
162
|
+
( localize(2575, "The view will show in the view container, but will be collapsed."))
|
|
163
163
|
]
|
|
164
164
|
},
|
|
165
165
|
initialSize: {
|
|
166
166
|
type: 'number',
|
|
167
167
|
description: ( localize(
|
|
168
|
-
|
|
168
|
+
2576,
|
|
169
169
|
"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
170
|
)),
|
|
171
171
|
},
|
|
172
172
|
accessibilityHelpContent: {
|
|
173
173
|
type: 'string',
|
|
174
174
|
markdownDescription: ( localize(
|
|
175
|
-
|
|
175
|
+
2577,
|
|
176
176
|
"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
177
|
))
|
|
178
178
|
}
|
|
@@ -184,25 +184,25 @@ const remoteViewDescriptor = {
|
|
|
184
184
|
properties: {
|
|
185
185
|
id: {
|
|
186
186
|
description: ( localize(
|
|
187
|
-
|
|
187
|
+
2567,
|
|
188
188
|
'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
189
|
)),
|
|
190
190
|
type: 'string'
|
|
191
191
|
},
|
|
192
192
|
name: {
|
|
193
|
-
description: ( localize(
|
|
193
|
+
description: ( localize(2568, 'The human-readable name of the view. Will be shown')),
|
|
194
194
|
type: 'string'
|
|
195
195
|
},
|
|
196
196
|
when: {
|
|
197
|
-
description: ( localize(
|
|
197
|
+
description: ( localize(2569, 'Condition which must be true to show this view')),
|
|
198
198
|
type: 'string'
|
|
199
199
|
},
|
|
200
200
|
group: {
|
|
201
|
-
description: ( localize(
|
|
201
|
+
description: ( localize(2578, 'Nested group in the viewlet')),
|
|
202
202
|
type: 'string'
|
|
203
203
|
},
|
|
204
204
|
remoteName: {
|
|
205
|
-
description: ( localize(
|
|
205
|
+
description: ( localize(2579, 'The name of the remote type associated with this view')),
|
|
206
206
|
type: ['string', 'array'],
|
|
207
207
|
items: {
|
|
208
208
|
type: 'string'
|
|
@@ -211,36 +211,36 @@ const remoteViewDescriptor = {
|
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
const viewsContribution = {
|
|
214
|
-
description: ( localize(
|
|
214
|
+
description: ( localize(2580, "Contributes views to the editor")),
|
|
215
215
|
type: 'object',
|
|
216
216
|
properties: {
|
|
217
217
|
'explorer': {
|
|
218
|
-
description: ( localize(
|
|
218
|
+
description: ( localize(2581, "Contributes views to Explorer container in the Activity bar")),
|
|
219
219
|
type: 'array',
|
|
220
220
|
items: viewDescriptor,
|
|
221
221
|
default: []
|
|
222
222
|
},
|
|
223
223
|
'debug': {
|
|
224
|
-
description: ( localize(
|
|
224
|
+
description: ( localize(2582, "Contributes views to Debug container in the Activity bar")),
|
|
225
225
|
type: 'array',
|
|
226
226
|
items: viewDescriptor,
|
|
227
227
|
default: []
|
|
228
228
|
},
|
|
229
229
|
'scm': {
|
|
230
|
-
description: ( localize(
|
|
230
|
+
description: ( localize(2583, "Contributes views to SCM container in the Activity bar")),
|
|
231
231
|
type: 'array',
|
|
232
232
|
items: viewDescriptor,
|
|
233
233
|
default: []
|
|
234
234
|
},
|
|
235
235
|
'test': {
|
|
236
|
-
description: ( localize(
|
|
236
|
+
description: ( localize(2584, "Contributes views to Test container in the Activity bar")),
|
|
237
237
|
type: 'array',
|
|
238
238
|
items: viewDescriptor,
|
|
239
239
|
default: []
|
|
240
240
|
},
|
|
241
241
|
'remote': {
|
|
242
242
|
description: ( localize(
|
|
243
|
-
|
|
243
|
+
2585,
|
|
244
244
|
"Contributes views to Remote container in the Activity bar. To contribute to this container, the 'contribViewsRemote' API proposal must be enabled."
|
|
245
245
|
)),
|
|
246
246
|
type: 'array',
|
|
@@ -249,7 +249,7 @@ const viewsContribution = {
|
|
|
249
249
|
},
|
|
250
250
|
'agentSessions': {
|
|
251
251
|
description: ( localize(
|
|
252
|
-
|
|
252
|
+
2586,
|
|
253
253
|
"Contributes views to Agent Sessions container in the Activity bar. To contribute to this container, the 'chatSessionsProvider' API proposal must be enabled."
|
|
254
254
|
)),
|
|
255
255
|
type: 'array',
|
|
@@ -258,7 +258,7 @@ const viewsContribution = {
|
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
260
|
additionalProperties: {
|
|
261
|
-
description: ( localize(
|
|
261
|
+
description: ( localize(2587, "Contributes views to contributed views container")),
|
|
262
262
|
type: 'array',
|
|
263
263
|
items: viewDescriptor,
|
|
264
264
|
default: []
|
|
@@ -344,13 +344,13 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
344
344
|
}
|
|
345
345
|
isValidViewsContainer(viewsContainersDescriptors, collector) {
|
|
346
346
|
if (!Array.isArray(viewsContainersDescriptors)) {
|
|
347
|
-
collector.error(( localize(
|
|
347
|
+
collector.error(( localize(2588, "views containers must be an array")));
|
|
348
348
|
return false;
|
|
349
349
|
}
|
|
350
350
|
for (const descriptor of viewsContainersDescriptors) {
|
|
351
351
|
if (typeof descriptor.id !== 'string' && isFalsyOrWhitespace(descriptor.id)) {
|
|
352
352
|
collector.error(( localize(
|
|
353
|
-
|
|
353
|
+
2589,
|
|
354
354
|
"property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
|
|
355
355
|
'id'
|
|
356
356
|
)));
|
|
@@ -358,23 +358,23 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
358
358
|
}
|
|
359
359
|
if (!(/^[a-z0-9_-]+$/i.test(descriptor.id))) {
|
|
360
360
|
collector.error(( localize(
|
|
361
|
-
|
|
361
|
+
2589,
|
|
362
362
|
"property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
|
|
363
363
|
'id'
|
|
364
364
|
)));
|
|
365
365
|
return false;
|
|
366
366
|
}
|
|
367
367
|
if (typeof descriptor.title !== 'string') {
|
|
368
|
-
collector.error(( localize(
|
|
368
|
+
collector.error(( localize(2590, "property `{0}` is mandatory and must be of type `string`", 'title')));
|
|
369
369
|
return false;
|
|
370
370
|
}
|
|
371
371
|
if (typeof descriptor.icon !== 'string') {
|
|
372
|
-
collector.error(( localize(
|
|
372
|
+
collector.error(( localize(2590, "property `{0}` is mandatory and must be of type `string`", 'icon')));
|
|
373
373
|
return false;
|
|
374
374
|
}
|
|
375
375
|
if (isFalsyOrWhitespace(descriptor.title)) {
|
|
376
376
|
collector.warn(( localize(
|
|
377
|
-
|
|
377
|
+
2591,
|
|
378
378
|
"property `{0}` is mandatory and must be of type `string` with non-empty value",
|
|
379
379
|
'title'
|
|
380
380
|
)));
|
|
@@ -444,7 +444,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
444
444
|
}
|
|
445
445
|
if (key === 'remote' && !isProposedApiEnabled(extension.description, 'contribViewsRemote')) {
|
|
446
446
|
collector.warn(( localize(
|
|
447
|
-
|
|
447
|
+
2592,
|
|
448
448
|
"View container '{0}' requires 'enabledApiProposals: [\"contribViewsRemote\"]' to be added to 'Remote'.",
|
|
449
449
|
key
|
|
450
450
|
)));
|
|
@@ -452,7 +452,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
452
452
|
}
|
|
453
453
|
if (key === 'agentSessions' && !isProposedApiEnabled(extension.description, 'chatSessionsProvider')) {
|
|
454
454
|
collector.warn(( localize(
|
|
455
|
-
|
|
455
|
+
2593,
|
|
456
456
|
"View container '{0}' requires 'enabledApiProposals: [\"chatSessionsProvider\"]'.",
|
|
457
457
|
key
|
|
458
458
|
)));
|
|
@@ -461,7 +461,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
461
461
|
const viewContainer = this.getViewContainer(key);
|
|
462
462
|
if (!viewContainer) {
|
|
463
463
|
collector.warn(( localize(
|
|
464
|
-
|
|
464
|
+
2594,
|
|
465
465
|
"View container '{0}' does not exist and all views registered to it will be added to 'Explorer'.",
|
|
466
466
|
key
|
|
467
467
|
)));
|
|
@@ -471,11 +471,11 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
471
471
|
for (let index = 0; index < value.length; index++) {
|
|
472
472
|
const item = value[index];
|
|
473
473
|
if (( viewIds.has(item.id))) {
|
|
474
|
-
collector.error(( localize(
|
|
474
|
+
collector.error(( localize(2595, "Cannot register multiple views with same id `{0}`", item.id)));
|
|
475
475
|
continue;
|
|
476
476
|
}
|
|
477
477
|
if (this.viewsRegistry.getView(item.id) !== null) {
|
|
478
|
-
collector.error(( localize(
|
|
478
|
+
collector.error(( localize(2596, "A view with id `{0}` is already registered.", item.id)));
|
|
479
479
|
continue;
|
|
480
480
|
}
|
|
481
481
|
const order = ExtensionIdentifier.equals(extension.description.identifier, container.extensionId)
|
|
@@ -490,7 +490,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
490
490
|
const initialVisibility = this.convertInitialVisibility(item.visibility);
|
|
491
491
|
const type = this.getViewType(item.type);
|
|
492
492
|
if (!type) {
|
|
493
|
-
collector.error(( localize(
|
|
493
|
+
collector.error(( localize(2597, "Unknown view type `{0}`.", item.type)));
|
|
494
494
|
continue;
|
|
495
495
|
}
|
|
496
496
|
let weight = undefined;
|
|
@@ -576,29 +576,29 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
576
576
|
}
|
|
577
577
|
isValidViewDescriptors(viewDescriptors, collector) {
|
|
578
578
|
if (!Array.isArray(viewDescriptors)) {
|
|
579
|
-
collector.error(( localize(
|
|
579
|
+
collector.error(( localize(2598, "views must be an array")));
|
|
580
580
|
return false;
|
|
581
581
|
}
|
|
582
582
|
for (const descriptor of viewDescriptors) {
|
|
583
583
|
if (typeof descriptor.id !== 'string') {
|
|
584
|
-
collector.error(( localize(
|
|
584
|
+
collector.error(( localize(2590, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
585
585
|
return false;
|
|
586
586
|
}
|
|
587
587
|
if (typeof descriptor.name !== 'string') {
|
|
588
|
-
collector.error(( localize(
|
|
588
|
+
collector.error(( localize(2590, "property `{0}` is mandatory and must be of type `string`", 'name')));
|
|
589
589
|
return false;
|
|
590
590
|
}
|
|
591
591
|
if (descriptor.when && typeof descriptor.when !== 'string') {
|
|
592
|
-
collector.error(( localize(
|
|
592
|
+
collector.error(( localize(2599, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
593
593
|
return false;
|
|
594
594
|
}
|
|
595
595
|
if (descriptor.icon && typeof descriptor.icon !== 'string') {
|
|
596
|
-
collector.error(( localize(
|
|
596
|
+
collector.error(( localize(2599, "property `{0}` can be omitted or must be of type `string`", 'icon')));
|
|
597
597
|
return false;
|
|
598
598
|
}
|
|
599
599
|
if (descriptor.contextualTitle && typeof descriptor.contextualTitle !== 'string') {
|
|
600
600
|
collector.error(( localize(
|
|
601
|
-
|
|
601
|
+
2599,
|
|
602
602
|
"property `{0}` can be omitted or must be of type `string`",
|
|
603
603
|
'contextualTitle'
|
|
604
604
|
)));
|
|
@@ -606,7 +606,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
606
606
|
}
|
|
607
607
|
if (descriptor.visibility && !this.convertInitialVisibility(descriptor.visibility)) {
|
|
608
608
|
collector.error(( localize(
|
|
609
|
-
|
|
609
|
+
2600,
|
|
610
610
|
"property `{0}` can be omitted or must be one of {1}",
|
|
611
611
|
'visibility',
|
|
612
612
|
( Object.values(InitialVisibility)).join(', ')
|
|
@@ -622,7 +622,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
622
622
|
case 'debug': return this.viewContainersRegistry.get(VIEWLET_ID$3);
|
|
623
623
|
case 'scm': return this.viewContainersRegistry.get(VIEWLET_ID$2);
|
|
624
624
|
case 'remote': return this.viewContainersRegistry.get(VIEWLET_ID);
|
|
625
|
-
case 'agentSessions': return this.viewContainersRegistry.get(
|
|
625
|
+
case 'agentSessions': return this.viewContainersRegistry.get(LEGACY_AGENT_SESSIONS_VIEW_ID);
|
|
626
626
|
default: return this.viewContainersRegistry.get(`workbench.view.extension.${value}`);
|
|
627
627
|
}
|
|
628
628
|
}
|
|
@@ -659,9 +659,9 @@ class ViewContainersDataRenderer extends Disposable {
|
|
|
659
659
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
660
660
|
}
|
|
661
661
|
const headers = [
|
|
662
|
-
( localize(
|
|
663
|
-
( localize(
|
|
664
|
-
( localize(
|
|
662
|
+
( localize(2601, "ID")),
|
|
663
|
+
( localize(2602, "Title")),
|
|
664
|
+
( localize(2603, "Where")),
|
|
665
665
|
];
|
|
666
666
|
const rows = ( viewContainers
|
|
667
667
|
.sort((a, b) => a.id.localeCompare(b.id))
|
|
@@ -700,9 +700,9 @@ class ViewsDataRenderer extends Disposable {
|
|
|
700
700
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
701
701
|
}
|
|
702
702
|
const headers = [
|
|
703
|
-
( localize(
|
|
704
|
-
( localize(
|
|
705
|
-
( localize(
|
|
703
|
+
( localize(2604, "ID")),
|
|
704
|
+
( localize(2605, "Name")),
|
|
705
|
+
( localize(2603, "Where")),
|
|
706
706
|
];
|
|
707
707
|
const rows = ( views
|
|
708
708
|
.sort((a, b) => a.id.localeCompare(b.id))
|
|
@@ -724,7 +724,7 @@ class ViewsDataRenderer extends Disposable {
|
|
|
724
724
|
}
|
|
725
725
|
( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
726
726
|
id: 'viewsContainers',
|
|
727
|
-
label: ( localize(
|
|
727
|
+
label: ( localize(2606, "View Containers")),
|
|
728
728
|
access: {
|
|
729
729
|
canToggle: false
|
|
730
730
|
},
|
|
@@ -732,7 +732,7 @@ class ViewsDataRenderer extends Disposable {
|
|
|
732
732
|
});
|
|
733
733
|
( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
734
734
|
id: 'views',
|
|
735
|
-
label: ( localize(
|
|
735
|
+
label: ( localize(2607, "Views")),
|
|
736
736
|
access: {
|
|
737
737
|
canToggle: false
|
|
738
738
|
},
|
|
@@ -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(2733, "Keyboard Shortcuts Reference")),
|
|
24
|
+
mnemonicTitle: ( localize(2734, "&&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(2735, "Video Tutorials")),
|
|
57
|
+
mnemonicTitle: ( localize(2736, "&&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(2737, "Tips and Tricks")),
|
|
84
|
+
mnemonicTitle: ( localize(2738, "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(2739, "Documentation")),
|
|
111
|
+
mnemonicTitle: ( localize(2740, "&&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(2741, '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(2742, "Join Us on YouTube")),
|
|
159
|
+
mnemonicTitle: ( localize(2743, "&&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(2744, "Search Feature Requests")),
|
|
186
|
+
mnemonicTitle: ( localize(2745, "&&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(2746, "View License")),
|
|
213
|
+
mnemonicTitle: ( localize(2747, "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(2748, "Privacy Statement")),
|
|
247
|
+
mnemonicTitle: ( localize(2749, "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(2750, '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(2751, '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(2751, '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(2881, "Toggle Tree Sticky Scroll")),
|
|
786
|
+
mnemonicTitle: ( localize(2882, "&&Toggle Tree Sticky Scroll")),
|
|
787
787
|
},
|
|
788
788
|
category: 'View',
|
|
789
789
|
metadata: { description: ( localize(
|
|
790
|
-
|
|
790
|
+
2883,
|
|
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
|
|
@@ -6,7 +6,7 @@ import { Parts } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services
|
|
|
6
6
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
7
7
|
import { Action2, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
8
8
|
import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
|
|
9
|
-
import { Direction } from '@codingame/monaco-vscode-
|
|
9
|
+
import { Direction } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/grid/grid';
|
|
10
10
|
import { KeyCode, KeyMod } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
11
11
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
12
12
|
import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
@@ -149,7 +149,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
149
149
|
constructor() {
|
|
150
150
|
super({
|
|
151
151
|
id: 'workbench.action.navigateLeft',
|
|
152
|
-
title: ( localize2(
|
|
152
|
+
title: ( localize2(2884, 'Navigate to the View on the Left')),
|
|
153
153
|
category: Categories.View,
|
|
154
154
|
f1: true
|
|
155
155
|
}, Direction.Left);
|
|
@@ -159,7 +159,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
159
159
|
constructor() {
|
|
160
160
|
super({
|
|
161
161
|
id: 'workbench.action.navigateRight',
|
|
162
|
-
title: ( localize2(
|
|
162
|
+
title: ( localize2(2885, 'Navigate to the View on the Right')),
|
|
163
163
|
category: Categories.View,
|
|
164
164
|
f1: true
|
|
165
165
|
}, Direction.Right);
|
|
@@ -169,7 +169,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
169
169
|
constructor() {
|
|
170
170
|
super({
|
|
171
171
|
id: 'workbench.action.navigateUp',
|
|
172
|
-
title: ( localize2(
|
|
172
|
+
title: ( localize2(2886, 'Navigate to the View Above')),
|
|
173
173
|
category: Categories.View,
|
|
174
174
|
f1: true
|
|
175
175
|
}, Direction.Up);
|
|
@@ -179,7 +179,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
179
179
|
constructor() {
|
|
180
180
|
super({
|
|
181
181
|
id: 'workbench.action.navigateDown',
|
|
182
|
-
title: ( localize2(
|
|
182
|
+
title: ( localize2(2887, 'Navigate to the View Below')),
|
|
183
183
|
category: Categories.View,
|
|
184
184
|
f1: true
|
|
185
185
|
}, Direction.Down);
|
|
@@ -264,7 +264,7 @@ registerAction2(class extends BaseFocusAction {
|
|
|
264
264
|
constructor() {
|
|
265
265
|
super({
|
|
266
266
|
id: 'workbench.action.focusNextPart',
|
|
267
|
-
title: ( localize2(
|
|
267
|
+
title: ( localize2(2888, 'Focus Next Part')),
|
|
268
268
|
category: Categories.View,
|
|
269
269
|
f1: true,
|
|
270
270
|
keybinding: {
|
|
@@ -278,7 +278,7 @@ registerAction2(class extends BaseFocusAction {
|
|
|
278
278
|
constructor() {
|
|
279
279
|
super({
|
|
280
280
|
id: 'workbench.action.focusPreviousPart',
|
|
281
|
-
title: ( localize2(
|
|
281
|
+
title: ( localize2(2889, 'Focus Previous Part')),
|
|
282
282
|
category: Categories.View,
|
|
283
283
|
f1: true,
|
|
284
284
|
keybinding: {
|