@codingame/monaco-vscode-api 1.82.3 → 1.82.4-next.1

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.
Files changed (29) hide show
  1. package/missing-services.js +18 -7
  2. package/monaco-editor-treemending.patch +1026 -1026
  3. package/package.json +1 -1
  4. package/service-override/keybindings.js +11 -0
  5. package/service-override/viewBanner.d.ts +6 -0
  6. package/service-override/viewBanner.js +10 -0
  7. package/service-override/viewStatusBar.d.ts +6 -0
  8. package/service-override/viewStatusBar.js +10 -0
  9. package/service-override/viewTitleBar.d.ts +6 -0
  10. package/service-override/viewTitleBar.js +10 -0
  11. package/service-override/views.d.ts +0 -1
  12. package/service-override/views.js +12 -14
  13. package/services.d.ts +1 -1
  14. package/services.js +2 -2
  15. package/vscode/src/vs/base/common/actions.d.ts +15 -1
  16. package/vscode/src/vs/base/common/async.d.ts +31 -1
  17. package/vscode/src/vs/platform/backup/common/backup.d.ts +14 -0
  18. package/vscode/src/vs/platform/label/common/label.d.ts +62 -0
  19. package/vscode/src/vs/platform/update/common/update.d.ts +112 -0
  20. package/vscode/src/vs/platform/window/common/window.d.ts +2 -1
  21. package/vscode/src/vs/platform/workspaces/common/workspaces.d.ts +43 -1
  22. package/vscode/src/vs/workbench/browser/contextkeys.js +249 -0
  23. package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.d.ts +45 -0
  24. package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +9 -9
  25. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.d.ts +115 -0
  26. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +77 -0
  27. package/vscode/src/vs/workbench/common/contextkeys.js +20 -1
  28. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +2 -2
  29. package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +10 -10
@@ -0,0 +1,249 @@
1
+ import { __decorate, __param } from '../../../../../external/tslib/tslib.es6.js';
2
+ import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
3
+ import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
+ import { setConstant, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
5
+ import { IsMacContext, IsLinuxContext, IsWindowsContext, IsWebContext, IsMacNativeContext, IsIOSContext, IsMobileContext, IsDevelopmentContext, ProductQualityContext, InputFocusedContext } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkeys.js';
6
+ import { RemoteNameContext, VirtualWorkspaceContext, TemporaryWorkspaceContext, HasWebFileSystemAccess, EmbedderIdentifierContext, ActiveEditorContext, ActiveEditorReadonlyContext, ActiveEditorCanToggleReadonlyContext, ActiveEditorCanRevertContext, ActiveEditorCanSplitInGroupContext, ActiveEditorAvailableEditorIdsContext, EditorsVisibleContext, TextCompareEditorVisibleContext, TextCompareEditorActiveContext, SideBySideEditorActiveContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorGroupLockedContext, MultipleEditorGroupsContext, DirtyWorkingCopiesContext, WorkbenchStateContext, WorkspaceFolderCountContext, OpenFolderWorkspaceSupportContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, SplitEditorsVertically, IsFullscreenContext, InEditorZenModeContext, IsCenteredLayoutContext, EditorAreaVisibleContext, EditorTabsVisibleContext, SideBarVisibleContext, PanelPositionContext, PanelVisibleContext, PanelMaximizedContext, PanelAlignmentContext, AuxiliaryBarVisibleContext, applyAvailableEditorIds } from '../common/contextkeys.js';
7
+ import { TEXT_DIFF_EDITOR_ID, SIDE_BY_SIDE_EDITOR_ID, EditorResourceAccessor, SideBySideEditor } from '../common/editor.js';
8
+ import { addDisposableListener, EventType, trackFocus } from 'monaco-editor/esm/vs/base/browser/dom.js';
9
+ import { preferredSideBySideGroupDirection, IEditorGroupsService } from '../services/editor/common/editorGroupsService.js';
10
+ import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
11
+ import { IWorkbenchEnvironmentService } from '../services/environment/common/environmentService.js';
12
+ import { IEditorService } from '../services/editor/common/editorService.js';
13
+ import { isTemporaryWorkspace, IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
14
+ import { positionToString, IWorkbenchLayoutService } from '../services/layout/browser/layoutService.js';
15
+ import { getRemoteName } from 'monaco-editor/esm/vs/platform/remote/common/remoteHosts.js';
16
+ import { getVirtualWorkspaceScheme } from '../../platform/workspace/common/virtualWorkspace.js';
17
+ import { IWorkingCopyService } from '../services/workingCopy/common/workingCopyService.js';
18
+ import { isNative } from 'monaco-editor/esm/vs/base/common/platform.js';
19
+ import { IEditorResolverService } from '../services/editor/common/editorResolverService.js';
20
+ import { IPaneCompositePartService } from '../services/panecomposite/browser/panecomposite.js';
21
+ import { WebFileSystemAccess } from 'monaco-editor/esm/vs/platform/files/browser/webFileSystemAccess.js';
22
+ import { IProductService } from 'monaco-editor/esm/vs/platform/product/common/productService.js';
23
+ import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
24
+ let WorkbenchContextKeysHandler = class WorkbenchContextKeysHandler extends Disposable {
25
+ constructor(contextKeyService, contextService, configurationService, environmentService, productService, editorService, editorResolverService, editorGroupService, layoutService, paneCompositeService, workingCopyService, fileService) {
26
+ super();
27
+ this.contextKeyService = contextKeyService;
28
+ this.contextService = contextService;
29
+ this.configurationService = configurationService;
30
+ this.environmentService = environmentService;
31
+ this.productService = productService;
32
+ this.editorService = editorService;
33
+ this.editorResolverService = editorResolverService;
34
+ this.editorGroupService = editorGroupService;
35
+ this.layoutService = layoutService;
36
+ this.paneCompositeService = paneCompositeService;
37
+ this.workingCopyService = workingCopyService;
38
+ this.fileService = fileService;
39
+ IsMacContext.bindTo(this.contextKeyService);
40
+ IsLinuxContext.bindTo(this.contextKeyService);
41
+ IsWindowsContext.bindTo(this.contextKeyService);
42
+ IsWebContext.bindTo(this.contextKeyService);
43
+ IsMacNativeContext.bindTo(this.contextKeyService);
44
+ IsIOSContext.bindTo(this.contextKeyService);
45
+ IsMobileContext.bindTo(this.contextKeyService);
46
+ RemoteNameContext.bindTo(this.contextKeyService).set(getRemoteName(this.environmentService.remoteAuthority) || '');
47
+ this.virtualWorkspaceContext = VirtualWorkspaceContext.bindTo(this.contextKeyService);
48
+ this.temporaryWorkspaceContext = TemporaryWorkspaceContext.bindTo(this.contextKeyService);
49
+ this.updateWorkspaceContextKeys();
50
+ HasWebFileSystemAccess.bindTo(this.contextKeyService).set(WebFileSystemAccess.supported(window));
51
+ const isDevelopment = !this.environmentService.isBuilt || this.environmentService.isExtensionDevelopment;
52
+ IsDevelopmentContext.bindTo(this.contextKeyService).set(isDevelopment);
53
+ setConstant(IsDevelopmentContext.key, isDevelopment);
54
+ ProductQualityContext.bindTo(this.contextKeyService).set(this.productService.quality || '');
55
+ EmbedderIdentifierContext.bindTo(this.contextKeyService).set(productService.embedderIdentifier);
56
+ this.activeEditorContext = ActiveEditorContext.bindTo(this.contextKeyService);
57
+ this.activeEditorIsReadonly = ActiveEditorReadonlyContext.bindTo(this.contextKeyService);
58
+ this.activeEditorCanToggleReadonly = ActiveEditorCanToggleReadonlyContext.bindTo(this.contextKeyService);
59
+ this.activeEditorCanRevert = ActiveEditorCanRevertContext.bindTo(this.contextKeyService);
60
+ this.activeEditorCanSplitInGroup = ActiveEditorCanSplitInGroupContext.bindTo(this.contextKeyService);
61
+ this.activeEditorAvailableEditorIds = ActiveEditorAvailableEditorIdsContext.bindTo(this.contextKeyService);
62
+ this.editorsVisibleContext = EditorsVisibleContext.bindTo(this.contextKeyService);
63
+ this.textCompareEditorVisibleContext = TextCompareEditorVisibleContext.bindTo(this.contextKeyService);
64
+ this.textCompareEditorActiveContext = TextCompareEditorActiveContext.bindTo(this.contextKeyService);
65
+ this.sideBySideEditorActiveContext = SideBySideEditorActiveContext.bindTo(this.contextKeyService);
66
+ this.activeEditorGroupEmpty = ActiveEditorGroupEmptyContext.bindTo(this.contextKeyService);
67
+ this.activeEditorGroupIndex = ActiveEditorGroupIndexContext.bindTo(this.contextKeyService);
68
+ this.activeEditorGroupLast = ActiveEditorGroupLastContext.bindTo(this.contextKeyService);
69
+ this.activeEditorGroupLocked = ActiveEditorGroupLockedContext.bindTo(this.contextKeyService);
70
+ this.multipleEditorGroupsContext = MultipleEditorGroupsContext.bindTo(this.contextKeyService);
71
+ this.dirtyWorkingCopiesContext = DirtyWorkingCopiesContext.bindTo(this.contextKeyService);
72
+ this.dirtyWorkingCopiesContext.set(this.workingCopyService.hasDirty);
73
+ this.inputFocusedContext = InputFocusedContext.bindTo(this.contextKeyService);
74
+ this.workbenchStateContext = WorkbenchStateContext.bindTo(this.contextKeyService);
75
+ this.updateWorkbenchStateContextKey();
76
+ this.workspaceFolderCountContext = WorkspaceFolderCountContext.bindTo(this.contextKeyService);
77
+ this.updateWorkspaceFolderCountContextKey();
78
+ this.openFolderWorkspaceSupportContext = OpenFolderWorkspaceSupportContext.bindTo(this.contextKeyService);
79
+ this.openFolderWorkspaceSupportContext.set(isNative || typeof this.environmentService.remoteAuthority === 'string');
80
+ this.emptyWorkspaceSupportContext = EmptyWorkspaceSupportContext.bindTo(this.contextKeyService);
81
+ this.emptyWorkspaceSupportContext.set(isNative || typeof this.environmentService.remoteAuthority === 'string');
82
+ this.enterMultiRootWorkspaceSupportContext = EnterMultiRootWorkspaceSupportContext.bindTo(this.contextKeyService);
83
+ this.enterMultiRootWorkspaceSupportContext.set(isNative || typeof this.environmentService.remoteAuthority === 'string');
84
+ this.splitEditorsVerticallyContext = SplitEditorsVertically.bindTo(this.contextKeyService);
85
+ this.updateSplitEditorsVerticallyContext();
86
+ this.isFullscreenContext = IsFullscreenContext.bindTo(this.contextKeyService);
87
+ this.inZenModeContext = InEditorZenModeContext.bindTo(this.contextKeyService);
88
+ this.isCenteredLayoutContext = IsCenteredLayoutContext.bindTo(this.contextKeyService);
89
+ this.editorAreaVisibleContext = EditorAreaVisibleContext.bindTo(this.contextKeyService);
90
+ this.editorTabsVisibleContext = EditorTabsVisibleContext.bindTo(this.contextKeyService);
91
+ this.sideBarVisibleContext = SideBarVisibleContext.bindTo(this.contextKeyService);
92
+ this.panelPositionContext = PanelPositionContext.bindTo(this.contextKeyService);
93
+ this.panelPositionContext.set(positionToString(this.layoutService.getPanelPosition()));
94
+ this.panelVisibleContext = PanelVisibleContext.bindTo(this.contextKeyService);
95
+ this.panelVisibleContext.set(this.layoutService.isVisible("workbench.parts.panel" ));
96
+ this.panelMaximizedContext = PanelMaximizedContext.bindTo(this.contextKeyService);
97
+ this.panelMaximizedContext.set(this.layoutService.isPanelMaximized());
98
+ this.panelAlignmentContext = PanelAlignmentContext.bindTo(this.contextKeyService);
99
+ this.panelAlignmentContext.set(this.layoutService.getPanelAlignment());
100
+ this.auxiliaryBarVisibleContext = AuxiliaryBarVisibleContext.bindTo(this.contextKeyService);
101
+ this.auxiliaryBarVisibleContext.set(this.layoutService.isVisible("workbench.parts.auxiliarybar" ));
102
+ this.registerListeners();
103
+ }
104
+ registerListeners() {
105
+ this.editorGroupService.whenReady.then(() => {
106
+ this.updateEditorAreaContextKeys();
107
+ this.updateEditorContextKeys();
108
+ });
109
+ this._register(this.editorService.onDidActiveEditorChange(() => this.updateEditorContextKeys()));
110
+ this._register(this.editorService.onDidVisibleEditorsChange(() => this.updateEditorContextKeys()));
111
+ this._register(this.editorGroupService.onDidAddGroup(() => this.updateEditorContextKeys()));
112
+ this._register(this.editorGroupService.onDidRemoveGroup(() => this.updateEditorContextKeys()));
113
+ this._register(this.editorGroupService.onDidChangeGroupIndex(() => this.updateEditorContextKeys()));
114
+ this._register(this.editorGroupService.onDidChangeActiveGroup(() => this.updateEditorGroupContextKeys()));
115
+ this._register(this.editorGroupService.onDidChangeGroupLocked(() => this.updateEditorGroupContextKeys()));
116
+ this._register(this.editorGroupService.onDidChangeEditorPartOptions(() => this.updateEditorAreaContextKeys()));
117
+ this._register(addDisposableListener(window, EventType.FOCUS_IN, () => this.updateInputContextKeys(), true));
118
+ this._register(this.contextService.onDidChangeWorkbenchState(() => this.updateWorkbenchStateContextKey()));
119
+ this._register(this.contextService.onDidChangeWorkspaceFolders(() => {
120
+ this.updateWorkspaceFolderCountContextKey();
121
+ this.updateWorkspaceContextKeys();
122
+ }));
123
+ this._register(this.configurationService.onDidChangeConfiguration(e => {
124
+ if (e.affectsConfiguration('workbench.editor.openSideBySideDirection')) {
125
+ this.updateSplitEditorsVerticallyContext();
126
+ }
127
+ }));
128
+ this._register(this.layoutService.onDidChangeZenMode(enabled => this.inZenModeContext.set(enabled)));
129
+ this._register(this.layoutService.onDidChangeFullscreen(fullscreen => this.isFullscreenContext.set(fullscreen)));
130
+ this._register(this.layoutService.onDidChangeCenteredLayout(centered => this.isCenteredLayoutContext.set(centered)));
131
+ this._register(this.layoutService.onDidChangePanelPosition(position => this.panelPositionContext.set(position)));
132
+ this._register(this.layoutService.onDidChangePanelAlignment(alignment => this.panelAlignmentContext.set(alignment)));
133
+ this._register(this.paneCompositeService.onDidPaneCompositeClose(() => this.updateSideBarContextKeys()));
134
+ this._register(this.paneCompositeService.onDidPaneCompositeOpen(() => this.updateSideBarContextKeys()));
135
+ this._register(this.layoutService.onDidChangePartVisibility(() => {
136
+ this.editorAreaVisibleContext.set(this.layoutService.isVisible("workbench.parts.editor" ));
137
+ this.panelVisibleContext.set(this.layoutService.isVisible("workbench.parts.panel" ));
138
+ this.panelMaximizedContext.set(this.layoutService.isPanelMaximized());
139
+ this.auxiliaryBarVisibleContext.set(this.layoutService.isVisible("workbench.parts.auxiliarybar" ));
140
+ }));
141
+ this._register(this.workingCopyService.onDidChangeDirty(workingCopy => this.dirtyWorkingCopiesContext.set(workingCopy.isDirty() || this.workingCopyService.hasDirty)));
142
+ }
143
+ updateEditorAreaContextKeys() {
144
+ this.editorTabsVisibleContext.set(!!this.editorGroupService.partOptions.showTabs);
145
+ }
146
+ updateEditorContextKeys() {
147
+ const activeEditorPane = this.editorService.activeEditorPane;
148
+ const visibleEditorPanes = this.editorService.visibleEditorPanes;
149
+ this.textCompareEditorActiveContext.set(activeEditorPane?.getId() === TEXT_DIFF_EDITOR_ID);
150
+ this.textCompareEditorVisibleContext.set(( visibleEditorPanes.some(editorPane => editorPane.getId() === TEXT_DIFF_EDITOR_ID)));
151
+ this.sideBySideEditorActiveContext.set(activeEditorPane?.getId() === SIDE_BY_SIDE_EDITOR_ID);
152
+ if (visibleEditorPanes.length > 0) {
153
+ this.editorsVisibleContext.set(true);
154
+ }
155
+ else {
156
+ this.editorsVisibleContext.reset();
157
+ }
158
+ if (!this.editorService.activeEditor) {
159
+ this.activeEditorGroupEmpty.set(true);
160
+ }
161
+ else {
162
+ this.activeEditorGroupEmpty.reset();
163
+ }
164
+ this.updateEditorGroupContextKeys();
165
+ if (activeEditorPane) {
166
+ this.activeEditorContext.set(activeEditorPane.getId());
167
+ this.activeEditorCanRevert.set(!activeEditorPane.input.hasCapability(4 ));
168
+ this.activeEditorCanSplitInGroup.set(activeEditorPane.input.hasCapability(32 ));
169
+ applyAvailableEditorIds(this.activeEditorAvailableEditorIds, activeEditorPane.input, this.editorResolverService);
170
+ this.activeEditorIsReadonly.set(!!activeEditorPane.input.isReadonly());
171
+ const primaryEditorResource = EditorResourceAccessor.getOriginalUri(activeEditorPane.input, { supportSideBySide: SideBySideEditor.PRIMARY });
172
+ this.activeEditorCanToggleReadonly.set(!!primaryEditorResource && this.fileService.hasProvider(primaryEditorResource) && !this.fileService.hasCapability(primaryEditorResource, 2048 ));
173
+ }
174
+ else {
175
+ this.activeEditorContext.reset();
176
+ this.activeEditorIsReadonly.reset();
177
+ this.activeEditorCanToggleReadonly.reset();
178
+ this.activeEditorCanRevert.reset();
179
+ this.activeEditorCanSplitInGroup.reset();
180
+ this.activeEditorAvailableEditorIds.reset();
181
+ }
182
+ }
183
+ updateEditorGroupContextKeys() {
184
+ const groupCount = this.editorGroupService.count;
185
+ if (groupCount > 1) {
186
+ this.multipleEditorGroupsContext.set(true);
187
+ }
188
+ else {
189
+ this.multipleEditorGroupsContext.reset();
190
+ }
191
+ const activeGroup = this.editorGroupService.activeGroup;
192
+ this.activeEditorGroupIndex.set(activeGroup.index + 1);
193
+ this.activeEditorGroupLast.set(activeGroup.index === groupCount - 1);
194
+ this.activeEditorGroupLocked.set(activeGroup.isLocked);
195
+ }
196
+ updateInputContextKeys() {
197
+ function activeElementIsInput() {
198
+ return !!document.activeElement && (document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === 'TEXTAREA');
199
+ }
200
+ const isInputFocused = activeElementIsInput();
201
+ this.inputFocusedContext.set(isInputFocused);
202
+ if (isInputFocused) {
203
+ const tracker = trackFocus(document.activeElement);
204
+ Event.once(tracker.onDidBlur)(() => {
205
+ this.inputFocusedContext.set(activeElementIsInput());
206
+ tracker.dispose();
207
+ });
208
+ }
209
+ }
210
+ updateWorkbenchStateContextKey() {
211
+ this.workbenchStateContext.set(this.getWorkbenchStateString());
212
+ }
213
+ updateWorkspaceFolderCountContextKey() {
214
+ this.workspaceFolderCountContext.set(this.contextService.getWorkspace().folders.length);
215
+ }
216
+ updateSplitEditorsVerticallyContext() {
217
+ const direction = preferredSideBySideGroupDirection(this.configurationService);
218
+ this.splitEditorsVerticallyContext.set(direction === 1 );
219
+ }
220
+ getWorkbenchStateString() {
221
+ switch (this.contextService.getWorkbenchState()) {
222
+ case 1 : return 'empty';
223
+ case 2 : return 'folder';
224
+ case 3 : return 'workspace';
225
+ }
226
+ }
227
+ updateSideBarContextKeys() {
228
+ this.sideBarVisibleContext.set(this.layoutService.isVisible("workbench.parts.sidebar" ));
229
+ }
230
+ updateWorkspaceContextKeys() {
231
+ this.virtualWorkspaceContext.set(getVirtualWorkspaceScheme(this.contextService.getWorkspace()) || '');
232
+ this.temporaryWorkspaceContext.set(isTemporaryWorkspace(this.contextService.getWorkspace()));
233
+ }
234
+ };
235
+ WorkbenchContextKeysHandler = ( __decorate([
236
+ ( __param(0, IContextKeyService)),
237
+ ( __param(1, IWorkspaceContextService)),
238
+ ( __param(2, IConfigurationService)),
239
+ ( __param(3, IWorkbenchEnvironmentService)),
240
+ ( __param(4, IProductService)),
241
+ ( __param(5, IEditorService)),
242
+ ( __param(6, IEditorResolverService)),
243
+ ( __param(7, IEditorGroupsService)),
244
+ ( __param(8, IWorkbenchLayoutService)),
245
+ ( __param(9, IPaneCompositePartService)),
246
+ ( __param(10, IWorkingCopyService)),
247
+ ( __param(11, IFileService))
248
+ ], WorkbenchContextKeysHandler));
249
+ export { WorkbenchContextKeysHandler };
@@ -0,0 +1,45 @@
1
+ import { Event } from '../../../../base/common/event.js';
2
+ import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
3
+ import { IStorageService } from '../../../../platform/storage/common/storage.js';
4
+ import { IThemeService } from '../../../../platform/theme/common/themeService.js';
5
+ import { Part } from '../../part.js';
6
+ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
7
+ import { IBannerService, IBannerItem } from '../../../services/banner/browser/bannerService.js';
8
+ import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
9
+
10
+ declare class BannerPart extends Part implements IBannerService {
11
+ private readonly contextKeyService;
12
+ private readonly instantiationService;
13
+ readonly _serviceBrand: undefined;
14
+ readonly height: number;
15
+ readonly minimumWidth: number;
16
+ readonly maximumWidth: number;
17
+ get minimumHeight(): number;
18
+ get maximumHeight(): number;
19
+ private _onDidChangeSize;
20
+ get onDidChange(): Event<{
21
+ width: number;
22
+ height: number;
23
+ } | undefined>;
24
+ private item;
25
+ private readonly markdownRenderer;
26
+ private visible;
27
+ private actionBar;
28
+ private messageActionsContainer;
29
+ private focusedActionIndex;
30
+ constructor(themeService: IThemeService, layoutService: IWorkbenchLayoutService, storageService: IStorageService, contextKeyService: IContextKeyService, instantiationService: IInstantiationService);
31
+ protected createContentArea(parent: HTMLElement): HTMLElement;
32
+ private close;
33
+ private focusActionLink;
34
+ private getAriaLabel;
35
+ private getBannerMessage;
36
+ private setVisibility;
37
+ focus(): void;
38
+ focusNextAction(): void;
39
+ focusPreviousAction(): void;
40
+ hide(id: string): void;
41
+ show(item: IBannerItem): void;
42
+ toJSON(): object;
43
+ }
44
+
45
+ export { BannerPart };
@@ -14,7 +14,7 @@ import { MenuId, MenuItemAction } from 'monaco-editor/esm/vs/platform/actions/co
14
14
  import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
15
15
  import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
16
16
  import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
17
- import * as colorRegistry from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
17
+ import * as colors from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
18
18
  import { TITLE_BAR_ACTIVE_FOREGROUND, MENUBAR_SELECTION_FOREGROUND, TITLE_BAR_INACTIVE_FOREGROUND, MENUBAR_SELECTION_BACKGROUND } from '../../../common/theme.js';
19
19
  let CommandCenterControl = class CommandCenterControl {
20
20
  constructor(windowTitle, hoverDelegate, instantiationService, quickInputService, keybindingService) {
@@ -109,25 +109,25 @@ CommandCenterControl = ( __decorate([
109
109
  ( __param(3, IQuickInputService)),
110
110
  ( __param(4, IKeybindingService))
111
111
  ], CommandCenterControl));
112
- colorRegistry.registerColor('commandCenter.foreground', { dark: TITLE_BAR_ACTIVE_FOREGROUND, hcDark: TITLE_BAR_ACTIVE_FOREGROUND, light: TITLE_BAR_ACTIVE_FOREGROUND, hcLight: TITLE_BAR_ACTIVE_FOREGROUND }, ( localize('commandCenter-foreground', "Foreground color of the command center")), false);
113
- colorRegistry.registerColor('commandCenter.activeForeground', { dark: MENUBAR_SELECTION_FOREGROUND, hcDark: MENUBAR_SELECTION_FOREGROUND, light: MENUBAR_SELECTION_FOREGROUND, hcLight: MENUBAR_SELECTION_FOREGROUND }, ( localize(
112
+ colors.registerColor('commandCenter.foreground', { dark: TITLE_BAR_ACTIVE_FOREGROUND, hcDark: TITLE_BAR_ACTIVE_FOREGROUND, light: TITLE_BAR_ACTIVE_FOREGROUND, hcLight: TITLE_BAR_ACTIVE_FOREGROUND }, ( localize('commandCenter-foreground', "Foreground color of the command center")), false);
113
+ colors.registerColor('commandCenter.activeForeground', { dark: MENUBAR_SELECTION_FOREGROUND, hcDark: MENUBAR_SELECTION_FOREGROUND, light: MENUBAR_SELECTION_FOREGROUND, hcLight: MENUBAR_SELECTION_FOREGROUND }, ( localize(
114
114
  'commandCenter-activeForeground',
115
115
  "Active foreground color of the command center"
116
116
  )), false);
117
- colorRegistry.registerColor('commandCenter.inactiveForeground', { dark: TITLE_BAR_INACTIVE_FOREGROUND, hcDark: TITLE_BAR_INACTIVE_FOREGROUND, light: TITLE_BAR_INACTIVE_FOREGROUND, hcLight: TITLE_BAR_INACTIVE_FOREGROUND }, ( localize(
117
+ colors.registerColor('commandCenter.inactiveForeground', { dark: TITLE_BAR_INACTIVE_FOREGROUND, hcDark: TITLE_BAR_INACTIVE_FOREGROUND, light: TITLE_BAR_INACTIVE_FOREGROUND, hcLight: TITLE_BAR_INACTIVE_FOREGROUND }, ( localize(
118
118
  'commandCenter-inactiveForeground',
119
119
  "Foreground color of the command center when the window is inactive"
120
120
  )), false);
121
- colorRegistry.registerColor('commandCenter.background', {
121
+ colors.registerColor('commandCenter.background', {
122
122
  dark: ( Color.white.transparent(0.05)), hcDark: null, light: ( Color.black.transparent(0.05)), hcLight: null
123
123
  }, ( localize('commandCenter-background', "Background color of the command center")), false);
124
- colorRegistry.registerColor('commandCenter.activeBackground', { dark: ( Color.white.transparent(0.08)), hcDark: MENUBAR_SELECTION_BACKGROUND, light: ( Color.black.transparent(0.08)), hcLight: MENUBAR_SELECTION_BACKGROUND }, ( localize(
124
+ colors.registerColor('commandCenter.activeBackground', { dark: ( Color.white.transparent(0.08)), hcDark: MENUBAR_SELECTION_BACKGROUND, light: ( Color.black.transparent(0.08)), hcLight: MENUBAR_SELECTION_BACKGROUND }, ( localize(
125
125
  'commandCenter-activeBackground',
126
126
  "Active background color of the command center"
127
127
  )), false);
128
- colorRegistry.registerColor('commandCenter.border', { dark: ( colorRegistry.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .20)), hcDark: ( colorRegistry.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .60)), light: ( colorRegistry.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .20)), hcLight: ( colorRegistry.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .60)) }, ( localize('commandCenter-border', "Border color of the command center")), false);
129
- colorRegistry.registerColor('commandCenter.activeBorder', { dark: ( colorRegistry.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .30)), hcDark: TITLE_BAR_ACTIVE_FOREGROUND, light: ( colorRegistry.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .30)), hcLight: TITLE_BAR_ACTIVE_FOREGROUND }, ( localize('commandCenter-activeBorder', "Active border color of the command center")), false);
130
- colorRegistry.registerColor('commandCenter.inactiveBorder', { dark: ( colorRegistry.transparent(TITLE_BAR_INACTIVE_FOREGROUND, .25)), hcDark: ( colorRegistry.transparent(TITLE_BAR_INACTIVE_FOREGROUND, .25)), light: ( colorRegistry.transparent(TITLE_BAR_INACTIVE_FOREGROUND, .25)), hcLight: ( colorRegistry.transparent(TITLE_BAR_INACTIVE_FOREGROUND, .25)) }, ( localize(
128
+ colors.registerColor('commandCenter.border', { dark: ( colors.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .20)), hcDark: ( colors.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .60)), light: ( colors.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .20)), hcLight: ( colors.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .60)) }, ( localize('commandCenter-border', "Border color of the command center")), false);
129
+ colors.registerColor('commandCenter.activeBorder', { dark: ( colors.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .30)), hcDark: TITLE_BAR_ACTIVE_FOREGROUND, light: ( colors.transparent(TITLE_BAR_ACTIVE_FOREGROUND, .30)), hcLight: TITLE_BAR_ACTIVE_FOREGROUND }, ( localize('commandCenter-activeBorder', "Active border color of the command center")), false);
130
+ colors.registerColor('commandCenter.inactiveBorder', { dark: ( colors.transparent(TITLE_BAR_INACTIVE_FOREGROUND, .25)), hcDark: ( colors.transparent(TITLE_BAR_INACTIVE_FOREGROUND, .25)), light: ( colors.transparent(TITLE_BAR_INACTIVE_FOREGROUND, .25)), hcLight: ( colors.transparent(TITLE_BAR_INACTIVE_FOREGROUND, .25)) }, ( localize(
131
131
  'commandCenter-inactiveBorder',
132
132
  "Border color of the command center when the window is inactive"
133
133
  )), false);
@@ -0,0 +1,115 @@
1
+ import { IMenuService, IMenu } from '../../../../platform/actions/common/actions.js';
2
+ import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
3
+ import { Separator, IAction } from '../../../../base/common/actions.js';
4
+ import { Dimension } from '../../../../base/browser/dom.js';
5
+ import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
6
+ import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
7
+ import { Event } from '../../../../base/common/event.js';
8
+ import { Disposable, DisposableStore } from '../../../../base/common/lifecycle.js';
9
+ import { IWorkspacesService, IRecentlyOpened } from '../../../../platform/workspaces/common/workspaces.js';
10
+ import { RunOnceScheduler } from '../../../../base/common/async.js';
11
+ import { URI } from '../../../../base/common/uri.js';
12
+ import { ILabelService } from '../../../../platform/label/common/label.js';
13
+ import { IUpdateService } from '../../../../platform/update/common/update.js';
14
+ import { IStorageService } from '../../../../platform/storage/common/storage.js';
15
+ import { INotificationService } from '../../../../platform/notification/common/notification.js';
16
+ import { IPreferencesService } from '../../../services/preferences/common/preferences.js';
17
+ import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.js';
18
+ import { IAccessibilityService } from '../../../../platform/accessibility/common/accessibility.js';
19
+ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
20
+ import { IHostService } from '../../../services/host/browser/host.js';
21
+ import { ICommandService } from '../../../../platform/commands/common/commands.js';
22
+ import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.js';
23
+
24
+ type IOpenRecentAction = IAction & {
25
+ uri: URI;
26
+ remoteAuthority?: string;
27
+ };
28
+ declare abstract class MenubarControl extends Disposable {
29
+ protected readonly menuService: IMenuService;
30
+ protected readonly workspacesService: IWorkspacesService;
31
+ protected readonly contextKeyService: IContextKeyService;
32
+ protected readonly keybindingService: IKeybindingService;
33
+ protected readonly configurationService: IConfigurationService;
34
+ protected readonly labelService: ILabelService;
35
+ protected readonly updateService: IUpdateService;
36
+ protected readonly storageService: IStorageService;
37
+ protected readonly notificationService: INotificationService;
38
+ protected readonly preferencesService: IPreferencesService;
39
+ protected readonly environmentService: IWorkbenchEnvironmentService;
40
+ protected readonly accessibilityService: IAccessibilityService;
41
+ protected readonly hostService: IHostService;
42
+ protected readonly commandService: ICommandService;
43
+ protected keys: string[];
44
+ protected mainMenu: IMenu;
45
+ protected menus: {
46
+ [index: string]: IMenu | undefined;
47
+ };
48
+ protected topLevelTitles: {
49
+ [menu: string]: string;
50
+ };
51
+ protected mainMenuDisposables: DisposableStore;
52
+ protected recentlyOpened: IRecentlyOpened;
53
+ protected menuUpdater: RunOnceScheduler;
54
+ protected static readonly MAX_MENU_RECENT_ENTRIES = 10;
55
+ constructor(menuService: IMenuService, workspacesService: IWorkspacesService, contextKeyService: IContextKeyService, keybindingService: IKeybindingService, configurationService: IConfigurationService, labelService: ILabelService, updateService: IUpdateService, storageService: IStorageService, notificationService: INotificationService, preferencesService: IPreferencesService, environmentService: IWorkbenchEnvironmentService, accessibilityService: IAccessibilityService, hostService: IHostService, commandService: ICommandService);
56
+ protected abstract doUpdateMenubar(firstTime: boolean): void;
57
+ protected registerListeners(): void;
58
+ protected setupMainMenu(): void;
59
+ protected updateMenubar(): void;
60
+ protected calculateActionLabel(action: {
61
+ id: string;
62
+ label: string;
63
+ }): string;
64
+ protected onUpdateStateChange(): void;
65
+ protected onUpdateKeybindings(): void;
66
+ protected getOpenRecentActions(): (Separator | IOpenRecentAction)[];
67
+ protected onDidChangeWindowFocus(hasFocus: boolean): void;
68
+ private onConfigurationUpdated;
69
+ private get menubarHidden();
70
+ protected onDidChangeRecentlyOpened(): void;
71
+ private createOpenRecentMenuAction;
72
+ private notifyUserOfCustomMenubarAccessibility;
73
+ }
74
+ declare class CustomMenubarControl extends MenubarControl {
75
+ private readonly layoutService;
76
+ private readonly telemetryService;
77
+ private menubar;
78
+ private container;
79
+ private alwaysOnMnemonics;
80
+ private focusInsideMenubar;
81
+ private pendingFirstTimeUpdate;
82
+ private visible;
83
+ private actionRunner;
84
+ private readonly webNavigationMenu;
85
+ private readonly _onVisibilityChange;
86
+ private readonly _onFocusStateChange;
87
+ constructor(menuService: IMenuService, workspacesService: IWorkspacesService, contextKeyService: IContextKeyService, keybindingService: IKeybindingService, configurationService: IConfigurationService, labelService: ILabelService, updateService: IUpdateService, storageService: IStorageService, notificationService: INotificationService, preferencesService: IPreferencesService, environmentService: IWorkbenchEnvironmentService, accessibilityService: IAccessibilityService, layoutService: IWorkbenchLayoutService, telemetryService: ITelemetryService, hostService: IHostService, commandService: ICommandService);
88
+ protected doUpdateMenubar(firstTime: boolean): void;
89
+ private registerActions;
90
+ private getUpdateAction;
91
+ private get currentMenubarVisibility();
92
+ private get currentDisableMenuBarAltFocus();
93
+ private insertActionsBefore;
94
+ private get currentEnableMenuBarMnemonics();
95
+ private get currentCompactMenuMode();
96
+ private onDidVisibilityChange;
97
+ private toActionsArray;
98
+ private reinstallDisposables;
99
+ private setupCustomMenubar;
100
+ private getWebNavigationActions;
101
+ private getMenuBarOptions;
102
+ protected onDidChangeWindowFocus(hasFocus: boolean): void;
103
+ protected onUpdateStateChange(): void;
104
+ protected onDidChangeRecentlyOpened(): void;
105
+ protected onUpdateKeybindings(): void;
106
+ protected registerListeners(): void;
107
+ get onVisibilityChange(): Event<boolean>;
108
+ get onFocusStateChange(): Event<boolean>;
109
+ getMenubarItemsDimensions(): Dimension;
110
+ create(parent: HTMLElement): HTMLElement;
111
+ layout(dimension: Dimension): void;
112
+ toggleFocus(): void;
113
+ }
114
+
115
+ export { CustomMenubarControl, type IOpenRecentAction, MenubarControl };
@@ -0,0 +1,77 @@
1
+ import { Part } from '../../part.js';
2
+ import { ITitleService, ITitleProperties } from '../../../services/title/common/titleService.js';
3
+ import { MenuBarVisibility } from '../../../../platform/window/common/window.js';
4
+ import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.js';
5
+ import { IConfigurationService, IConfigurationChangeEvent } from '../../../../platform/configuration/common/configuration.js';
6
+ import { IBrowserWorkbenchEnvironmentService } from '../../../services/environment/browser/environmentService.js';
7
+ import { IThemeService } from '../../../../platform/theme/common/themeService.js';
8
+ import { Dimension } from '../../../../base/browser/dom.js';
9
+ import { CustomMenubarControl } from './menubarControl.js';
10
+ import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
11
+ import { Event } from '../../../../base/common/event.js';
12
+ import { IStorageService } from '../../../../platform/storage/common/storage.js';
13
+ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
14
+ import { MenuId } from '../../../../platform/actions/common/actions.js';
15
+ import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
16
+ import { IHostService } from '../../../services/host/browser/host.js';
17
+ import { IHoverService } from '../../../services/hover/browser/hover.js';
18
+
19
+ declare class TitlebarPart extends Part implements ITitleService {
20
+ private readonly contextMenuService;
21
+ protected readonly configurationService: IConfigurationService;
22
+ protected readonly environmentService: IBrowserWorkbenchEnvironmentService;
23
+ protected readonly instantiationService: IInstantiationService;
24
+ private readonly contextKeyService;
25
+ private readonly hostService;
26
+ private static readonly configCommandCenter;
27
+ readonly _serviceBrand: undefined;
28
+ readonly minimumWidth: number;
29
+ readonly maximumWidth: number;
30
+ get minimumHeight(): number;
31
+ get maximumHeight(): number;
32
+ private _onMenubarVisibilityChange;
33
+ readonly onMenubarVisibilityChange: Event<boolean>;
34
+ private readonly _onDidChangeCommandCenterVisibility;
35
+ readonly onDidChangeCommandCenterVisibility: Event<void>;
36
+ protected rootContainer: HTMLElement;
37
+ protected primaryWindowControls: HTMLElement | undefined;
38
+ protected dragRegion: HTMLElement | undefined;
39
+ protected title: HTMLElement;
40
+ private leftContent;
41
+ private centerContent;
42
+ private rightContent;
43
+ protected customMenubar: CustomMenubarControl | undefined;
44
+ protected appIcon: HTMLElement | undefined;
45
+ private appIconBadge;
46
+ protected menubar?: HTMLElement;
47
+ protected layoutControls: HTMLElement | undefined;
48
+ private layoutToolbar;
49
+ protected lastLayoutDimensions: Dimension | undefined;
50
+ private hoverDelegate;
51
+ private readonly titleDisposables;
52
+ private titleBarStyle;
53
+ private isInactive;
54
+ private readonly windowTitle;
55
+ constructor(contextMenuService: IContextMenuService, configurationService: IConfigurationService, environmentService: IBrowserWorkbenchEnvironmentService, instantiationService: IInstantiationService, themeService: IThemeService, storageService: IStorageService, layoutService: IWorkbenchLayoutService, contextKeyService: IContextKeyService, hostService: IHostService, hoverService: IHoverService);
56
+ updateProperties(properties: ITitleProperties): void;
57
+ get isCommandCenterVisible(): boolean;
58
+ private registerListeners;
59
+ private onBlur;
60
+ private onFocus;
61
+ protected onConfigurationChanged(event: IConfigurationChangeEvent): void;
62
+ protected onMenubarVisibilityChanged(visible: boolean): void;
63
+ private uninstallMenubar;
64
+ protected installMenubar(): void;
65
+ private updateTitle;
66
+ protected createContentArea(parent: HTMLElement): HTMLElement;
67
+ updateStyles(): void;
68
+ protected onContextMenu(e: MouseEvent, menuId: MenuId): void;
69
+ protected get currentMenubarVisibility(): MenuBarVisibility;
70
+ private get layoutControlEnabled();
71
+ protected get useCounterZoom(): boolean;
72
+ updateLayout(dimension: Dimension): void;
73
+ layout(width: number, height: number): void;
74
+ toJSON(): object;
75
+ }
76
+
77
+ export { TitlebarPart };
@@ -29,8 +29,16 @@ const VirtualWorkspaceContext = ( new RawContextKey('virtualWorkspace', '', ( lo
29
29
  'virtualWorkspace',
30
30
  "The scheme of the current workspace is from a virtual file system or an empty string."
31
31
  ))));
32
+ const TemporaryWorkspaceContext = ( new RawContextKey('temporaryWorkspace', false, ( localize(
33
+ 'temporaryWorkspace',
34
+ "The scheme of the current workspace is from a temporary file system."
35
+ ))));
32
36
  const IsFullscreenContext = ( new RawContextKey('isFullscreen', false, ( localize('isFullscreen', "Whether the window is in fullscreen mode"))));
33
37
  const HasWebFileSystemAccess = ( new RawContextKey('hasWebFileSystemAccess', false, true));
38
+ const EmbedderIdentifierContext = ( new RawContextKey('embedderIdentifier', undefined, ( localize(
39
+ 'embedderIdentifier',
40
+ 'The identifier of the embedder according to the product service, if one is defined'
41
+ ))));
34
42
  const ActiveEditorDirtyContext = ( new RawContextKey('activeEditorIsDirty', false, ( localize('activeEditorIsDirty', "Whether the active editor has unsaved changes"))));
35
43
  const ActiveEditorPinnedContext = ( new RawContextKey('activeEditorIsNotPreview', false, ( localize(
36
44
  'activeEditorIsNotPreview',
@@ -45,10 +53,12 @@ const ActiveEditorLastInGroupContext = ( new RawContextKey('activeEditorIsLastIn
45
53
  "Whether the active editor is the last one in its group"
46
54
  ))));
47
55
  const ActiveEditorStickyContext = ( new RawContextKey('activeEditorIsPinned', false, ( localize('activeEditorIsPinned', "Whether the active editor is pinned"))));
56
+ const ActiveEditorReadonlyContext = ( new RawContextKey('activeEditorIsReadonly', false, ( localize('activeEditorIsReadonly', "Whether the active editor is read-only"))));
48
57
  const ActiveEditorCanToggleReadonlyContext = ( new RawContextKey('activeEditorCanToggleReadonly', true, ( localize(
49
58
  'activeEditorCanToggleReadonly',
50
59
  "Whether the active editor can toggle between being read-only or writeable"
51
60
  ))));
61
+ const ActiveEditorCanRevertContext = ( new RawContextKey('activeEditorCanRevert', false, ( localize('activeEditorCanRevert', "Whether the active editor can revert"))));
52
62
  const ActiveEditorCanSplitInGroupContext = ( new RawContextKey('activeEditorCanSplitInGroup', true));
53
63
  const ActiveEditorContext = ( new RawContextKey('activeEditor', null, { type: 'string', description: ( localize('activeEditor', "The identifier of the active editor")) }));
54
64
  const ActiveEditorAvailableEditorIdsContext = ( new RawContextKey('activeEditorAvailableEditorIds', '', ( localize(
@@ -60,10 +70,18 @@ const TextCompareEditorActiveContext = ( new RawContextKey('textCompareEditorAct
60
70
  const SideBySideEditorActiveContext = ( new RawContextKey('sideBySideEditorActive', false, ( localize('sideBySideEditorActive', "Whether a side by side editor is active"))));
61
71
  const EditorGroupEditorsCountContext = ( new RawContextKey('groupEditorsCount', 0, ( localize('groupEditorsCount', "The number of opened editor groups"))));
62
72
  const ActiveEditorGroupEmptyContext = ( new RawContextKey('activeEditorGroupEmpty', false, ( localize('activeEditorGroupEmpty', "Whether the active editor group is empty"))));
73
+ const ActiveEditorGroupIndexContext = ( new RawContextKey('activeEditorGroupIndex', 0, ( localize('activeEditorGroupIndex', "The index of the active editor group"))));
74
+ const ActiveEditorGroupLastContext = ( new RawContextKey('activeEditorGroupLast', false, ( localize(
75
+ 'activeEditorGroupLast',
76
+ "Whether the active editor group is the last group"
77
+ ))));
63
78
  const ActiveEditorGroupLockedContext = ( new RawContextKey('activeEditorGroupLocked', false, ( localize('activeEditorGroupLocked', "Whether the active editor group is locked"))));
64
79
  const MultipleEditorGroupsContext = ( new RawContextKey('multipleEditorGroups', false, ( localize('multipleEditorGroups', "Whether there are multiple editor groups opened"))));
80
+ const EditorsVisibleContext = ( new RawContextKey('editorIsOpen', false, ( localize('editorIsOpen', "Whether an editor is open"))));
65
81
  const InEditorZenModeContext = ( new RawContextKey('inZenMode', false, ( localize('inZenMode', "Whether Zen mode is enabled"))));
66
82
  const IsCenteredLayoutContext = ( new RawContextKey('isCenteredLayout', false, ( localize('isCenteredLayout', "Whether centered layout is enabled"))));
83
+ const SplitEditorsVertically = ( new RawContextKey('splitEditorsVertically', false, ( localize('splitEditorsVertically', "Whether editors split vertically"))));
84
+ const EditorAreaVisibleContext = ( new RawContextKey('editorAreaVisible', true, ( localize('editorAreaVisible', "Whether the editor area is visible"))));
67
85
  const EditorTabsVisibleContext = ( new RawContextKey('editorTabsVisible', true, ( localize('editorTabsVisible', "Whether editor tabs are visible"))));
68
86
  const SideBarVisibleContext = ( new RawContextKey('sideBarVisible', false, ( localize('sideBarVisible', "Whether the sidebar is visible"))));
69
87
  const SidebarFocusContext = ( new RawContextKey('sideBarFocus', false, ( localize('sideBarFocus', "Whether the sidebar has keyboard focus"))));
@@ -84,6 +102,7 @@ const PanelAlignmentContext = ( new RawContextKey('panelAlignment', 'center', (
84
102
  "The alignment of the panel, either 'center', 'left', 'right' or 'justify'"
85
103
  ))));
86
104
  const PanelVisibleContext = ( new RawContextKey('panelVisible', false, ( localize('panelVisible', "Whether the panel is visible"))));
105
+ const PanelMaximizedContext = ( new RawContextKey('panelMaximized', false, ( localize('panelMaximized', "Whether the panel is maximized"))));
87
106
  const FocusedViewContext = ( new RawContextKey('focusedView', '', ( localize('focusedView', "The identifier of the view that has keyboard focus"))));
88
107
  function getVisbileViewContextKey(viewId) { return `view.${viewId}.visible`; }
89
108
  function getEnabledViewContainerContextKey(viewContainerId) { return `viewContainer.${viewContainerId}.enabled`; }
@@ -221,4 +240,4 @@ function applyAvailableEditorIds(contextKey, editor, editorResolverService) {
221
240
  contextKey.set(editors.join(','));
222
241
  }
223
242
  }
224
- export { ActiveAuxiliaryContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorCanSplitInGroupContext, ActiveEditorCanToggleReadonlyContext, ActiveEditorContext, ActiveEditorDirtyContext, ActiveEditorFirstInGroupContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupLockedContext, ActiveEditorLastInGroupContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActivePanelContext, ActiveViewletContext, AuxiliaryBarFocusContext, AuxiliaryBarVisibleContext, BannerFocused, DirtyWorkingCopiesContext, EditorGroupEditorsCountContext, EditorTabsVisibleContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, FocusedViewContext, HasWebFileSystemAccess, InEditorZenModeContext, IsCenteredLayoutContext, IsFullscreenContext, MultipleEditorGroupsContext, NotificationFocusedContext, NotificationsCenterVisibleContext, NotificationsToastsVisibleContext, OpenFolderWorkspaceSupportContext, PanelAlignmentContext, PanelFocusContext, PanelPositionContext, PanelVisibleContext, RemoteNameContext, ResourceContextKey, SideBarVisibleContext, SideBySideEditorActiveContext, SidebarFocusContext, StatusBarFocused, TextCompareEditorActiveContext, TextCompareEditorVisibleContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, applyAvailableEditorIds, getEnabledViewContainerContextKey, getVisbileViewContextKey };
243
+ export { ActiveAuxiliaryContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorCanRevertContext, ActiveEditorCanSplitInGroupContext, ActiveEditorCanToggleReadonlyContext, ActiveEditorContext, ActiveEditorDirtyContext, ActiveEditorFirstInGroupContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorGroupLockedContext, ActiveEditorLastInGroupContext, ActiveEditorPinnedContext, ActiveEditorReadonlyContext, ActiveEditorStickyContext, ActivePanelContext, ActiveViewletContext, AuxiliaryBarFocusContext, AuxiliaryBarVisibleContext, BannerFocused, DirtyWorkingCopiesContext, EditorAreaVisibleContext, EditorGroupEditorsCountContext, EditorTabsVisibleContext, EditorsVisibleContext, EmbedderIdentifierContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, FocusedViewContext, HasWebFileSystemAccess, InEditorZenModeContext, IsCenteredLayoutContext, IsFullscreenContext, MultipleEditorGroupsContext, NotificationFocusedContext, NotificationsCenterVisibleContext, NotificationsToastsVisibleContext, OpenFolderWorkspaceSupportContext, PanelAlignmentContext, PanelFocusContext, PanelMaximizedContext, PanelPositionContext, PanelVisibleContext, RemoteNameContext, ResourceContextKey, SideBarVisibleContext, SideBySideEditorActiveContext, SidebarFocusContext, SplitEditorsVertically, StatusBarFocused, TemporaryWorkspaceContext, TextCompareEditorActiveContext, TextCompareEditorVisibleContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, applyAvailableEditorIds, getEnabledViewContainerContextKey, getVisbileViewContextKey };
@@ -3,7 +3,7 @@ import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
3
3
  import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
4
  import { EDITOR_FONT_DEFAULTS } from 'monaco-editor/esm/vs/editor/common/config/editorOptions.js';
5
5
  import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
6
- import * as colorRegistry from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
6
+ import * as colors from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
7
7
  import { ColorScheme } from 'monaco-editor/esm/vs/platform/theme/common/theme.js';
8
8
  import { IWorkbenchThemeService } from '../../../services/themes/common/workbenchThemeService.js';
9
9
  import { DEFAULT_FONT_FAMILY } from '../../../browser/style.js';
@@ -35,7 +35,7 @@ let WebviewThemeDataProvider = class WebviewThemeDataProvider extends Disposable
35
35
  const editorFontWeight = configuration.fontWeight || EDITOR_FONT_DEFAULTS.fontWeight;
36
36
  const editorFontSize = configuration.fontSize || EDITOR_FONT_DEFAULTS.fontSize;
37
37
  const theme = this._themeService.getColorTheme();
38
- const exportedColors = colorRegistry.getColorRegistry().getColors().reduce((colors, entry) => {
38
+ const exportedColors = colors.getColorRegistry().getColors().reduce((colors, entry) => {
39
39
  const color = theme.getColor(entry.id);
40
40
  if (color) {
41
41
  colors['vscode-' + entry.id.replace('.', '-')] = ( color.toString());