@codingame/monaco-vscode-views-service-override 1.83.4 → 1.83.6
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.d.ts +8 -3
- package/index.js +7 -1
- package/l10n.js +8 -0
- package/missing-services.js +2141 -0
- package/package.json +2 -2
- package/services.js +95 -0
- package/views.d.ts +51 -15
- package/views.js +124 -96
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +262 -49
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +57 -42
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +51 -11
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +14 -2
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +18 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +52 -20
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +6 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +23 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +60 -12
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +112 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +11 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +12 -2
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +5 -4
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +27 -15
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +32 -19
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +58 -18
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +29 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +17 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +55 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +5 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +22 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +5 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +40 -8
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +5 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +36 -10
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +111 -16
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +153 -97
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +28 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +11 -463
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +16 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +10 -4
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +27 -5
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +53 -28
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +180 -36
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +17 -3
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +29 -5
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +85 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +301 -62
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +48 -16
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +29 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +17 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +6 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +25 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +5 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +49 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +36 -36
- package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +6 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +5 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +14 -5
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +5 -1
|
@@ -244,12 +244,11 @@ let AccountsActivityActionViewItem = class AccountsActivityActionViewItem extend
|
|
|
244
244
|
let menus = [];
|
|
245
245
|
for (const providerId of providers) {
|
|
246
246
|
if (!this.initialized) {
|
|
247
|
-
const noAccountsAvailableAction = disposables.add(( new Action(
|
|
248
|
-
'
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
)));
|
|
247
|
+
const noAccountsAvailableAction = disposables.add(( new Action('noAccountsAvailable', ( localizeWithPath(
|
|
248
|
+
'vs/workbench/browser/parts/activitybar/activitybarActions',
|
|
249
|
+
'loading',
|
|
250
|
+
"Loading..."
|
|
251
|
+
)), undefined, false)));
|
|
253
252
|
menus.push(noAccountsAvailableAction);
|
|
254
253
|
break;
|
|
255
254
|
}
|
|
@@ -257,12 +256,12 @@ let AccountsActivityActionViewItem = class AccountsActivityActionViewItem extend
|
|
|
257
256
|
const accounts = this.groupedAccounts.get(providerId);
|
|
258
257
|
if (!accounts) {
|
|
259
258
|
if (( this.problematicProviders.has(providerId))) {
|
|
260
|
-
const providerUnavailableAction = disposables.add(( new Action(
|
|
261
|
-
'
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
)));
|
|
259
|
+
const providerUnavailableAction = disposables.add(( new Action('providerUnavailable', ( localizeWithPath(
|
|
260
|
+
'vs/workbench/browser/parts/activitybar/activitybarActions',
|
|
261
|
+
'authProviderUnavailable',
|
|
262
|
+
'{0} is currently unavailable',
|
|
263
|
+
providerLabel
|
|
264
|
+
)), undefined, false)));
|
|
266
265
|
menus.push(providerUnavailableAction);
|
|
267
266
|
try {
|
|
268
267
|
await this.addAccountsFromProvider(providerId);
|
|
@@ -274,28 +273,24 @@ let AccountsActivityActionViewItem = class AccountsActivityActionViewItem extend
|
|
|
274
273
|
continue;
|
|
275
274
|
}
|
|
276
275
|
for (const account of accounts) {
|
|
277
|
-
const manageExtensionsAction = disposables.add(( new Action(
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
()
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
)));
|
|
276
|
+
const manageExtensionsAction = disposables.add(( new Action(`configureSessions${account.label}`, ( localizeWithPath(
|
|
277
|
+
'vs/workbench/browser/parts/activitybar/activitybarActions',
|
|
278
|
+
'manageTrustedExtensions',
|
|
279
|
+
"Manage Trusted Extensions"
|
|
280
|
+
)), undefined, true, () => {
|
|
281
|
+
return this.authenticationService.manageTrustedExtensionsForAccount(providerId, account.label);
|
|
282
|
+
})));
|
|
286
283
|
const providerSubMenuActions = [manageExtensionsAction];
|
|
287
284
|
if (account.canSignOut) {
|
|
288
|
-
const signOutAction = disposables.add(( new Action(
|
|
285
|
+
const signOutAction = disposables.add(( new Action('signOut', ( localizeWithPath(
|
|
286
|
+
'vs/workbench/browser/parts/activitybar/activitybarActions',
|
|
289
287
|
'signOut',
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
return await this.authenticationService.removeAccountSessions(providerId, account.label, sessionsForAccount);
|
|
297
|
-
}
|
|
298
|
-
)));
|
|
288
|
+
"Sign Out"
|
|
289
|
+
)), undefined, true, async () => {
|
|
290
|
+
const allSessions = await this.authenticationService.getSessions(providerId);
|
|
291
|
+
const sessionsForAccount = allSessions.filter(s => s.account.label === account.label);
|
|
292
|
+
return await this.authenticationService.removeAccountSessions(providerId, account.label, sessionsForAccount);
|
|
293
|
+
})));
|
|
299
294
|
providerSubMenuActions.push(signOutAction);
|
|
300
295
|
}
|
|
301
296
|
const providerSubMenu = ( new SubmenuAction(
|
|
@@ -307,12 +302,11 @@ let AccountsActivityActionViewItem = class AccountsActivityActionViewItem extend
|
|
|
307
302
|
}
|
|
308
303
|
}
|
|
309
304
|
if (providers.length && !menus.length) {
|
|
310
|
-
const noAccountsAvailableAction = disposables.add(( new Action(
|
|
311
|
-
'
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
)));
|
|
305
|
+
const noAccountsAvailableAction = disposables.add(( new Action('noAccountsAvailable', ( localizeWithPath(
|
|
306
|
+
'vs/workbench/browser/parts/activitybar/activitybarActions',
|
|
307
|
+
'noAccounts',
|
|
308
|
+
"You are not signed in to any accounts"
|
|
309
|
+
)), undefined, false)));
|
|
316
310
|
menus.push(noAccountsAvailableAction);
|
|
317
311
|
}
|
|
318
312
|
if (menus.length && otherCommands.length) {
|
|
@@ -330,7 +324,11 @@ let AccountsActivityActionViewItem = class AccountsActivityActionViewItem extend
|
|
|
330
324
|
async resolveContextMenuActions(disposables) {
|
|
331
325
|
const actions = await super.resolveContextMenuActions(disposables);
|
|
332
326
|
actions.unshift(...[
|
|
333
|
-
toAction({ id: 'hideAccounts', label:
|
|
327
|
+
toAction({ id: 'hideAccounts', label: ( localizeWithPath(
|
|
328
|
+
'vs/workbench/browser/parts/activitybar/activitybarActions',
|
|
329
|
+
'hideAccounts',
|
|
330
|
+
"Hide Accounts"
|
|
331
|
+
)), run: () => this.storageService.store(AccountsActivityActionViewItem_1.ACCOUNTS_VISIBILITY_PREFERENCE_KEY, false, 0 , 0 ) }),
|
|
334
332
|
( new Separator())
|
|
335
333
|
]);
|
|
336
334
|
return actions;
|
|
@@ -444,7 +442,12 @@ let GlobalActivityActionViewItem = class GlobalActivityActionViewItem extends Me
|
|
|
444
442
|
this.updateProfileBadge();
|
|
445
443
|
}
|
|
446
444
|
computeTitle() {
|
|
447
|
-
return this.userDataProfileService.currentProfile.isDefault ? super.computeTitle() :
|
|
445
|
+
return this.userDataProfileService.currentProfile.isDefault ? super.computeTitle() : ( localizeWithPath(
|
|
446
|
+
'vs/workbench/browser/parts/activitybar/activitybarActions',
|
|
447
|
+
'manage',
|
|
448
|
+
"Manage {0} (Profile)",
|
|
449
|
+
this.userDataProfileService.currentProfile.name
|
|
450
|
+
));
|
|
448
451
|
}
|
|
449
452
|
};
|
|
450
453
|
GlobalActivityActionViewItem = ( __decorate([
|
|
@@ -502,7 +505,11 @@ registerAction2(class PreviousSideBarViewAction extends SwitchSideBarViewAction
|
|
|
502
505
|
constructor() {
|
|
503
506
|
super({
|
|
504
507
|
id: 'workbench.action.previousSideBarView',
|
|
505
|
-
title: { value: localizeWithPath(
|
|
508
|
+
title: { value: ( localizeWithPath(
|
|
509
|
+
'vs/workbench/browser/parts/activitybar/activitybarActions',
|
|
510
|
+
'previousSideBarView',
|
|
511
|
+
"Previous Primary Side Bar View"
|
|
512
|
+
)), original: 'Previous Primary Side Bar View' },
|
|
506
513
|
category: Categories.View,
|
|
507
514
|
f1: true
|
|
508
515
|
}, -1);
|
|
@@ -512,7 +519,11 @@ registerAction2(class NextSideBarViewAction extends SwitchSideBarViewAction {
|
|
|
512
519
|
constructor() {
|
|
513
520
|
super({
|
|
514
521
|
id: 'workbench.action.nextSideBarView',
|
|
515
|
-
title: { value: localizeWithPath(
|
|
522
|
+
title: { value: ( localizeWithPath(
|
|
523
|
+
'vs/workbench/browser/parts/activitybar/activitybarActions',
|
|
524
|
+
'nextSideBarView',
|
|
525
|
+
"Next Primary Side Bar View"
|
|
526
|
+
)), original: 'Next Primary Side Bar View' },
|
|
516
527
|
category: Categories.View,
|
|
517
528
|
f1: true
|
|
518
529
|
}, 1);
|
|
@@ -522,7 +533,11 @@ registerAction2(class FocusActivityBarAction extends Action2 {
|
|
|
522
533
|
constructor() {
|
|
523
534
|
super({
|
|
524
535
|
id: 'workbench.action.focusActivityBar',
|
|
525
|
-
title: { value: localizeWithPath(
|
|
536
|
+
title: { value: ( localizeWithPath(
|
|
537
|
+
'vs/workbench/browser/parts/activitybar/activitybarActions',
|
|
538
|
+
'focusActivityBar',
|
|
539
|
+
"Focus Activity Bar"
|
|
540
|
+
)), original: 'Focus Activity Bar' },
|
|
526
541
|
category: Categories.View,
|
|
527
542
|
f1: true
|
|
528
543
|
});
|
|
@@ -44,7 +44,11 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
44
44
|
static { this.PLACEHOLDER_VIEW_CONTAINERS = 'workbench.activity.placeholderViewlets'; }
|
|
45
45
|
static { this.ACTION_HEIGHT = 48; }
|
|
46
46
|
static { this.ACCOUNTS_ACTION_INDEX = 0; }
|
|
47
|
-
static { this.ACCOUNTS_ICON = registerIcon('accounts-view-bar-icon', Codicon.account, localizeWithPath(
|
|
47
|
+
static { this.ACCOUNTS_ICON = registerIcon('accounts-view-bar-icon', Codicon.account, ( localizeWithPath(
|
|
48
|
+
'vs/workbench/browser/parts/activitybar/activitybarPart',
|
|
49
|
+
'accountsViewBarIcon',
|
|
50
|
+
"Accounts icon in the view bar."
|
|
51
|
+
))); }
|
|
48
52
|
constructor(paneCompositePart, instantiationService, layoutService, themeService, storageService, extensionService, viewDescriptorService, contextKeyService, configurationService, environmentService, userDataProfileService) {
|
|
49
53
|
super("workbench.parts.activitybar" , { hasTitle: false }, themeService, storageService, layoutService);
|
|
50
54
|
this.paneCompositePart = paneCompositePart;
|
|
@@ -100,18 +104,30 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
100
104
|
fillExtraContextMenuActions: (actions, e) => {
|
|
101
105
|
const menuBarVisibility = getMenuBarVisibility(this.configurationService);
|
|
102
106
|
if (menuBarVisibility === 'compact' || menuBarVisibility === 'hidden' || menuBarVisibility === 'toggle') {
|
|
103
|
-
actions.unshift(...[toAction({ id: 'toggleMenuVisibility', label: localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'menu', "Menu"), checked: menuBarVisibility === 'compact', run: () => this.configurationService.updateValue('window.menuBarVisibility', menuBarVisibility === 'compact' ? 'toggle' : 'compact') }), ( new Separator())]);
|
|
107
|
+
actions.unshift(...[toAction({ id: 'toggleMenuVisibility', label: ( localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'menu', "Menu")), checked: menuBarVisibility === 'compact', run: () => this.configurationService.updateValue('window.menuBarVisibility', menuBarVisibility === 'compact' ? 'toggle' : 'compact') }), ( new Separator())]);
|
|
104
108
|
}
|
|
105
109
|
if (menuBarVisibility === 'compact' && this.menuBarContainer && e?.target) {
|
|
106
110
|
if (isAncestor(e.target, this.menuBarContainer)) {
|
|
107
|
-
actions.unshift(...[toAction({ id: 'hideCompactMenu', label:
|
|
111
|
+
actions.unshift(...[toAction({ id: 'hideCompactMenu', label: ( localizeWithPath(
|
|
112
|
+
'vs/workbench/browser/parts/activitybar/activitybarPart',
|
|
113
|
+
'hideMenu',
|
|
114
|
+
"Hide Menu"
|
|
115
|
+
)), run: () => this.configurationService.updateValue('window.menuBarVisibility', 'toggle') }), ( new Separator())]);
|
|
108
116
|
}
|
|
109
117
|
}
|
|
110
118
|
actions.push(( new Separator()));
|
|
111
|
-
actions.push(toAction({ id: 'toggleAccountsVisibility', label:
|
|
119
|
+
actions.push(toAction({ id: 'toggleAccountsVisibility', label: ( localizeWithPath(
|
|
120
|
+
'vs/workbench/browser/parts/activitybar/activitybarPart',
|
|
121
|
+
'accounts',
|
|
122
|
+
"Accounts"
|
|
123
|
+
)), checked: this.accountsVisibilityPreference, run: () => this.accountsVisibilityPreference = !this.accountsVisibilityPreference }));
|
|
112
124
|
actions.push(( new Separator()));
|
|
113
125
|
actions.push(toAction({ id: ToggleSidebarPositionAction.ID, label: ToggleSidebarPositionAction.getLabel(this.layoutService), run: () => this.instantiationService.invokeFunction(accessor => ( new ToggleSidebarPositionAction()).run(accessor)) }));
|
|
114
|
-
actions.push(toAction({ id: ToggleActivityBarVisibilityAction.ID, label:
|
|
126
|
+
actions.push(toAction({ id: ToggleActivityBarVisibilityAction.ID, label: ( localizeWithPath(
|
|
127
|
+
'vs/workbench/browser/parts/activitybar/activitybarPart',
|
|
128
|
+
'hideActivitBar',
|
|
129
|
+
"Hide Activity Bar"
|
|
130
|
+
)), run: () => this.instantiationService.invokeFunction(accessor => ( new ToggleActivityBarVisibilityAction()).run(accessor)) }));
|
|
115
131
|
},
|
|
116
132
|
getContextMenuActionsForComposite: compositeId => this.getContextMenuActionsForComposite(compositeId),
|
|
117
133
|
getDefaultCompositeId: () => this.viewDescriptorService.getDefaultViewContainer(this.location)?.id,
|
|
@@ -138,7 +154,11 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
138
154
|
const viewContainer = this.viewDescriptorService.getViewContainerById(compositeId);
|
|
139
155
|
const defaultLocation = this.viewDescriptorService.getDefaultViewContainerLocation(viewContainer);
|
|
140
156
|
if (defaultLocation !== this.viewDescriptorService.getViewContainerLocation(viewContainer)) {
|
|
141
|
-
actions.push(toAction({ id: 'resetLocationAction', label:
|
|
157
|
+
actions.push(toAction({ id: 'resetLocationAction', label: ( localizeWithPath(
|
|
158
|
+
'vs/workbench/browser/parts/activitybar/activitybarPart',
|
|
159
|
+
'resetLocation',
|
|
160
|
+
"Reset Location"
|
|
161
|
+
)), run: () => this.viewDescriptorService.moveViewContainerToLocation(viewContainer, defaultLocation) }));
|
|
142
162
|
}
|
|
143
163
|
else {
|
|
144
164
|
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
@@ -146,7 +166,11 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
146
166
|
const viewToReset = viewContainerModel.allViewDescriptors[0];
|
|
147
167
|
const defaultContainer = this.viewDescriptorService.getDefaultContainerById(viewToReset.id);
|
|
148
168
|
if (defaultContainer !== viewContainer) {
|
|
149
|
-
actions.push(toAction({ id: 'resetLocationAction', label:
|
|
169
|
+
actions.push(toAction({ id: 'resetLocationAction', label: ( localizeWithPath(
|
|
170
|
+
'vs/workbench/browser/parts/activitybar/activitybarPart',
|
|
171
|
+
'resetLocation',
|
|
172
|
+
"Reset Location"
|
|
173
|
+
)), run: () => this.viewDescriptorService.moveViewsToContainer([viewToReset], defaultContainer) }));
|
|
150
174
|
}
|
|
151
175
|
}
|
|
152
176
|
}
|
|
@@ -379,7 +403,11 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
379
403
|
throw new Error(`No view item for action '${action.id}'`);
|
|
380
404
|
},
|
|
381
405
|
orientation: 1 ,
|
|
382
|
-
ariaLabel: localizeWithPath(
|
|
406
|
+
ariaLabel: ( localizeWithPath(
|
|
407
|
+
'vs/workbench/browser/parts/activitybar/activitybarPart',
|
|
408
|
+
'manage',
|
|
409
|
+
"Manage"
|
|
410
|
+
)),
|
|
383
411
|
animated: false,
|
|
384
412
|
preventLoopNavigation: true
|
|
385
413
|
})));
|
|
@@ -392,7 +420,11 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
392
420
|
if (this.accountsVisibilityPreference) {
|
|
393
421
|
this.accountsActivityAction = this._register(( new ActivityAction({
|
|
394
422
|
id: 'workbench.actions.accounts',
|
|
395
|
-
name: localizeWithPath(
|
|
423
|
+
name: ( localizeWithPath(
|
|
424
|
+
'vs/workbench/browser/parts/activitybar/activitybarPart',
|
|
425
|
+
'accounts',
|
|
426
|
+
"Accounts"
|
|
427
|
+
)),
|
|
396
428
|
classNames: ThemeIcon.asClassNameArray(ActivitybarPart_1.ACCOUNTS_ICON)
|
|
397
429
|
})));
|
|
398
430
|
this.globalActivityActionBar.push(this.accountsActivityAction, { index: ActivitybarPart_1.ACCOUNTS_ACTION_INDEX });
|
|
@@ -402,7 +434,11 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
402
434
|
createGlobalActivity() {
|
|
403
435
|
return {
|
|
404
436
|
id: 'workbench.actions.manage',
|
|
405
|
-
name: localizeWithPath(
|
|
437
|
+
name: ( localizeWithPath(
|
|
438
|
+
'vs/workbench/browser/parts/activitybar/activitybarPart',
|
|
439
|
+
'manage',
|
|
440
|
+
"Manage"
|
|
441
|
+
)),
|
|
406
442
|
classNames: ThemeIcon.asClassNameArray(this.userDataProfileService.currentProfile.icon ? ThemeIcon.fromId(this.userDataProfileService.currentProfile.icon) : DEFAULT_ICON),
|
|
407
443
|
};
|
|
408
444
|
}
|
|
@@ -418,7 +454,11 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
418
454
|
else {
|
|
419
455
|
this.accountsActivityAction = this._register(( new ActivityAction({
|
|
420
456
|
id: 'workbench.actions.accounts',
|
|
421
|
-
name: localizeWithPath(
|
|
457
|
+
name: ( localizeWithPath(
|
|
458
|
+
'vs/workbench/browser/parts/activitybar/activitybarPart',
|
|
459
|
+
'accounts',
|
|
460
|
+
"Accounts"
|
|
461
|
+
)),
|
|
422
462
|
classNames: ThemeIcon.asClassNameArray(Codicon.account)
|
|
423
463
|
})));
|
|
424
464
|
this.globalActivityActionBar.push(this.accountsActivityAction, { index: ActivitybarPart_1.ACCOUNTS_ACTION_INDEX });
|
|
@@ -63,8 +63,20 @@ let AuxiliaryBarPart = class AuxiliaryBarPart extends BasePanelPart {
|
|
|
63
63
|
const currentPositionRight = this.layoutService.getSideBarPosition() === 0 ;
|
|
64
64
|
actions.push(...[
|
|
65
65
|
( new Separator()),
|
|
66
|
-
toAction({ id: ToggleSidebarPositionAction.ID, label: currentPositionRight ?
|
|
67
|
-
|
|
66
|
+
toAction({ id: ToggleSidebarPositionAction.ID, label: currentPositionRight ? ( localizeWithPath(
|
|
67
|
+
'vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart',
|
|
68
|
+
'move second side bar left',
|
|
69
|
+
"Move Secondary Side Bar Left"
|
|
70
|
+
)) : ( localizeWithPath(
|
|
71
|
+
'vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart',
|
|
72
|
+
'move second side bar right',
|
|
73
|
+
"Move Secondary Side Bar Right"
|
|
74
|
+
)), run: () => this.commandService.executeCommand(ToggleSidebarPositionAction.ID) }),
|
|
75
|
+
toAction({ id: ToggleAuxiliaryBarAction.ID, label: ( localizeWithPath(
|
|
76
|
+
'vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart',
|
|
77
|
+
'hide second side bar',
|
|
78
|
+
"Hide Secondary Side Bar"
|
|
79
|
+
)), run: () => this.commandService.executeCommand(ToggleAuxiliaryBarAction.ID) })
|
|
68
80
|
]);
|
|
69
81
|
}
|
|
70
82
|
toJSON() {
|
|
@@ -129,7 +129,11 @@ let CompositeBar = class CompositeBar extends Widget {
|
|
|
129
129
|
return item && this.instantiationService.createInstance(CompositeActionViewItem, { draggable: true, colors: this.options.colors, icon: this.options.icon, hoverOptions: this.options.activityHoverOptions }, action, item.pinnedAction, item.toggleBadgeAction, compositeId => this.options.getContextMenuActionsForComposite(compositeId), () => this.getContextMenuActions(), this.options.dndHandler, this);
|
|
130
130
|
},
|
|
131
131
|
orientation: this.options.orientation,
|
|
132
|
-
ariaLabel: localizeWithPath(
|
|
132
|
+
ariaLabel: ( localizeWithPath(
|
|
133
|
+
'vs/workbench/browser/parts/compositeBar',
|
|
134
|
+
'activityBarAriaLabel',
|
|
135
|
+
"Active View Switcher"
|
|
136
|
+
)),
|
|
133
137
|
ariaRole: 'tablist',
|
|
134
138
|
animated: false,
|
|
135
139
|
preventLoopNavigation: this.options.preventLoopNavigation,
|
|
@@ -184,7 +184,12 @@ class CompositePart extends Part {
|
|
|
184
184
|
const keybinding = this.keybindingService.lookupKeybinding(compositeId);
|
|
185
185
|
this.titleLabel.updateTitle(compositeId, compositeTitle, keybinding?.getLabel() ?? undefined);
|
|
186
186
|
const toolBar = assertIsDefined(this.toolBar);
|
|
187
|
-
toolBar.setAriaLabel(localizeWithPath(
|
|
187
|
+
toolBar.setAriaLabel(( localizeWithPath(
|
|
188
|
+
'vs/workbench/browser/parts/compositePart',
|
|
189
|
+
'ariaCompositeToolbarLabel',
|
|
190
|
+
"{0} actions",
|
|
191
|
+
compositeTitle
|
|
192
|
+
)));
|
|
188
193
|
}
|
|
189
194
|
collectCompositeActions(composite) {
|
|
190
195
|
const menuIds = composite?.getMenuIds();
|
|
@@ -229,7 +234,11 @@ class CompositePart extends Part {
|
|
|
229
234
|
orientation: 0 ,
|
|
230
235
|
getKeyBinding: action => this.keybindingService.lookupKeybinding(action.id),
|
|
231
236
|
anchorAlignmentProvider: () => this.getTitleAreaDropDownAnchorAlignment(),
|
|
232
|
-
toggleMenuTitle: localizeWithPath(
|
|
237
|
+
toggleMenuTitle: ( localizeWithPath(
|
|
238
|
+
'vs/workbench/browser/parts/compositePart',
|
|
239
|
+
'viewsAndMoreActions',
|
|
240
|
+
"Views and More Actions..."
|
|
241
|
+
)),
|
|
233
242
|
telemetrySource: this.nameForTelemetry
|
|
234
243
|
}));
|
|
235
244
|
this.collectCompositeActions()();
|
|
@@ -244,7 +253,13 @@ class CompositePart extends Part {
|
|
|
244
253
|
updateTitle: (id, title, keybinding) => {
|
|
245
254
|
if (!this.activeComposite || this.activeComposite.getId() === id) {
|
|
246
255
|
titleLabel.innerText = title;
|
|
247
|
-
titleLabel.title = keybinding ?
|
|
256
|
+
titleLabel.title = keybinding ? ( localizeWithPath(
|
|
257
|
+
'vs/workbench/browser/parts/compositePart',
|
|
258
|
+
'titleTooltip',
|
|
259
|
+
"{0} ({1})",
|
|
260
|
+
title,
|
|
261
|
+
keybinding
|
|
262
|
+
)) : title;
|
|
248
263
|
}
|
|
249
264
|
},
|
|
250
265
|
updateStyles: () => {
|
|
@@ -113,7 +113,11 @@ class FileItem extends BreadcrumbsItem {
|
|
|
113
113
|
this._disposables.add(label);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
const separatorIcon = registerIcon('breadcrumb-separator', Codicon.chevronRight, localizeWithPath(
|
|
116
|
+
const separatorIcon = registerIcon('breadcrumb-separator', Codicon.chevronRight, ( localizeWithPath(
|
|
117
|
+
'vs/workbench/browser/parts/editor/breadcrumbsControl',
|
|
118
|
+
'separatorIcon',
|
|
119
|
+
'Icon for the separator in the breadcrumbs.'
|
|
120
|
+
)));
|
|
117
121
|
let BreadcrumbsControl = class BreadcrumbsControl {
|
|
118
122
|
static { BreadcrumbsControl_1 = this; }
|
|
119
123
|
static { this.HEIGHT = 22; }
|
|
@@ -124,21 +128,21 @@ let BreadcrumbsControl = class BreadcrumbsControl {
|
|
|
124
128
|
static { this.Payload_Reveal = {}; }
|
|
125
129
|
static { this.Payload_RevealAside = {}; }
|
|
126
130
|
static { this.Payload_Pick = {}; }
|
|
127
|
-
static { this.CK_BreadcrumbsPossible = ( new RawContextKey(
|
|
131
|
+
static { this.CK_BreadcrumbsPossible = ( new RawContextKey('breadcrumbsPossible', false, ( localizeWithPath(
|
|
132
|
+
'vs/workbench/browser/parts/editor/breadcrumbsControl',
|
|
128
133
|
'breadcrumbsPossible',
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
134
|
+
"Whether the editor can show breadcrumbs"
|
|
135
|
+
)))); }
|
|
136
|
+
static { this.CK_BreadcrumbsVisible = ( new RawContextKey('breadcrumbsVisible', false, ( localizeWithPath(
|
|
137
|
+
'vs/workbench/browser/parts/editor/breadcrumbsControl',
|
|
133
138
|
'breadcrumbsVisible',
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
139
|
+
"Whether breadcrumbs are currently visible"
|
|
140
|
+
)))); }
|
|
141
|
+
static { this.CK_BreadcrumbsActive = ( new RawContextKey('breadcrumbsActive', false, ( localizeWithPath(
|
|
142
|
+
'vs/workbench/browser/parts/editor/breadcrumbsControl',
|
|
138
143
|
'breadcrumbsActive',
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
)); }
|
|
144
|
+
"Whether breadcrumbs have focus"
|
|
145
|
+
)))); }
|
|
142
146
|
constructor(container, _options, _editorGroup, _contextKeyService, _contextViewService, _instantiationService, _quickInputService, _fileService, _editorService, _labelService, configurationService, breadcrumbsService) {
|
|
143
147
|
this._options = _options;
|
|
144
148
|
this._editorGroup = _editorGroup;
|
|
@@ -240,7 +244,11 @@ let BreadcrumbsControl = class BreadcrumbsControl {
|
|
|
240
244
|
this._widget.setEnabled(false);
|
|
241
245
|
this._widget.setItems([new (class extends BreadcrumbsItem {
|
|
242
246
|
render(container) {
|
|
243
|
-
container.innerText = localizeWithPath(
|
|
247
|
+
container.innerText = ( localizeWithPath(
|
|
248
|
+
'vs/workbench/browser/parts/editor/breadcrumbsControl',
|
|
249
|
+
'empty',
|
|
250
|
+
"no elements"
|
|
251
|
+
));
|
|
244
252
|
}
|
|
245
253
|
equals(other) {
|
|
246
254
|
return other === this;
|
|
@@ -465,15 +473,31 @@ registerAction2(class ToggleBreadcrumb extends Action2 {
|
|
|
465
473
|
super({
|
|
466
474
|
id: 'breadcrumbs.toggle',
|
|
467
475
|
title: {
|
|
468
|
-
value: localizeWithPath(
|
|
469
|
-
|
|
476
|
+
value: ( localizeWithPath(
|
|
477
|
+
'vs/workbench/browser/parts/editor/breadcrumbsControl',
|
|
478
|
+
'cmd.toggle',
|
|
479
|
+
"Toggle Breadcrumbs"
|
|
480
|
+
)),
|
|
481
|
+
mnemonicTitle: ( localizeWithPath(
|
|
482
|
+
'vs/workbench/browser/parts/editor/breadcrumbsControl',
|
|
483
|
+
{ key: 'miBreadcrumbs', comment: ['&& denotes a mnemonic'] },
|
|
484
|
+
"Toggle &&Breadcrumbs"
|
|
485
|
+
)),
|
|
470
486
|
original: 'Toggle Breadcrumbs',
|
|
471
487
|
},
|
|
472
488
|
category: Categories.View,
|
|
473
489
|
toggled: {
|
|
474
490
|
condition: ( ContextKeyExpr.equals('config.breadcrumbs.enabled', true)),
|
|
475
|
-
title: localizeWithPath(
|
|
476
|
-
|
|
491
|
+
title: ( localizeWithPath(
|
|
492
|
+
'vs/workbench/browser/parts/editor/breadcrumbsControl',
|
|
493
|
+
'cmd.toggle2',
|
|
494
|
+
"Breadcrumbs"
|
|
495
|
+
)),
|
|
496
|
+
mnemonicTitle: ( localizeWithPath(
|
|
497
|
+
'vs/workbench/browser/parts/editor/breadcrumbsControl',
|
|
498
|
+
{ key: 'miBreadcrumbs2', comment: ['&& denotes a mnemonic'] },
|
|
499
|
+
"&&Breadcrumbs"
|
|
500
|
+
))
|
|
477
501
|
},
|
|
478
502
|
menu: [
|
|
479
503
|
{ id: MenuId.CommandPalette },
|
|
@@ -506,7 +530,11 @@ registerAction2(class FocusAndSelectBreadcrumbs extends Action2 {
|
|
|
506
530
|
super({
|
|
507
531
|
id: 'breadcrumbs.focusAndSelect',
|
|
508
532
|
title: {
|
|
509
|
-
value: localizeWithPath(
|
|
533
|
+
value: ( localizeWithPath(
|
|
534
|
+
'vs/workbench/browser/parts/editor/breadcrumbsControl',
|
|
535
|
+
'cmd.focusAndSelect',
|
|
536
|
+
"Focus and Select Breadcrumbs"
|
|
537
|
+
)),
|
|
510
538
|
original: 'Focus and Select Breadcrumbs'
|
|
511
539
|
},
|
|
512
540
|
precondition: BreadcrumbsControl.CK_BreadcrumbsVisible,
|
|
@@ -527,7 +555,11 @@ registerAction2(class FocusBreadcrumbs extends Action2 {
|
|
|
527
555
|
super({
|
|
528
556
|
id: 'breadcrumbs.focus',
|
|
529
557
|
title: {
|
|
530
|
-
value: localizeWithPath(
|
|
558
|
+
value: ( localizeWithPath(
|
|
559
|
+
'vs/workbench/browser/parts/editor/breadcrumbsControl',
|
|
560
|
+
'cmd.focus',
|
|
561
|
+
"Focus Breadcrumbs"
|
|
562
|
+
)),
|
|
531
563
|
original: 'Focus Breadcrumbs'
|
|
532
564
|
},
|
|
533
565
|
precondition: BreadcrumbsControl.CK_BreadcrumbsVisible,
|
|
@@ -201,7 +201,11 @@ class FileNavigationLabelProvider {
|
|
|
201
201
|
}
|
|
202
202
|
class FileAccessibilityProvider {
|
|
203
203
|
getWidgetAriaLabel() {
|
|
204
|
-
return localizeWithPath(
|
|
204
|
+
return ( localizeWithPath(
|
|
205
|
+
'vs/workbench/browser/parts/editor/breadcrumbsPicker',
|
|
206
|
+
'breadcrumbs',
|
|
207
|
+
"Breadcrumbs"
|
|
208
|
+
));
|
|
205
209
|
}
|
|
206
210
|
getAriaLabel(element) {
|
|
207
211
|
return element.name;
|
|
@@ -66,7 +66,12 @@ let DropOverlay = class DropOverlay extends Themable {
|
|
|
66
66
|
this.overlay.classList.add('editor-group-overlay-indicator');
|
|
67
67
|
container.appendChild(this.overlay);
|
|
68
68
|
if (this.enableDropIntoEditor) {
|
|
69
|
-
this.dropIntoPromptElement = renderFormattedText(localizeWithPath(
|
|
69
|
+
this.dropIntoPromptElement = renderFormattedText(( localizeWithPath(
|
|
70
|
+
'vs/workbench/browser/parts/editor/editorDropTarget',
|
|
71
|
+
'dropIntoEditorPrompt',
|
|
72
|
+
"Hold __{0}__ to drop into editor",
|
|
73
|
+
isMacintosh ? '⇧' : 'Shift'
|
|
74
|
+
)), {});
|
|
70
75
|
this.dropIntoPromptElement.classList.add('editor-group-overlay-drop-into-prompt');
|
|
71
76
|
this.overlay.appendChild(this.dropIntoPromptElement);
|
|
72
77
|
}
|
|
@@ -226,7 +226,11 @@ let EditorGroupView = EditorGroupView_1 = class EditorGroupView extends Themable
|
|
|
226
226
|
toolbarContainer.classList.add('editor-group-container-toolbar');
|
|
227
227
|
this.element.appendChild(toolbarContainer);
|
|
228
228
|
const containerToolbar = this._register(( new ActionBar(toolbarContainer, {
|
|
229
|
-
ariaLabel: localizeWithPath(
|
|
229
|
+
ariaLabel: ( localizeWithPath(
|
|
230
|
+
'vs/workbench/browser/parts/editor/editorGroupView',
|
|
231
|
+
'ariaLabelGroupActions',
|
|
232
|
+
"Empty editor group actions"
|
|
233
|
+
))
|
|
230
234
|
})));
|
|
231
235
|
const containerToolbarMenu = this._register(this.menuService.createMenu(MenuId.EmptyEditorGroup, this.scopedContextKeyService));
|
|
232
236
|
const updateContainerToolbar = () => {
|
|
@@ -298,7 +302,12 @@ let EditorGroupView = EditorGroupView_1 = class EditorGroupView extends Themable
|
|
|
298
302
|
if (this.isEmpty) {
|
|
299
303
|
this.element.classList.add('empty');
|
|
300
304
|
this.element.tabIndex = 0;
|
|
301
|
-
this.element.setAttribute('aria-label',
|
|
305
|
+
this.element.setAttribute('aria-label', ( localizeWithPath(
|
|
306
|
+
'vs/workbench/browser/parts/editor/editorGroupView',
|
|
307
|
+
'emptyEditorGroup',
|
|
308
|
+
"{0} (empty)",
|
|
309
|
+
this.label
|
|
310
|
+
)));
|
|
302
311
|
}
|
|
303
312
|
else {
|
|
304
313
|
this.element.classList.remove('empty');
|
|
@@ -471,10 +480,20 @@ let EditorGroupView = EditorGroupView_1 = class EditorGroupView extends Themable
|
|
|
471
480
|
return this._index;
|
|
472
481
|
}
|
|
473
482
|
get label() {
|
|
474
|
-
return localizeWithPath(
|
|
483
|
+
return ( localizeWithPath(
|
|
484
|
+
'vs/workbench/browser/parts/editor/editorGroupView',
|
|
485
|
+
'groupLabel',
|
|
486
|
+
"Group {0}",
|
|
487
|
+
this._index + 1
|
|
488
|
+
));
|
|
475
489
|
}
|
|
476
490
|
get ariaLabel() {
|
|
477
|
-
return localizeWithPath(
|
|
491
|
+
return ( localizeWithPath(
|
|
492
|
+
'vs/workbench/browser/parts/editor/editorGroupView',
|
|
493
|
+
'groupAriaLabel',
|
|
494
|
+
"Editor Group {0}",
|
|
495
|
+
this._index + 1
|
|
496
|
+
));
|
|
478
497
|
}
|
|
479
498
|
get disposed() {
|
|
480
499
|
return this._disposed;
|