@codingame/monaco-vscode-views-service-override 1.83.2 → 1.83.3
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 +2 -2
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +50 -179
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +44 -21
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +24 -18
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +2 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +12 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +5 -2
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +16 -8
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +20 -28
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +20 -24
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +6 -6
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +4 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +4 -9
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +8 -29
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +12 -19
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +17 -55
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +110 -38
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +6 -11
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +463 -3
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +5 -11
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +4 -1
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +31 -23
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +37 -76
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +4 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +5 -21
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -23
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +62 -117
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +18 -16
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +6 -6
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +4 -4
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -2
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +10 -25
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +37 -28
- package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +2 -2
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +2 -2
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +3 -3
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/activitybarpart.css.js';
|
|
3
|
-
import {
|
|
3
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
4
4
|
import { ActionBar } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js';
|
|
5
5
|
import { GLOBAL_ACTIVITY_ID, ACCOUNTS_ACTIVITY_ID } from '../../../common/activity.js';
|
|
6
6
|
import { Part } from 'vscode/vscode/vs/workbench/browser/part';
|
|
@@ -44,7 +44,7 @@ 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, (
|
|
47
|
+
static { this.ACCOUNTS_ICON = registerIcon('accounts-view-bar-icon', Codicon.account, localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'accountsViewBarIcon', "Accounts icon in the view bar.")); }
|
|
48
48
|
constructor(paneCompositePart, instantiationService, layoutService, themeService, storageService, extensionService, viewDescriptorService, contextKeyService, configurationService, environmentService, userDataProfileService) {
|
|
49
49
|
super("workbench.parts.activitybar" , { hasTitle: false }, themeService, storageService, layoutService);
|
|
50
50
|
this.paneCompositePart = paneCompositePart;
|
|
@@ -100,18 +100,18 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
100
100
|
fillExtraContextMenuActions: (actions, e) => {
|
|
101
101
|
const menuBarVisibility = getMenuBarVisibility(this.configurationService);
|
|
102
102
|
if (menuBarVisibility === 'compact' || menuBarVisibility === 'hidden' || menuBarVisibility === 'toggle') {
|
|
103
|
-
actions.unshift(...[toAction({ id: 'toggleMenuVisibility', label: (
|
|
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())]);
|
|
104
104
|
}
|
|
105
105
|
if (menuBarVisibility === 'compact' && this.menuBarContainer && e?.target) {
|
|
106
106
|
if (isAncestor(e.target, this.menuBarContainer)) {
|
|
107
|
-
actions.unshift(...[toAction({ id: 'hideCompactMenu', label: (
|
|
107
|
+
actions.unshift(...[toAction({ id: 'hideCompactMenu', label: localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'hideMenu', "Hide Menu"), run: () => this.configurationService.updateValue('window.menuBarVisibility', 'toggle') }), ( new Separator())]);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
actions.push(( new Separator()));
|
|
111
|
-
actions.push(toAction({ id: 'toggleAccountsVisibility', label: (
|
|
111
|
+
actions.push(toAction({ id: 'toggleAccountsVisibility', label: localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'accounts', "Accounts"), checked: this.accountsVisibilityPreference, run: () => this.accountsVisibilityPreference = !this.accountsVisibilityPreference }));
|
|
112
112
|
actions.push(( new Separator()));
|
|
113
113
|
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: (
|
|
114
|
+
actions.push(toAction({ id: ToggleActivityBarVisibilityAction.ID, label: localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'hideActivitBar', "Hide Activity Bar"), run: () => this.instantiationService.invokeFunction(accessor => ( new ToggleActivityBarVisibilityAction()).run(accessor)) }));
|
|
115
115
|
},
|
|
116
116
|
getContextMenuActionsForComposite: compositeId => this.getContextMenuActionsForComposite(compositeId),
|
|
117
117
|
getDefaultCompositeId: () => this.viewDescriptorService.getDefaultViewContainer(this.location)?.id,
|
|
@@ -138,7 +138,7 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
138
138
|
const viewContainer = this.viewDescriptorService.getViewContainerById(compositeId);
|
|
139
139
|
const defaultLocation = this.viewDescriptorService.getDefaultViewContainerLocation(viewContainer);
|
|
140
140
|
if (defaultLocation !== this.viewDescriptorService.getViewContainerLocation(viewContainer)) {
|
|
141
|
-
actions.push(toAction({ id: 'resetLocationAction', label: (
|
|
141
|
+
actions.push(toAction({ id: 'resetLocationAction', label: localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'resetLocation', "Reset Location"), run: () => this.viewDescriptorService.moveViewContainerToLocation(viewContainer, defaultLocation) }));
|
|
142
142
|
}
|
|
143
143
|
else {
|
|
144
144
|
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
@@ -146,7 +146,7 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
146
146
|
const viewToReset = viewContainerModel.allViewDescriptors[0];
|
|
147
147
|
const defaultContainer = this.viewDescriptorService.getDefaultContainerById(viewToReset.id);
|
|
148
148
|
if (defaultContainer !== viewContainer) {
|
|
149
|
-
actions.push(toAction({ id: 'resetLocationAction', label: (
|
|
149
|
+
actions.push(toAction({ id: 'resetLocationAction', label: localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'resetLocation', "Reset Location"), run: () => this.viewDescriptorService.moveViewsToContainer([viewToReset], defaultContainer) }));
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
}
|
|
@@ -379,7 +379,7 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
379
379
|
throw new Error(`No view item for action '${action.id}'`);
|
|
380
380
|
},
|
|
381
381
|
orientation: 1 ,
|
|
382
|
-
ariaLabel: (
|
|
382
|
+
ariaLabel: localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'manage', "Manage"),
|
|
383
383
|
animated: false,
|
|
384
384
|
preventLoopNavigation: true
|
|
385
385
|
})));
|
|
@@ -392,7 +392,7 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
392
392
|
if (this.accountsVisibilityPreference) {
|
|
393
393
|
this.accountsActivityAction = this._register(( new ActivityAction({
|
|
394
394
|
id: 'workbench.actions.accounts',
|
|
395
|
-
name: (
|
|
395
|
+
name: localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'accounts', "Accounts"),
|
|
396
396
|
classNames: ThemeIcon.asClassNameArray(ActivitybarPart_1.ACCOUNTS_ICON)
|
|
397
397
|
})));
|
|
398
398
|
this.globalActivityActionBar.push(this.accountsActivityAction, { index: ActivitybarPart_1.ACCOUNTS_ACTION_INDEX });
|
|
@@ -402,7 +402,7 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
402
402
|
createGlobalActivity() {
|
|
403
403
|
return {
|
|
404
404
|
id: 'workbench.actions.manage',
|
|
405
|
-
name: (
|
|
405
|
+
name: localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'manage', "Manage"),
|
|
406
406
|
classNames: ThemeIcon.asClassNameArray(this.userDataProfileService.currentProfile.icon ? ThemeIcon.fromId(this.userDataProfileService.currentProfile.icon) : DEFAULT_ICON),
|
|
407
407
|
};
|
|
408
408
|
}
|
|
@@ -418,7 +418,7 @@ let ActivitybarPart = class ActivitybarPart extends Part {
|
|
|
418
418
|
else {
|
|
419
419
|
this.accountsActivityAction = this._register(( new ActivityAction({
|
|
420
420
|
id: 'workbench.actions.accounts',
|
|
421
|
-
name: (
|
|
421
|
+
name: localizeWithPath('vs/workbench/browser/parts/activitybar/activitybarPart', 'accounts', "Accounts"),
|
|
422
422
|
classNames: ThemeIcon.asClassNameArray(Codicon.account)
|
|
423
423
|
})));
|
|
424
424
|
this.globalActivityActionBar.push(this.accountsActivityAction, { index: ActivitybarPart_1.ACCOUNTS_ACTION_INDEX });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/auxiliaryBarPart.css.js';
|
|
3
|
-
import {
|
|
3
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
4
4
|
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
5
5
|
import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
|
|
6
6
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
@@ -63,8 +63,8 @@ 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
|
-
toAction({ id: ToggleAuxiliaryBarAction.ID, label: (
|
|
66
|
+
toAction({ id: ToggleSidebarPositionAction.ID, label: currentPositionRight ? localizeWithPath('vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart', 'move second side bar left', "Move Secondary Side Bar Left") : localizeWithPath('vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart', 'move second side bar right', "Move Secondary Side Bar Right"), run: () => this.commandService.executeCommand(ToggleSidebarPositionAction.ID) }),
|
|
67
|
+
toAction({ id: ToggleAuxiliaryBarAction.ID, label: localizeWithPath('vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart', 'hide second side bar', "Hide Secondary Side Bar"), run: () => this.commandService.executeCommand(ToggleAuxiliaryBarAction.ID) })
|
|
68
68
|
]);
|
|
69
69
|
}
|
|
70
70
|
toJSON() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import { toAction } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
4
4
|
import { illegalArgument } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
5
5
|
import { toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -129,7 +129,7 @@ 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: (
|
|
132
|
+
ariaLabel: localizeWithPath('vs/workbench/browser/parts/compositeBar', 'activityBarAriaLabel', "Active View Switcher"),
|
|
133
133
|
ariaRole: 'tablist',
|
|
134
134
|
animated: false,
|
|
135
135
|
preventLoopNavigation: this.options.preventLoopNavigation,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './media/compositepart.css.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import { defaultGenerator } from 'monaco-editor/esm/vs/base/common/idGenerator.js';
|
|
4
4
|
import { MutableDisposable, DisposableStore, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
5
5
|
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
@@ -184,7 +184,7 @@ 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((
|
|
187
|
+
toolBar.setAriaLabel(localizeWithPath('vs/workbench/browser/parts/compositePart', 'ariaCompositeToolbarLabel', "{0} actions", compositeTitle));
|
|
188
188
|
}
|
|
189
189
|
collectCompositeActions(composite) {
|
|
190
190
|
const menuIds = composite?.getMenuIds();
|
|
@@ -229,7 +229,7 @@ class CompositePart extends Part {
|
|
|
229
229
|
orientation: 0 ,
|
|
230
230
|
getKeyBinding: action => this.keybindingService.lookupKeybinding(action.id),
|
|
231
231
|
anchorAlignmentProvider: () => this.getTitleAreaDropDownAnchorAlignment(),
|
|
232
|
-
toggleMenuTitle: (
|
|
232
|
+
toggleMenuTitle: localizeWithPath('vs/workbench/browser/parts/compositePart', 'viewsAndMoreActions', "Views and More Actions..."),
|
|
233
233
|
telemetrySource: this.nameForTelemetry
|
|
234
234
|
}));
|
|
235
235
|
this.collectCompositeActions()();
|
|
@@ -244,7 +244,7 @@ class CompositePart extends Part {
|
|
|
244
244
|
updateTitle: (id, title, keybinding) => {
|
|
245
245
|
if (!this.activeComposite || this.activeComposite.getId() === id) {
|
|
246
246
|
titleLabel.innerText = title;
|
|
247
|
-
titleLabel.title = keybinding ? (
|
|
247
|
+
titleLabel.title = keybinding ? localizeWithPath('vs/workbench/browser/parts/compositePart', 'titleTooltip', "{0} ({1})", title, keybinding) : title;
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
250
|
updateStyles: () => {
|
|
@@ -8,7 +8,7 @@ import { DisposableStore, MutableDisposable, toDisposable, combinedDisposable }
|
|
|
8
8
|
import { extUri } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
9
9
|
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
10
10
|
import './media/breadcrumbscontrol.css.js';
|
|
11
|
-
import {
|
|
11
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
12
12
|
import { registerAction2, Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
13
13
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
14
14
|
import { RawContextKey, ContextKeyExpr, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
@@ -113,7 +113,7 @@ class FileItem extends BreadcrumbsItem {
|
|
|
113
113
|
this._disposables.add(label);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
const separatorIcon = registerIcon('breadcrumb-separator', Codicon.chevronRight, (
|
|
116
|
+
const separatorIcon = registerIcon('breadcrumb-separator', Codicon.chevronRight, localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsControl', 'separatorIcon', 'Icon for the separator in the breadcrumbs.'));
|
|
117
117
|
let BreadcrumbsControl = class BreadcrumbsControl {
|
|
118
118
|
static { BreadcrumbsControl_1 = this; }
|
|
119
119
|
static { this.HEIGHT = 22; }
|
|
@@ -124,9 +124,21 @@ let BreadcrumbsControl = class BreadcrumbsControl {
|
|
|
124
124
|
static { this.Payload_Reveal = {}; }
|
|
125
125
|
static { this.Payload_RevealAside = {}; }
|
|
126
126
|
static { this.Payload_Pick = {}; }
|
|
127
|
-
static { this.CK_BreadcrumbsPossible = ( new RawContextKey(
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
static { this.CK_BreadcrumbsPossible = ( new RawContextKey(
|
|
128
|
+
'breadcrumbsPossible',
|
|
129
|
+
false,
|
|
130
|
+
localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsControl', 'breadcrumbsPossible', "Whether the editor can show breadcrumbs")
|
|
131
|
+
)); }
|
|
132
|
+
static { this.CK_BreadcrumbsVisible = ( new RawContextKey(
|
|
133
|
+
'breadcrumbsVisible',
|
|
134
|
+
false,
|
|
135
|
+
localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsControl', 'breadcrumbsVisible', "Whether breadcrumbs are currently visible")
|
|
136
|
+
)); }
|
|
137
|
+
static { this.CK_BreadcrumbsActive = ( new RawContextKey(
|
|
138
|
+
'breadcrumbsActive',
|
|
139
|
+
false,
|
|
140
|
+
localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsControl', 'breadcrumbsActive', "Whether breadcrumbs have focus")
|
|
141
|
+
)); }
|
|
130
142
|
constructor(container, _options, _editorGroup, _contextKeyService, _contextViewService, _instantiationService, _quickInputService, _fileService, _editorService, _labelService, configurationService, breadcrumbsService) {
|
|
131
143
|
this._options = _options;
|
|
132
144
|
this._editorGroup = _editorGroup;
|
|
@@ -228,7 +240,7 @@ let BreadcrumbsControl = class BreadcrumbsControl {
|
|
|
228
240
|
this._widget.setEnabled(false);
|
|
229
241
|
this._widget.setItems([new (class extends BreadcrumbsItem {
|
|
230
242
|
render(container) {
|
|
231
|
-
container.innerText = (
|
|
243
|
+
container.innerText = localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsControl', 'empty', "no elements");
|
|
232
244
|
}
|
|
233
245
|
equals(other) {
|
|
234
246
|
return other === this;
|
|
@@ -453,21 +465,15 @@ registerAction2(class ToggleBreadcrumb extends Action2 {
|
|
|
453
465
|
super({
|
|
454
466
|
id: 'breadcrumbs.toggle',
|
|
455
467
|
title: {
|
|
456
|
-
value: (
|
|
457
|
-
mnemonicTitle: (
|
|
458
|
-
{ key: 'miBreadcrumbs', comment: ['&& denotes a mnemonic'] },
|
|
459
|
-
"Toggle &&Breadcrumbs"
|
|
460
|
-
)),
|
|
468
|
+
value: localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsControl', 'cmd.toggle', "Toggle Breadcrumbs"),
|
|
469
|
+
mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsControl', { key: 'miBreadcrumbs', comment: ['&& denotes a mnemonic'] }, "Toggle &&Breadcrumbs"),
|
|
461
470
|
original: 'Toggle Breadcrumbs',
|
|
462
471
|
},
|
|
463
472
|
category: Categories.View,
|
|
464
473
|
toggled: {
|
|
465
474
|
condition: ( ContextKeyExpr.equals('config.breadcrumbs.enabled', true)),
|
|
466
|
-
title: (
|
|
467
|
-
mnemonicTitle: (
|
|
468
|
-
{ key: 'miBreadcrumbs2', comment: ['&& denotes a mnemonic'] },
|
|
469
|
-
"&&Breadcrumbs"
|
|
470
|
-
))
|
|
475
|
+
title: localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsControl', 'cmd.toggle2', "Breadcrumbs"),
|
|
476
|
+
mnemonicTitle: localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsControl', { key: 'miBreadcrumbs2', comment: ['&& denotes a mnemonic'] }, "&&Breadcrumbs")
|
|
471
477
|
},
|
|
472
478
|
menu: [
|
|
473
479
|
{ id: MenuId.CommandPalette },
|
|
@@ -500,7 +506,7 @@ registerAction2(class FocusAndSelectBreadcrumbs extends Action2 {
|
|
|
500
506
|
super({
|
|
501
507
|
id: 'breadcrumbs.focusAndSelect',
|
|
502
508
|
title: {
|
|
503
|
-
value: (
|
|
509
|
+
value: localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsControl', 'cmd.focusAndSelect', "Focus and Select Breadcrumbs"),
|
|
504
510
|
original: 'Focus and Select Breadcrumbs'
|
|
505
511
|
},
|
|
506
512
|
precondition: BreadcrumbsControl.CK_BreadcrumbsVisible,
|
|
@@ -521,7 +527,7 @@ registerAction2(class FocusBreadcrumbs extends Action2 {
|
|
|
521
527
|
super({
|
|
522
528
|
id: 'breadcrumbs.focus',
|
|
523
529
|
title: {
|
|
524
|
-
value: (
|
|
530
|
+
value: localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsControl', 'cmd.focus', "Focus Breadcrumbs"),
|
|
525
531
|
original: 'Focus Breadcrumbs'
|
|
526
532
|
},
|
|
527
533
|
precondition: BreadcrumbsControl.CK_BreadcrumbsVisible,
|
|
@@ -18,7 +18,7 @@ import { isWorkspaceFolder, isWorkspace, IWorkspaceContextService } from 'monaco
|
|
|
18
18
|
import { ResourceLabels, DEFAULT_LABELS_CONTAINER } from 'vscode/vscode/vs/workbench/browser/labels';
|
|
19
19
|
import { BreadcrumbsConfig } from 'vscode/vscode/vs/workbench/browser/parts/editor/breadcrumbs';
|
|
20
20
|
import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
21
|
-
import {
|
|
21
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
22
22
|
import { SIDE_GROUP, IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
23
23
|
import { ITextResourceConfigurationService } from 'monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js';
|
|
24
24
|
|
|
@@ -201,7 +201,7 @@ class FileNavigationLabelProvider {
|
|
|
201
201
|
}
|
|
202
202
|
class FileAccessibilityProvider {
|
|
203
203
|
getWidgetAriaLabel() {
|
|
204
|
-
return (
|
|
204
|
+
return localizeWithPath('vs/workbench/browser/parts/editor/breadcrumbsPicker', 'breadcrumbs', "Breadcrumbs");
|
|
205
205
|
}
|
|
206
206
|
getAriaLabel(element) {
|
|
207
207
|
return element.name;
|
|
@@ -7,7 +7,7 @@ import { RunOnceScheduler } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
|
7
7
|
import { toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
8
8
|
import { isMacintosh, isWeb } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
9
9
|
import { assertIsDefined, assertAllDefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
10
|
-
import {
|
|
10
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
11
11
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
12
12
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
13
13
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
@@ -66,11 +66,7 @@ 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((
|
|
70
|
-
'dropIntoEditorPrompt',
|
|
71
|
-
"Hold __{0}__ to drop into editor",
|
|
72
|
-
isMacintosh ? '⇧' : 'Shift'
|
|
73
|
-
)), {});
|
|
69
|
+
this.dropIntoPromptElement = renderFormattedText(localizeWithPath('vs/workbench/browser/parts/editor/editorDropTarget', 'dropIntoEditorPrompt', "Hold __{0}__ to drop into editor", isMacintosh ? '⇧' : 'Shift'), {});
|
|
74
70
|
this.dropIntoPromptElement.classList.add('editor-group-overlay-drop-into-prompt');
|
|
75
71
|
this.overlay.appendChild(this.dropIntoPromptElement);
|
|
76
72
|
}
|
|
@@ -16,7 +16,7 @@ import { EDITOR_GROUP_EMPTY_BACKGROUND, EDITOR_GROUP_HEADER_BORDER, EDITOR_GROUP
|
|
|
16
16
|
import { EditorPanes } from './editorPanes.js';
|
|
17
17
|
import { IEditorProgressService } from 'monaco-editor/esm/vs/platform/progress/common/progress.js';
|
|
18
18
|
import { EditorProgressIndicator } from 'vscode/vscode/vs/workbench/services/progress/browser/progressIndicator';
|
|
19
|
-
import {
|
|
19
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
20
20
|
import { coalesce, firstOrDefault } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
21
21
|
import { MutableDisposable, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
22
22
|
import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
|
|
@@ -226,7 +226,7 @@ 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: (
|
|
229
|
+
ariaLabel: localizeWithPath('vs/workbench/browser/parts/editor/editorGroupView', 'ariaLabelGroupActions', "Empty editor group actions")
|
|
230
230
|
})));
|
|
231
231
|
const containerToolbarMenu = this._register(this.menuService.createMenu(MenuId.EmptyEditorGroup, this.scopedContextKeyService));
|
|
232
232
|
const updateContainerToolbar = () => {
|
|
@@ -298,7 +298,7 @@ let EditorGroupView = EditorGroupView_1 = class EditorGroupView extends Themable
|
|
|
298
298
|
if (this.isEmpty) {
|
|
299
299
|
this.element.classList.add('empty');
|
|
300
300
|
this.element.tabIndex = 0;
|
|
301
|
-
this.element.setAttribute('aria-label', (
|
|
301
|
+
this.element.setAttribute('aria-label', localizeWithPath('vs/workbench/browser/parts/editor/editorGroupView', 'emptyEditorGroup', "{0} (empty)", this.label));
|
|
302
302
|
}
|
|
303
303
|
else {
|
|
304
304
|
this.element.classList.remove('empty');
|
|
@@ -471,10 +471,10 @@ let EditorGroupView = EditorGroupView_1 = class EditorGroupView extends Themable
|
|
|
471
471
|
return this._index;
|
|
472
472
|
}
|
|
473
473
|
get label() {
|
|
474
|
-
return (
|
|
474
|
+
return localizeWithPath('vs/workbench/browser/parts/editor/editorGroupView', 'groupLabel', "Group {0}", this._index + 1);
|
|
475
475
|
}
|
|
476
476
|
get ariaLabel() {
|
|
477
|
-
return (
|
|
477
|
+
return localizeWithPath('vs/workbench/browser/parts/editor/editorGroupView', 'groupAriaLabel', "Editor Group {0}", this._index + 1);
|
|
478
478
|
}
|
|
479
479
|
get disposed() {
|
|
480
480
|
return this._disposed;
|
|
@@ -11,25 +11,19 @@ import { h, append, $, clearNode } from 'monaco-editor/esm/vs/base/browser/dom.j
|
|
|
11
11
|
import { CommandsRegistry } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
12
12
|
import { ContextKeyExpr, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
13
13
|
|
|
14
|
-
const showCommands = { text:
|
|
15
|
-
const quickAccess = { text:
|
|
16
|
-
const openFileNonMacOnly = { text:
|
|
17
|
-
const openFolderNonMacOnly = { text:
|
|
18
|
-
const openFileOrFolderMacOnly = { text:
|
|
19
|
-
const openRecent = { text:
|
|
20
|
-
const newUntitledFile = { text:
|
|
14
|
+
const showCommands = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', 'watermark.showCommands', "Show All Commands"), id: 'workbench.action.showCommands' };
|
|
15
|
+
const quickAccess = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', 'watermark.quickAccess', "Go to File"), id: 'workbench.action.quickOpen' };
|
|
16
|
+
const openFileNonMacOnly = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', 'watermark.openFile', "Open File"), id: 'workbench.action.files.openFile', mac: false };
|
|
17
|
+
const openFolderNonMacOnly = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', 'watermark.openFolder', "Open Folder"), id: 'workbench.action.files.openFolder', mac: false };
|
|
18
|
+
const openFileOrFolderMacOnly = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', 'watermark.openFileFolder', "Open File or Folder"), id: 'workbench.action.files.openFileFolder', mac: true };
|
|
19
|
+
const openRecent = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', 'watermark.openRecent', "Open Recent"), id: 'workbench.action.openRecent' };
|
|
20
|
+
const newUntitledFile = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', 'watermark.newUntitledFile', "New Untitled Text File"), id: 'workbench.action.files.newUntitledFile' };
|
|
21
21
|
const newUntitledFileMacOnly = Object.assign({ mac: true }, newUntitledFile);
|
|
22
|
-
const findInFiles = { text:
|
|
23
|
-
const toggleTerminal = { text: (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
)
|
|
27
|
-
const startDebugging = { text: ( nls.localize('watermark.startDebugging', "Start Debugging")), id: 'workbench.action.debug.start', when: ( ContextKeyExpr.equals('terminalProcessSupported', true)) };
|
|
28
|
-
const toggleFullscreen = { text: ( nls.localize(
|
|
29
|
-
{ key: 'watermark.toggleFullscreen', comment: ['toggle is a verb here'] },
|
|
30
|
-
"Toggle Full Screen"
|
|
31
|
-
)), id: 'workbench.action.toggleFullScreen', when: ( ( ContextKeyExpr.equals('terminalProcessSupported', true)).negate()) };
|
|
32
|
-
const showSettings = { text: ( nls.localize('watermark.showSettings', "Show Settings")), id: 'workbench.action.openSettings', when: ( ( ContextKeyExpr.equals('terminalProcessSupported', true)).negate()) };
|
|
22
|
+
const findInFiles = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', 'watermark.findInFiles', "Find in Files"), id: 'workbench.action.findInFiles' };
|
|
23
|
+
const toggleTerminal = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', { key: 'watermark.toggleTerminal', comment: ['toggle is a verb here'] }, "Toggle Terminal"), id: 'workbench.action.terminal.toggleTerminal', when: ( ContextKeyExpr.equals('terminalProcessSupported', true)) };
|
|
24
|
+
const startDebugging = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', 'watermark.startDebugging', "Start Debugging"), id: 'workbench.action.debug.start', when: ( ContextKeyExpr.equals('terminalProcessSupported', true)) };
|
|
25
|
+
const toggleFullscreen = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', { key: 'watermark.toggleFullscreen', comment: ['toggle is a verb here'] }, "Toggle Full Screen"), id: 'workbench.action.toggleFullScreen', when: ( ( ContextKeyExpr.equals('terminalProcessSupported', true)).negate()) };
|
|
26
|
+
const showSettings = { text: nls.localizeWithPath('vs/workbench/browser/parts/editor/editorGroupWatermark', 'watermark.showSettings', "Show Settings"), id: 'workbench.action.openSettings', when: ( ( ContextKeyExpr.equals('terminalProcessSupported', true)).negate()) };
|
|
33
27
|
const noFolderEntries = [
|
|
34
28
|
showCommands,
|
|
35
29
|
openFileNonMacOnly,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
4
4
|
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
5
5
|
import { Disposable, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -101,7 +101,7 @@ let EditorPanes = class EditorPanes extends Disposable {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
if (!message) {
|
|
104
|
-
message = (
|
|
104
|
+
message = localizeWithPath('vs/workbench/browser/parts/editor/editorPanes', 'editorOpenErrorDialog', "Unable to open '{0}'", editor.getName());
|
|
105
105
|
}
|
|
106
106
|
const buttons = [];
|
|
107
107
|
if (errorActions && errorActions.length > 0) {
|
|
@@ -114,7 +114,7 @@ let EditorPanes = class EditorPanes extends Disposable {
|
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
116
|
buttons.push({
|
|
117
|
-
label: (
|
|
117
|
+
label: localizeWithPath('vs/workbench/browser/parts/editor/editorPanes', { key: 'ok', comment: ['&& denotes a mnemonic'] }, "&&OK"),
|
|
118
118
|
run: () => undefined
|
|
119
119
|
});
|
|
120
120
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/editortabscontrol.css.js';
|
|
3
|
-
import {
|
|
3
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
4
4
|
import { DataTransfers, applyDragImage } from 'monaco-editor/esm/vs/base/browser/dnd.js';
|
|
5
5
|
import { addDisposableListener, EventType } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
6
6
|
import { StandardMouseEvent } from 'monaco-editor/esm/vs/base/browser/mouseEvent.js';
|
|
@@ -91,7 +91,7 @@ let EditorTabsControl = class EditorTabsControl extends Themable {
|
|
|
91
91
|
this.editorActionsToolbar = this._register(this.instantiationService.createInstance(WorkbenchToolBar, container, {
|
|
92
92
|
actionViewItemProvider: action => this.actionViewItemProvider(action),
|
|
93
93
|
orientation: 0 ,
|
|
94
|
-
ariaLabel: (
|
|
94
|
+
ariaLabel: localizeWithPath('vs/workbench/browser/parts/editor/editorTabsControl', 'ariaLabelEditorActions', "Editor actions"),
|
|
95
95
|
getKeyBinding: action => this.getKeybinding(action),
|
|
96
96
|
actionRunner: this._register(( new EditorCommandsContextActionRunner(context))),
|
|
97
97
|
anchorAlignmentProvider: () => 1 ,
|
|
@@ -182,7 +182,7 @@ let EditorTabsControl = class EditorTabsControl extends Themable {
|
|
|
182
182
|
if (this.groupView.activeEditor) {
|
|
183
183
|
let label = this.groupView.activeEditor.getName();
|
|
184
184
|
if (this.groupsView.partOptions.showTabs && this.groupView.count > 1) {
|
|
185
|
-
label = (
|
|
185
|
+
label = localizeWithPath('vs/workbench/browser/parts/editor/editorTabsControl', 'draggedEditorGroup', "{0} (+{1})", label, this.groupView.count - 1);
|
|
186
186
|
}
|
|
187
187
|
applyDragImage(e, label, 'monaco-editor-group-drag-image', this.getColor(listActiveSelectionBackground), this.getColor(listActiveSelectionForeground));
|
|
188
188
|
}
|
|
@@ -25,7 +25,7 @@ import { DraggedEditorIdentifier, DraggedEditorGroupIdentifier, extractTreeDropD
|
|
|
25
25
|
import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
26
26
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
27
27
|
import { Dimension, addDisposableListener, EventType, EventHelper, DragAndDropObserver, clearNode, scheduleAtNextAnimationFrame, findParentWithClass } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
28
|
-
import {
|
|
28
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
29
29
|
import { CloseOneEditorAction, UnpinEditorAction } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorActions';
|
|
30
30
|
import { assertAllDefined, assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
31
31
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
@@ -525,7 +525,10 @@ let MultiEditorTabsControl = class MultiEditorTabsControl extends EditorTabsCont
|
|
|
525
525
|
groupId: this.groupView.id,
|
|
526
526
|
get editorIndex() { return that.toEditorIndex(tabIndex); }
|
|
527
527
|
}));
|
|
528
|
-
const tabActionBar = ( new ActionBar(
|
|
528
|
+
const tabActionBar = ( new ActionBar(
|
|
529
|
+
tabActionsContainer,
|
|
530
|
+
{ ariaLabel: localizeWithPath('vs/workbench/browser/parts/editor/multiEditorTabsControl', 'ariaLabelTabActions', "Tab actions"), actionRunner: tabActionRunner }
|
|
531
|
+
));
|
|
529
532
|
const tabActionListener = tabActionBar.onWillRun(e => {
|
|
530
533
|
if (e.action.id === this.closeEditorAction.id) {
|
|
531
534
|
this.blockRevealActiveTabOnce();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/basepanelpart.css.js';
|
|
3
3
|
import 'vscode/vscode/vs/workbench/browser/parts/panel/media/panelpart.css';
|
|
4
|
-
import {
|
|
4
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
5
5
|
import { toAction, Separator, SubmenuAction } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
6
6
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
7
7
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
@@ -129,7 +129,7 @@ let BasePanelPart = class BasePanelPart extends CompositePart {
|
|
|
129
129
|
const viewContainer = this.viewDescriptorService.getViewContainerById(compositeId);
|
|
130
130
|
const defaultLocation = this.viewDescriptorService.getDefaultViewContainerLocation(viewContainer);
|
|
131
131
|
if (defaultLocation !== this.viewDescriptorService.getViewContainerLocation(viewContainer)) {
|
|
132
|
-
result.push(toAction({ id: 'resetLocationAction', label: (
|
|
132
|
+
result.push(toAction({ id: 'resetLocationAction', label: localizeWithPath('vs/workbench/browser/parts/panel/panelPart', 'resetLocation', "Reset Location"), run: () => this.viewDescriptorService.moveViewContainerToLocation(viewContainer, defaultLocation) }));
|
|
133
133
|
}
|
|
134
134
|
else {
|
|
135
135
|
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
@@ -137,7 +137,7 @@ let BasePanelPart = class BasePanelPart extends CompositePart {
|
|
|
137
137
|
const viewToReset = viewContainerModel.allViewDescriptors[0];
|
|
138
138
|
const defaultContainer = this.viewDescriptorService.getDefaultContainerById(viewToReset.id);
|
|
139
139
|
if (defaultContainer !== viewContainer) {
|
|
140
|
-
result.push(toAction({ id: 'resetLocationAction', label: (
|
|
140
|
+
result.push(toAction({ id: 'resetLocationAction', label: localizeWithPath('vs/workbench/browser/parts/panel/panelPart', 'resetLocation', "Reset Location"), run: () => this.viewDescriptorService.moveViewsToContainer([viewToReset], defaultContainer) }));
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -355,7 +355,7 @@ let BasePanelPart = class BasePanelPart extends CompositePart {
|
|
|
355
355
|
this.emptyPanelMessageElement.classList.add('empty-panel-message-area');
|
|
356
356
|
const messageElement = document.createElement('div');
|
|
357
357
|
messageElement.classList.add('empty-panel-message');
|
|
358
|
-
messageElement.innerText = (
|
|
358
|
+
messageElement.innerText = localizeWithPath('vs/workbench/browser/parts/panel/panelPart', 'panel.emptyMessage', "Drag a view here to display.");
|
|
359
359
|
this.emptyPanelMessageElement.appendChild(messageElement);
|
|
360
360
|
contentArea.appendChild(this.emptyPanelMessageElement);
|
|
361
361
|
this._register(CompositeDragAndDropObserver.INSTANCE.registerTarget(this.emptyPanelMessageElement, {
|
|
@@ -392,7 +392,7 @@ let BasePanelPart = class BasePanelPart extends CompositePart {
|
|
|
392
392
|
orientation: 0 ,
|
|
393
393
|
getKeyBinding: action => this.keybindingService.lookupKeybinding(action.id),
|
|
394
394
|
anchorAlignmentProvider: () => this.getTitleAreaDropDownAnchorAlignment(),
|
|
395
|
-
toggleMenuTitle: (
|
|
395
|
+
toggleMenuTitle: localizeWithPath('vs/workbench/browser/parts/panel/panelPart', 'moreActions', "More Actions...")
|
|
396
396
|
})));
|
|
397
397
|
this.updateGlobalToolbarActions();
|
|
398
398
|
return element;
|
|
@@ -718,9 +718,17 @@ let PanelPart = class PanelPart extends BasePanelPart {
|
|
|
718
718
|
panelPositionMenu.dispose();
|
|
719
719
|
actions.push(...[
|
|
720
720
|
( new Separator()),
|
|
721
|
-
( new SubmenuAction(
|
|
722
|
-
|
|
723
|
-
|
|
721
|
+
( new SubmenuAction(
|
|
722
|
+
'workbench.action.panel.position',
|
|
723
|
+
localizeWithPath('vs/workbench/browser/parts/panel/panelPart', 'panel position', "Panel Position"),
|
|
724
|
+
positionActions
|
|
725
|
+
)),
|
|
726
|
+
( new SubmenuAction(
|
|
727
|
+
'workbench.action.panel.align',
|
|
728
|
+
localizeWithPath('vs/workbench/browser/parts/panel/panelPart', 'align panel', "Align Panel"),
|
|
729
|
+
alignActions
|
|
730
|
+
)),
|
|
731
|
+
toAction({ id: TogglePanelAction.ID, label: localizeWithPath('vs/workbench/browser/parts/panel/panelPart', 'hidePanel', "Hide Panel"), run: () => this.commandService.executeCommand(TogglePanelAction.ID) })
|
|
724
732
|
]);
|
|
725
733
|
}
|
|
726
734
|
layout(width, height, top, left) {
|
|
@@ -4,7 +4,7 @@ import { Toggle } from 'monaco-editor/esm/vs/base/browser/ui/toggle/toggle.js';
|
|
|
4
4
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
5
5
|
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
6
6
|
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
7
|
-
import {
|
|
7
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
8
8
|
import { defaultToggleStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
|
|
9
9
|
|
|
10
10
|
class CheckboxStateHandler extends Disposable {
|
|
@@ -86,7 +86,7 @@ class TreeItemCheckbox extends Disposable {
|
|
|
86
86
|
}
|
|
87
87
|
checkboxHoverContent(checkbox) {
|
|
88
88
|
return checkbox.tooltip ? checkbox.tooltip :
|
|
89
|
-
checkbox.isChecked ? (
|
|
89
|
+
checkbox.isChecked ? localizeWithPath('vs/workbench/browser/parts/views/checkbox', 'checked', 'Checked') : localizeWithPath('vs/workbench/browser/parts/views/checkbox', 'unchecked', 'Unchecked');
|
|
90
90
|
}
|
|
91
91
|
setAccessibilityInformation(checkbox) {
|
|
92
92
|
if (this.toggle && checkbox.accessibilityInformation) {
|