@codingame/monaco-vscode-workbench-service-override 19.1.4 → 20.0.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.
package/index.js CHANGED
@@ -26,10 +26,10 @@ import { onLayout, onRenderWorkbench } from '@codingame/monaco-vscode-api/lifecy
26
26
  export { EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from '@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common/service-override/tools/views';
27
27
  export { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
28
28
  export { ViewPaneContainer } from '@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
29
- export { ConfirmResult } from '@codingame/monaco-vscode-2726569c-a06b-5f25-b851-14311bef12fa-common/vscode/vs/platform/dialogs/common/dialogs';
29
+ export { ConfirmResult } from '@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/platform/dialogs/common/dialogs';
30
30
  export { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
31
- export { AbstractResourceEditorInput } from '@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common/vscode/vs/workbench/common/editor/resourceEditorInput';
32
- export { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common/vscode/vs/workbench/common/editor/textResourceEditorInput';
31
+ export { AbstractResourceEditorInput } from '@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/editor/resourceEditorInput';
32
+ export { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/editor/textResourceEditorInput';
33
33
  export { EditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput';
34
34
  export { EditorInputCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
35
35
  export { Parts } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-workbench-service-override",
3
- "version": "19.1.4",
3
+ "version": "20.0.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - workbench service-override",
6
6
  "keywords": [],
@@ -15,26 +15,25 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "19.1.4",
19
- "@codingame/monaco-vscode-256d5b78-0649-50e9-8354-2807f95f68f4-common": "19.1.4",
20
- "@codingame/monaco-vscode-2726569c-a06b-5f25-b851-14311bef12fa-common": "19.1.4",
21
- "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "19.1.4",
22
- "@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common": "19.1.4",
23
- "@codingame/monaco-vscode-516ccb00-d5b9-5317-baf0-fcc96e99669a-common": "19.1.4",
24
- "@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "19.1.4",
25
- "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "19.1.4",
26
- "@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "19.1.4",
27
- "@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common": "19.1.4",
28
- "@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "19.1.4",
29
- "@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "19.1.4",
30
- "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "19.1.4",
31
- "@codingame/monaco-vscode-api": "19.1.4",
32
- "@codingame/monaco-vscode-keybindings-service-override": "19.1.4",
33
- "@codingame/monaco-vscode-quickaccess-service-override": "19.1.4",
34
- "@codingame/monaco-vscode-view-banner-service-override": "19.1.4",
35
- "@codingame/monaco-vscode-view-common-service-override": "19.1.4",
36
- "@codingame/monaco-vscode-view-status-bar-service-override": "19.1.4",
37
- "@codingame/monaco-vscode-view-title-bar-service-override": "19.1.4"
18
+ "@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "20.0.1",
19
+ "@codingame/monaco-vscode-256d5b78-0649-50e9-8354-2807f95f68f4-common": "20.0.1",
20
+ "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "20.0.1",
21
+ "@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common": "20.0.1",
22
+ "@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "20.0.1",
23
+ "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "20.0.1",
24
+ "@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "20.0.1",
25
+ "@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "20.0.1",
26
+ "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.0.1",
27
+ "@codingame/monaco-vscode-api": "20.0.1",
28
+ "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.0.1",
29
+ "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.0.1",
30
+ "@codingame/monaco-vscode-f6f55824-df83-5ffc-ac26-50fd4df4fe0e-common": "20.0.1",
31
+ "@codingame/monaco-vscode-keybindings-service-override": "20.0.1",
32
+ "@codingame/monaco-vscode-quickaccess-service-override": "20.0.1",
33
+ "@codingame/monaco-vscode-view-banner-service-override": "20.0.1",
34
+ "@codingame/monaco-vscode-view-common-service-override": "20.0.1",
35
+ "@codingame/monaco-vscode-view-status-bar-service-override": "20.0.1",
36
+ "@codingame/monaco-vscode-view-title-bar-service-override": "20.0.1"
38
37
  },
39
38
  "main": "index.js",
40
39
  "module": "index.js",
@@ -12,9 +12,9 @@ import type { IEditorOptions, IResourceEditorInput } from "@codingame/monaco-vsc
12
12
  import { EditorPane } from "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane";
13
13
  import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
14
14
  import { DomScrollableElement } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/scrollbar/scrollableElement";
15
- import { ConfirmResult } from "@codingame/monaco-vscode-2726569c-a06b-5f25-b851-14311bef12fa-common/vscode/vs/platform/dialogs/common/dialogs";
16
- import { AbstractResourceEditorInput } from "@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common/vscode/vs/workbench/common/editor/resourceEditorInput";
17
- import { AbstractTextResourceEditorInput } from "@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common/vscode/vs/workbench/common/editor/textResourceEditorInput";
15
+ import { ConfirmResult } from "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/platform/dialogs/common/dialogs";
16
+ import { AbstractResourceEditorInput } from "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/editor/resourceEditorInput";
17
+ import { AbstractTextResourceEditorInput } from "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/editor/textResourceEditorInput";
18
18
  import { Parts, Position } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService";
19
19
  import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
20
20
  import { type IView, SplitView } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/splitview/splitview";
@@ -135,7 +135,6 @@ export declare abstract class Layout extends Disposable implements IWorkbenchLay
135
135
  private titleService;
136
136
  private viewDescriptorService;
137
137
  private contextService;
138
- private workingCopyBackupService;
139
138
  private notificationService;
140
139
  private themeService;
141
140
  private statusBarService;
@@ -158,7 +157,7 @@ export declare abstract class Layout extends Disposable implements IWorkbenchLay
158
157
  private getActiveContainerId;
159
158
  private doUpdateLayoutConfiguration;
160
159
  private setSideBarPosition;
161
- private updateWindowsBorder;
160
+ private updateWindowBorder;
162
161
  private initLayoutState;
163
162
  private getDefaultLayoutViews;
164
163
  private shouldRestoreEditors;
@@ -213,11 +212,10 @@ export declare abstract class Layout extends Disposable implements IWorkbenchLay
213
212
  private adjustPartPositions;
214
213
  setPanelAlignment(alignment: PanelAlignment): void;
215
214
  private setPanelHidden;
216
- private maximizedAuxiliaryBarState;
217
215
  private inMaximizedAuxiliaryBarTransition;
218
216
  isAuxiliaryBarMaximized(): boolean;
219
217
  toggleMaximizedAuxiliaryBar(): void;
220
- setAuxiliaryBarMaximized(maximized: boolean, fromInit?: boolean): boolean;
218
+ setAuxiliaryBarMaximized(maximized: boolean): boolean;
221
219
  isPanelMaximized(): boolean;
222
220
  toggleMaximizedPanel(): void;
223
221
  private panelOpensMaximized;
@@ -1,9 +1,8 @@
1
1
 
2
2
  import { Disposable, toDisposable, DisposableStore, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
3
3
  import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
4
- import { Dimension, getActiveDocument, getWindows, getClientArea, getWindow, createElement, addDisposableListener, EventType, isActiveDocument, getActiveWindow, getActiveElement, isAncestorUsingFlowTo, position, size, computeScreenAwareSize, getWindowId } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
+ import { Dimension, getActiveDocument, getWindows, getClientArea, getWindow, createElement, addDisposableListener, EventType, isActiveDocument, getActiveElement, getActiveWindow, isAncestorUsingFlowTo, position, size, computeScreenAwareSize, getWindowId } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
5
5
  import { onDidChangeFullscreen, isFullscreen, isWCOEnabled } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/browser';
6
- import { IWorkingCopyBackupService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.service';
7
6
  import { isWindows, isLinux, isWeb, isIOS, isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
8
7
  import { pathsToEditors, isResourceEditorInput, EditorInputCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
9
8
  import { SidebarPart } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
@@ -38,7 +37,7 @@ import { WINDOW_ACTIVE_BORDER, WINDOW_INACTIVE_BORDER } from '@codingame/monaco-
38
37
  import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
39
38
  import { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
40
39
  import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
41
- import { DiffEditorInput } from '@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common/vscode/vs/workbench/common/editor/diffEditorInput';
40
+ import { DiffEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/diffEditorInput';
42
41
  import { mark } from '@codingame/monaco-vscode-api/vscode/vs/base/common/performance';
43
42
  import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
44
43
  import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
@@ -49,7 +48,7 @@ import { AuxiliaryBarPart } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e
49
48
  import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
50
49
  import { IAuxiliaryWindowService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service';
51
50
  import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
52
- import { StartupExperimentGroup } from '@codingame/monaco-vscode-516ccb00-d5b9-5317-baf0-fcc96e99669a-common/vscode/vs/workbench/services/coreExperimentation/common/coreExperimentationService';
51
+ import { StartupExperimentGroup } from '@codingame/monaco-vscode-f6f55824-df83-5ffc-ac26-50fd4df4fe0e-common/vscode/vs/workbench/services/coreExperimentation/common/coreExperimentationService';
53
52
  import { ICoreExperimentationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service';
54
53
  import { Lazy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lazy';
55
54
  import { setContainerElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/domStylesheets';
@@ -180,7 +179,6 @@ class Layout extends Disposable {
180
179
  this.whenRestoredPromise = ( new DeferredPromise());
181
180
  this.whenRestored = this.whenRestoredPromise.p;
182
181
  this.restored = false;
183
- this.maximizedAuxiliaryBarState = undefined;
184
182
  this.inMaximizedAuxiliaryBarTransition = false;
185
183
  setContainerElement(parent);
186
184
  }
@@ -190,7 +188,6 @@ class Layout extends Disposable {
190
188
  this.hostService = accessor.get(IHostService);
191
189
  this.contextService = accessor.get(IWorkspaceContextService);
192
190
  this.storageService = accessor.get(IStorageService);
193
- this.workingCopyBackupService = accessor.get(IWorkingCopyBackupService);
194
191
  this.themeService = accessor.get(IThemeService);
195
192
  this.extensionService = accessor.get(IExtensionService);
196
193
  this.logService = accessor.get(ILogService);
@@ -260,7 +257,7 @@ class Layout extends Disposable {
260
257
  if (showingCustomMenu) {
261
258
  this._register(this.titleService.onMenubarVisibilityChange(visible => this.onMenubarToggled(visible)));
262
259
  }
263
- this._register(this.themeService.onDidColorThemeChange(() => this.updateWindowsBorder()));
260
+ this._register(this.themeService.onDidColorThemeChange(() => this.updateWindowBorder()));
264
261
  this._register(this.hostService.onDidChangeFocus(focused => this.onWindowFocusChanged(focused)));
265
262
  this._register(this.hostService.onDidChangeActiveWindow(() => this.onActiveWindowChanged()));
266
263
  if (isWeb && typeof navigator.windowControlsOverlay === 'object') {
@@ -316,21 +313,21 @@ class Layout extends Disposable {
316
313
  this.workbenchGrid.edgeSnapping = this.state.runtime.mainWindowFullscreen;
317
314
  {
318
315
  this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
319
- this.updateWindowsBorder(true);
316
+ this.updateWindowBorder(true);
320
317
  }
321
318
  }
322
319
  onActiveWindowChanged() {
323
320
  const activeContainerId = this.getActiveContainerId();
324
321
  if (this.state.runtime.activeContainerId !== activeContainerId) {
325
322
  this.state.runtime.activeContainerId = activeContainerId;
326
- this.updateWindowsBorder();
323
+ this.updateWindowBorder();
327
324
  this._onDidChangeActiveContainer.fire();
328
325
  }
329
326
  }
330
327
  onWindowFocusChanged(hasFocus) {
331
328
  if (this.state.runtime.hasFocus !== hasFocus) {
332
329
  this.state.runtime.hasFocus = hasFocus;
333
- this.updateWindowsBorder();
330
+ this.updateWindowBorder();
334
331
  }
335
332
  }
336
333
  getActiveContainerId() {
@@ -365,7 +362,7 @@ class Layout extends Disposable {
365
362
  auxiliaryBar.updateStyles();
366
363
  this.adjustPartPositions(position, panelAlignment, panelPosition);
367
364
  }
368
- updateWindowsBorder(skipLayout = false) {
365
+ updateWindowBorder(skipLayout = false) {
369
366
  if (isWeb ||
370
367
  isWindows ||
371
368
  (((isWindows || isLinux) && useWindowControlsOverlay(this.configurationService))
@@ -496,7 +493,7 @@ class Layout extends Disposable {
496
493
  this.stateModel.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN, true);
497
494
  }
498
495
  }
499
- this.updateWindowsBorder(true);
496
+ this.updateWindowBorder(true);
500
497
  }
501
498
  getDefaultLayoutViews(environmentService, storageService) {
502
499
  const defaultLayout = environmentService.options?.defaultLayout;
@@ -563,10 +560,6 @@ class Layout extends Disposable {
563
560
  if (this.editorGroupService.hasRestorableState) {
564
561
  return [];
565
562
  }
566
- const hasBackups = await this.workingCopyBackupService.hasBackups();
567
- if (hasBackups) {
568
- return [];
569
- }
570
563
  return [{
571
564
  editor: { resource: undefined }
572
565
  }];
@@ -728,6 +721,9 @@ class Layout extends Disposable {
728
721
  this.centerMainEditorLayout(true, true);
729
722
  }
730
723
  Promises.settled(layoutReadyPromises).finally(() => {
724
+ if (getActiveElement() === mainWindow.document.body && (this.isPanelMaximized() || this.isAuxiliaryBarMaximized())) {
725
+ this.focus();
726
+ }
731
727
  this.whenReadyPromise.complete();
732
728
  Promises.settled(layoutRestoredPromises).finally(() => {
733
729
  this.restored = true;
@@ -1079,9 +1075,6 @@ class Layout extends Disposable {
1079
1075
  this.mainContainer.setAttribute('role', 'application');
1080
1076
  this.workbenchGrid = workbenchGrid;
1081
1077
  this.workbenchGrid.edgeSnapping = this.state.runtime.mainWindowFullscreen;
1082
- if (this.stateModel.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_WAS_LAST_MAXIMIZED)) {
1083
- this.setAuxiliaryBarMaximized(true, true );
1084
- }
1085
1078
  for (const part of [titleBar, editorPart, activityBar, panelPart, sideBar, statusBar, auxiliaryBarPart, bannerPart]) {
1086
1079
  this._register(part.onDidVisibilityChange(visible => {
1087
1080
  if (!this.inMaximizedAuxiliaryBarTransition) {
@@ -1417,45 +1410,32 @@ class Layout extends Disposable {
1417
1410
  }
1418
1411
  }
1419
1412
  isAuxiliaryBarMaximized() {
1420
- return !!this.maximizedAuxiliaryBarState;
1413
+ return this.stateModel.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_WAS_LAST_MAXIMIZED);
1421
1414
  }
1422
1415
  toggleMaximizedAuxiliaryBar() {
1423
1416
  this.setAuxiliaryBarMaximized(!this.isAuxiliaryBarMaximized());
1424
1417
  }
1425
- setAuxiliaryBarMaximized(maximized, fromInit) {
1418
+ setAuxiliaryBarMaximized(maximized) {
1426
1419
  if (this.inMaximizedAuxiliaryBarTransition ||
1427
- (!maximized && !this.maximizedAuxiliaryBarState)
1420
+ (maximized === this.isAuxiliaryBarMaximized())
1428
1421
  ) {
1429
1422
  return false;
1430
1423
  }
1431
1424
  if (maximized) {
1432
- let state;
1433
- if (fromInit) {
1434
- const stateMixin = { editorVisible: true };
1435
- this.setEditorHidden(false);
1436
- state = {
1437
- ...this.stateModel.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_LAST_NON_MAXIMIZED_VISIBILITY),
1438
- ...stateMixin
1439
- };
1440
- }
1441
- else {
1442
- state = {
1443
- sideBarVisible: this.isVisible(Parts.SIDEBAR_PART),
1444
- editorVisible: this.isVisible(Parts.EDITOR_PART),
1445
- panelVisible: this.isVisible(Parts.PANEL_PART),
1446
- auxiliaryBarVisible: this.isVisible(Parts.AUXILIARYBAR_PART)
1447
- };
1448
- }
1449
- this.maximizedAuxiliaryBarState = state;
1425
+ const state = {
1426
+ sideBarVisible: this.isVisible(Parts.SIDEBAR_PART),
1427
+ editorVisible: this.isVisible(Parts.EDITOR_PART),
1428
+ panelVisible: this.isVisible(Parts.PANEL_PART),
1429
+ auxiliaryBarVisible: this.isVisible(Parts.AUXILIARYBAR_PART)
1430
+ };
1431
+ this.stateModel.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_WAS_LAST_MAXIMIZED, true);
1450
1432
  this.inMaximizedAuxiliaryBarTransition = true;
1451
1433
  try {
1452
1434
  if (!state.auxiliaryBarVisible) {
1453
1435
  this.setAuxiliaryBarHidden(false);
1454
1436
  }
1455
- if (!fromInit) {
1456
- const size = this.workbenchGrid.getViewSize(this.auxiliaryBarPartView).width;
1457
- this.stateModel.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_LAST_NON_MAXIMIZED_SIZE, size);
1458
- }
1437
+ const size = this.workbenchGrid.getViewSize(this.auxiliaryBarPartView).width;
1438
+ this.stateModel.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_LAST_NON_MAXIMIZED_SIZE, size);
1459
1439
  if (state.sideBarVisible) {
1460
1440
  this.setSideBarHidden(true);
1461
1441
  }
@@ -1465,17 +1445,15 @@ class Layout extends Disposable {
1465
1445
  if (state.editorVisible) {
1466
1446
  this.setEditorHidden(true);
1467
1447
  }
1468
- if (!fromInit) {
1469
- this.stateModel.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_LAST_NON_MAXIMIZED_VISIBILITY, state);
1470
- }
1448
+ this.stateModel.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_LAST_NON_MAXIMIZED_VISIBILITY, state);
1471
1449
  }
1472
1450
  finally {
1473
1451
  this.inMaximizedAuxiliaryBarTransition = false;
1474
1452
  }
1475
1453
  }
1476
1454
  else {
1477
- const state = assertReturnsDefined(this.maximizedAuxiliaryBarState);
1478
- this.maximizedAuxiliaryBarState = undefined;
1455
+ const state = assertReturnsDefined(this.stateModel.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_LAST_NON_MAXIMIZED_VISIBILITY));
1456
+ this.stateModel.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_WAS_LAST_MAXIMIZED, false);
1479
1457
  this.inMaximizedAuxiliaryBarTransition = true;
1480
1458
  try {
1481
1459
  this.setEditorHidden(!state?.editorVisible);
@@ -1492,7 +1470,6 @@ class Layout extends Disposable {
1492
1470
  }
1493
1471
  }
1494
1472
  this.focusPart(Parts.AUXILIARYBAR_PART);
1495
- this.stateModel.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_WAS_LAST_MAXIMIZED, maximized);
1496
1473
  this._onDidChangeAuxiliaryBarMaximized.fire();
1497
1474
  return true;
1498
1475
  }
@@ -1693,7 +1670,7 @@ class Layout extends Disposable {
1693
1670
  else {
1694
1671
  this.state.runtime.maximized.delete(targetWindowId);
1695
1672
  }
1696
- this.updateWindowsBorder();
1673
+ this.updateWindowBorder();
1697
1674
  this._onDidChangeWindowMaximized.fire({ windowId: targetWindowId, maximized });
1698
1675
  }
1699
1676
  getVisibleNeighborPart(part, direction) {
@@ -1752,7 +1729,8 @@ class Layout extends Disposable {
1752
1729
  return {
1753
1730
  type: 'branch',
1754
1731
  data: result,
1755
- size: availableHeight
1732
+ size: availableHeight,
1733
+ visible: ( result.some(node => node.visible))
1756
1734
  };
1757
1735
  }
1758
1736
  arrangeMiddleSectionNodes(nodes, availableWidth, availableHeight) {
@@ -1793,10 +1771,12 @@ class Layout extends Disposable {
1793
1771
  sideBar: sideBarNextToEditor ? nodes.sideBar : undefined,
1794
1772
  auxiliaryBar: auxiliaryBarNextToEditor ? nodes.auxiliaryBar : undefined
1795
1773
  }, availableHeight - panelSize, editorSectionWidth);
1774
+ const data = panelPostion === Position.BOTTOM ? [editorNodes, nodes.panel] : [nodes.panel, editorNodes];
1796
1775
  result.push({
1797
1776
  type: 'branch',
1798
- data: panelPostion === Position.BOTTOM ? [editorNodes, nodes.panel] : [nodes.panel, editorNodes],
1799
- size: editorSectionWidth
1777
+ data,
1778
+ size: editorSectionWidth,
1779
+ visible: ( data.some(node => node.visible))
1800
1780
  });
1801
1781
  if (!sideBarNextToEditor) {
1802
1782
  if (sideBarPosition === Position.LEFT) {
@@ -2064,6 +2044,11 @@ class LayoutStateModel extends Disposable {
2064
2044
  this._onDidChangeState = this._register(( new Emitter()));
2065
2045
  this.onDidChangeState = this._onDidChangeState.event;
2066
2046
  this.stateCache = ( new Map());
2047
+ this.isNew = {
2048
+ [StorageScope.WORKSPACE]: this.storageService.isNew(StorageScope.WORKSPACE),
2049
+ [StorageScope.PROFILE]: this.storageService.isNew(StorageScope.PROFILE),
2050
+ [StorageScope.APPLICATION]: this.storageService.isNew(StorageScope.APPLICATION)
2051
+ };
2067
2052
  this._register(this.configurationService.onDidChangeConfiguration(configurationChange => this.updateStateFromLegacySettings(configurationChange)));
2068
2053
  }
2069
2054
  updateStateFromLegacySettings(configurationChangeEvent) {
@@ -2127,9 +2112,11 @@ class LayoutStateModel extends Disposable {
2127
2112
  }
2128
2113
  }
2129
2114
  switch (this.configurationService.getValue(WorkbenchLayoutSettings.AUXILIARYBAR_DEFAULT_VISIBILITY)) {
2115
+ case 'maximized':
2130
2116
  case 'visible':
2131
2117
  return false;
2132
2118
  case 'visibleInWorkspace':
2119
+ case 'maximizedInWorkspace':
2133
2120
  return workbenchState === WorkbenchState.EMPTY;
2134
2121
  default:
2135
2122
  return true;
@@ -2175,18 +2162,7 @@ class LayoutStateModel extends Disposable {
2175
2162
  experiment.value?.experimentGroup === StartupExperimentGroup.SplitEmptyEditorChat ||
2176
2163
  experiment.value?.experimentGroup === StartupExperimentGroup.SplitWelcomeChat)) {
2177
2164
  if (experiment.value.experimentGroup === StartupExperimentGroup.MaximizedChat) {
2178
- this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_LAST_NON_MAXIMIZED_VISIBILITY, {
2179
- sideBarVisible: !this.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN),
2180
- panelVisible: !this.getRuntimeValue(LayoutStateKeys.PANEL_HIDDEN),
2181
- editorVisible: !this.getRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN),
2182
- auxiliaryBarVisible: !this.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN)
2183
- });
2184
- this.setRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN, true);
2185
- this.setRuntimeValue(LayoutStateKeys.PANEL_HIDDEN, true);
2186
- this.setRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN, true);
2187
- this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN, false);
2188
- this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_LAST_NON_MAXIMIZED_SIZE, this.getInitializationValue(LayoutStateKeys.AUXILIARYBAR_SIZE));
2189
- this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_WAS_LAST_MAXIMIZED, true);
2165
+ this.applyAuxiliaryBarMaximizedOverride();
2190
2166
  }
2191
2167
  else if (experiment.value.experimentGroup === StartupExperimentGroup.SplitEmptyEditorChat ||
2192
2168
  experiment.value.experimentGroup === StartupExperimentGroup.SplitWelcomeChat) {
@@ -2195,12 +2171,33 @@ class LayoutStateModel extends Disposable {
2195
2171
  this.setInitializationValue(LayoutStateKeys.AUXILIARYBAR_SIZE, Math.ceil(mainContainerDimension.width / ((1.618 * 1.618) )));
2196
2172
  }
2197
2173
  }
2174
+ else if (this.isNew[StorageScope.WORKSPACE]) {
2175
+ const defaultAuxiliaryBarVisibility = this.configurationService.getValue(WorkbenchLayoutSettings.AUXILIARYBAR_DEFAULT_VISIBILITY);
2176
+ if (defaultAuxiliaryBarVisibility === 'maximized' ||
2177
+ (defaultAuxiliaryBarVisibility === 'maximizedInWorkspace' && this.contextService.getWorkbenchState() !== WorkbenchState.EMPTY)) {
2178
+ this.applyAuxiliaryBarMaximizedOverride();
2179
+ }
2180
+ }
2198
2181
  if (this.getRuntimeValue(LayoutStateKeys.PANEL_HIDDEN) &&
2199
2182
  this.getRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN) &&
2200
2183
  !this.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_WAS_LAST_MAXIMIZED)) {
2201
2184
  this.setRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN, false);
2202
2185
  }
2203
2186
  }
2187
+ applyAuxiliaryBarMaximizedOverride() {
2188
+ this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_LAST_NON_MAXIMIZED_VISIBILITY, {
2189
+ sideBarVisible: !this.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN),
2190
+ panelVisible: !this.getRuntimeValue(LayoutStateKeys.PANEL_HIDDEN),
2191
+ editorVisible: !this.getRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN),
2192
+ auxiliaryBarVisible: !this.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN)
2193
+ });
2194
+ this.setRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN, true);
2195
+ this.setRuntimeValue(LayoutStateKeys.PANEL_HIDDEN, true);
2196
+ this.setRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN, true);
2197
+ this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN, false);
2198
+ this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_LAST_NON_MAXIMIZED_SIZE, this.getInitializationValue(LayoutStateKeys.AUXILIARYBAR_SIZE));
2199
+ this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_WAS_LAST_MAXIMIZED, true);
2200
+ }
2204
2201
  save(workspace, global) {
2205
2202
  let key;
2206
2203
  const isZenMode = this.getRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE);
@@ -2267,18 +2264,13 @@ class LayoutStateModel extends Disposable {
2267
2264
  this.storageService.store(`${LayoutStateModel.STORAGE_PREFIX}${key.name}`, typeof value === 'object' ? JSON.stringify(value) : value, key.scope, key.target);
2268
2265
  }
2269
2266
  loadKeyFromStorage(key) {
2270
- let value = this.storageService.get(`${LayoutStateModel.STORAGE_PREFIX}${key.name}`, key.scope);
2267
+ const value = this.storageService.get(`${LayoutStateModel.STORAGE_PREFIX}${key.name}`, key.scope);
2271
2268
  if (value !== undefined) {
2269
+ this.isNew[key.scope] = false;
2272
2270
  switch (typeof key.defaultValue) {
2273
- case 'boolean':
2274
- value = value === 'true';
2275
- break;
2276
- case 'number':
2277
- value = parseInt(value);
2278
- break;
2279
- case 'object':
2280
- value = JSON.parse(value);
2281
- break;
2271
+ case 'boolean': return (value === 'true');
2272
+ case 'number': return parseInt(value);
2273
+ case 'object': return JSON.parse(value);
2282
2274
  }
2283
2275
  }
2284
2276
  return value;
@@ -55,7 +55,7 @@ class NotificationAccessibleView {
55
55
  if (!notification || !message) {
56
56
  return;
57
57
  }
58
- return withSeverityPrefix(notification.source ? ( localize(3386, '{0} Source: {1}', message, notification.source)) : message, notification.severity);
58
+ return withSeverityPrefix(notification.source ? ( localize(3424, '{0} Source: {1}', message, notification.source)) : message, notification.severity);
59
59
  }
60
60
  const content = getContentForNotification();
61
61
  if (!content) {
@@ -118,7 +118,7 @@ function getActionsFromNotification(notification, accessibilitySignalService) {
118
118
  }
119
119
  if (actions) {
120
120
  actions.push({
121
- id: 'clearNotification', label: ( localize(3387, "Clear Notification")), tooltip: ( localize(3387, "Clear Notification")), run: () => {
121
+ id: 'clearNotification', label: ( localize(3425, "Clear Notification")), tooltip: ( localize(3425, "Clear Notification")), run: () => {
122
122
  notification.close();
123
123
  accessibilitySignalService.playSignal(AccessibilitySignal.clear);
124
124
  }, enabled: true, class: ThemeIcon.asClassName(Codicon.clearAll)