@codingame/monaco-vscode-workbench-service-override 20.5.0 → 21.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -25,8 +25,8 @@ import { getWorkbenchContainer } from '@codingame/monaco-vscode-api/workbench';
25
25
  import { onLayout, onRenderWorkbench } from '@codingame/monaco-vscode-api/lifecycle';
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
- 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-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/platform/dialogs/common/dialogs';
28
+ export { ViewPaneContainer } from '@codingame/monaco-vscode-71c8dbff-4c98-552f-aef0-e72b00fdcfc0-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
29
+ export { ConfirmResult } from '@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common/vscode/vs/platform/dialogs/common/dialogs';
30
30
  export { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
31
31
  export { AbstractResourceEditorInput } from '@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/editor/resourceEditorInput';
32
32
  export { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/editor/textResourceEditorInput';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-workbench-service-override",
3
- "version": "20.5.0",
3
+ "version": "21.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - workbench service-override",
6
6
  "keywords": [],
@@ -15,25 +15,24 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "20.5.0",
19
- "@codingame/monaco-vscode-256d5b78-0649-50e9-8354-2807f95f68f4-common": "20.5.0",
20
- "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "20.5.0",
21
- "@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common": "20.5.0",
22
- "@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "20.5.0",
23
- "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "20.5.0",
24
- "@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "20.5.0",
25
- "@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "20.5.0",
26
- "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.5.0",
27
- "@codingame/monaco-vscode-api": "20.5.0",
28
- "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.5.0",
29
- "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.5.0",
30
- "@codingame/monaco-vscode-f6f55824-df83-5ffc-ac26-50fd4df4fe0e-common": "20.5.0",
31
- "@codingame/monaco-vscode-keybindings-service-override": "20.5.0",
32
- "@codingame/monaco-vscode-quickaccess-service-override": "20.5.0",
33
- "@codingame/monaco-vscode-view-banner-service-override": "20.5.0",
34
- "@codingame/monaco-vscode-view-common-service-override": "20.5.0",
35
- "@codingame/monaco-vscode-view-status-bar-service-override": "20.5.0",
36
- "@codingame/monaco-vscode-view-title-bar-service-override": "20.5.0"
18
+ "@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "21.0.0",
19
+ "@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common": "21.0.0",
20
+ "@codingame/monaco-vscode-256d5b78-0649-50e9-8354-2807f95f68f4-common": "21.0.0",
21
+ "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "21.0.0",
22
+ "@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common": "21.0.0",
23
+ "@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "21.0.0",
24
+ "@codingame/monaco-vscode-71c8dbff-4c98-552f-aef0-e72b00fdcfc0-common": "21.0.0",
25
+ "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "21.0.0",
26
+ "@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "21.0.0",
27
+ "@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "21.0.0",
28
+ "@codingame/monaco-vscode-api": "21.0.0",
29
+ "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "21.0.0",
30
+ "@codingame/monaco-vscode-keybindings-service-override": "21.0.0",
31
+ "@codingame/monaco-vscode-quickaccess-service-override": "21.0.0",
32
+ "@codingame/monaco-vscode-view-banner-service-override": "21.0.0",
33
+ "@codingame/monaco-vscode-view-common-service-override": "21.0.0",
34
+ "@codingame/monaco-vscode-view-status-bar-service-override": "21.0.0",
35
+ "@codingame/monaco-vscode-view-title-bar-service-override": "21.0.0"
37
36
  },
38
37
  "main": "index.js",
39
38
  "module": "index.js",
@@ -2,17 +2,17 @@ import { type IViewContainerDescriptor, type IViewContainersRegistry, type IView
2
2
  import type { BrandedService, ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
3
3
  import { type IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
4
4
  import { Dimension } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/dom";
5
- import { ViewPaneContainer } from "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer";
5
+ import { ViewPaneContainer } from "@codingame/monaco-vscode-71c8dbff-4c98-552f-aef0-e72b00fdcfc0-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer";
6
6
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
7
7
  import { Codicon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/codicons";
8
8
  import { type EditorInputFactoryObject, type RegisteredEditorInfo, type RegisteredEditorOptions, RegisteredEditorPriority } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService";
9
9
  import { EditorInput, type IEditorCloseHandler } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput";
10
10
  import { EditorInputCapabilities, type IEditorOpenContext, type IEditorSerializer, Verbosity } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
11
11
  import type { IEditorOptions, IResourceEditorInput } from "@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor";
12
- import { EditorPane } from "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane";
12
+ import { EditorPane } from "@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-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-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/platform/dialogs/common/dialogs";
15
+ import { ConfirmResult } from "@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common/vscode/vs/platform/dialogs/common/dialogs";
16
16
  import { AbstractResourceEditorInput } from "@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common/vscode/vs/workbench/common/editor/resourceEditorInput";
17
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";
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { Disposable, toDisposable, DisposableStore, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
3
- import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
3
+ import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
4
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
6
  import { isWindows, isLinux, isWeb, isIOS, isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
@@ -8,7 +8,7 @@ import { pathsToEditors, isResourceEditorInput, EditorInputCapabilities } from '
8
8
  import { SidebarPart } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
9
9
  import { PanelPart } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/workbench/browser/parts/panel/panelPart';
10
10
  import { LayoutSettings, Parts, EditorActionsLocation, ActivityBarPosition, shouldShowCustomTitleBar, Position, isHorizontal, ZenModeSettings, isMultiWindowPart, partOpensMaximizedFromString, PartOpensMaximizedOptions, positionToString, positionFromString } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
11
- import { isTemporaryWorkspace, WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
11
+ import { WorkbenchState, isTemporaryWorkspace } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
12
12
  import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
13
13
  import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
14
14
  import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
@@ -17,7 +17,7 @@ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
17
17
  import { ITitleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/title/browser/titleService.service';
18
18
  import { StartupKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
19
19
  import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
20
- import { MenuSettings, TitleBarSetting, DEFAULT_WINDOW_SIZE, CustomTitleBarVisibility, hasNativeTitlebar, getMenuBarVisibility, useWindowControlsOverlay, hasNativeMenu } from '@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window';
20
+ import { MenuSettings, TitleBarSetting, DEFAULT_EMPTY_WINDOW_SIZE, DEFAULT_WORKSPACE_WINDOW_SIZE, CustomTitleBarVisibility, hasNativeTitlebar, getMenuBarVisibility, useWindowControlsOverlay, hasNativeMenu } from '@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window';
21
21
  import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
22
22
  import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
23
23
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
@@ -48,9 +48,6 @@ import { AuxiliaryBarPart } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e
48
48
  import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
49
49
  import { IAuxiliaryWindowService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service';
50
50
  import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
51
- import { StartupExperimentGroup } from '@codingame/monaco-vscode-f6f55824-df83-5ffc-ac26-50fd4df4fe0e-common/vscode/vs/workbench/services/coreExperimentation/common/coreExperimentationService';
52
- import { ICoreExperimentationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service';
53
- import { Lazy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lazy';
54
51
  import { setContainerElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/domStylesheets';
55
52
  import { Orientation } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/sash/sash';
56
53
  import '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/base/browser/ui/grid/gridview';
@@ -81,7 +78,8 @@ const TITLE_BAR_SETTINGS = [
81
78
  TitleBarSetting.TITLE_BAR_STYLE,
82
79
  TitleBarSetting.CUSTOM_TITLE_BAR_VISIBILITY,
83
80
  ];
84
- const DEFAULT_WINDOW_DIMENSIONS = ( new Dimension(DEFAULT_WINDOW_SIZE.width, DEFAULT_WINDOW_SIZE.height));
81
+ const DEFAULT_EMPTY_WINDOW_DIMENSIONS = ( new Dimension(DEFAULT_EMPTY_WINDOW_SIZE.width, DEFAULT_EMPTY_WINDOW_SIZE.height));
82
+ const DEFAULT_WORKSPACE_WINDOW_DIMENSIONS = ( new Dimension(DEFAULT_WORKSPACE_WINDOW_SIZE.width, DEFAULT_WORKSPACE_WINDOW_SIZE.height));
85
83
  class Layout extends Disposable {
86
84
  get activeContainer() { return this.getContainerFromDocument(getActiveDocument()); }
87
85
  get containers() {
@@ -203,7 +201,7 @@ class Layout extends Disposable {
203
201
  this.statusBarService = accessor.get(IStatusbarService);
204
202
  accessor.get(IBannerService);
205
203
  this.registerLayoutListeners();
206
- this.initLayoutState(accessor.get(ILifecycleService), accessor.get(IFileService), accessor.get(ICoreExperimentationService));
204
+ this.initLayoutState(accessor.get(ILifecycleService), accessor.get(IFileService));
207
205
  }
208
206
  registerLayoutListeners() {
209
207
  const showEditorIfHidden = () => {
@@ -392,16 +390,9 @@ class Layout extends Disposable {
392
390
  this.layout();
393
391
  }
394
392
  }
395
- initLayoutState(lifecycleService, fileService, coreExperimentationService) {
396
- this._mainContainerDimension = getClientArea(this.parent, DEFAULT_WINDOW_DIMENSIONS);
397
- this.stateModel = ( new LayoutStateModel(
398
- this.storageService,
399
- this.configurationService,
400
- this.contextService,
401
- coreExperimentationService,
402
- this.environmentService,
403
- this.viewDescriptorService
404
- ));
393
+ initLayoutState(lifecycleService, fileService) {
394
+ this._mainContainerDimension = getClientArea(this.parent, this.contextService.getWorkbenchState() === WorkbenchState.EMPTY ? DEFAULT_EMPTY_WINDOW_DIMENSIONS : DEFAULT_WORKSPACE_WINDOW_DIMENSIONS);
395
+ this.stateModel = ( new LayoutStateModel(this.storageService, this.configurationService, this.contextService));
405
396
  this.stateModel.load({
406
397
  mainContainerDimension: this._mainContainerDimension,
407
398
  resetLayout: Boolean(this.layoutOptions?.resetLayout)
@@ -1095,7 +1086,7 @@ class Layout extends Disposable {
1095
1086
  this.handleContainerDidLayout(this.mainContainer, this._mainContainerDimension);
1096
1087
  }));
1097
1088
  }
1098
- this._register(this.storageService.onWillSaveState(e => {
1089
+ this._register(this.storageService.onWillSaveState(() => {
1099
1090
  const sideBarSize = this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN)
1100
1091
  ? this.workbenchGrid.getViewCachedVisibleSize(this.sideBarPartView)
1101
1092
  : this.workbenchGrid.getViewSize(this.sideBarPartView).width;
@@ -1112,13 +1103,16 @@ class Layout extends Disposable {
1112
1103
  this.stateModel.setInitializationValue(LayoutStateKeys.AUXILIARYBAR_SIZE, auxiliaryBarSize);
1113
1104
  this.stateModel.save(true, true);
1114
1105
  }));
1106
+ this._register(Event.any(this.paneCompositeService.onDidPaneCompositeOpen, this.paneCompositeService.onDidPaneCompositeClose)(() => {
1107
+ this.stateModel.setInitializationValue(LayoutStateKeys.AUXILIARYBAR_EMPTY, this.paneCompositeService.getPaneCompositeIds(ViewContainerLocation.AuxiliaryBar).length === 0);
1108
+ }));
1115
1109
  }
1116
1110
  layout() {
1117
1111
  if (!this.disposed) {
1118
1112
  this._mainContainerDimension = getClientArea(this.state.runtime.mainWindowFullscreen ?
1119
1113
  mainWindow.document.body :
1120
1114
  this.parent,
1121
- DEFAULT_WINDOW_DIMENSIONS
1115
+ this.contextService.getWorkbenchState() === WorkbenchState.EMPTY ? DEFAULT_EMPTY_WINDOW_DIMENSIONS : DEFAULT_WORKSPACE_WINDOW_DIMENSIONS
1122
1116
  );
1123
1117
  this.logService.trace(`Layout#layout, height: ${this._mainContainerDimension.height}, width: ${this._mainContainerDimension.width}`);
1124
1118
  position(this.mainContainer, 0, 0, 0, 0, 'relative');
@@ -1806,7 +1800,7 @@ class Layout extends Disposable {
1806
1800
  createGridDescriptor() {
1807
1801
  const { width, height } = this._mainContainerDimension;
1808
1802
  const sideBarSize = this.stateModel.getInitializationValue(LayoutStateKeys.SIDEBAR_SIZE);
1809
- const auxiliaryBarPartSize = this.stateModel.getInitializationValue(LayoutStateKeys.AUXILIARYBAR_SIZE);
1803
+ const auxiliaryBarSize = this.stateModel.getInitializationValue(LayoutStateKeys.AUXILIARYBAR_SIZE);
1810
1804
  const panelSize = this.stateModel.getInitializationValue(LayoutStateKeys.PANEL_SIZE);
1811
1805
  const titleBarHeight = this.titleBarPartView.minimumHeight;
1812
1806
  const bannerHeight = this.bannerPartView.minimumHeight;
@@ -1842,7 +1836,7 @@ class Layout extends Disposable {
1842
1836
  const auxiliaryBarNode = {
1843
1837
  type: 'leaf',
1844
1838
  data: { type: Parts.AUXILIARYBAR_PART },
1845
- size: auxiliaryBarPartSize,
1839
+ size: auxiliaryBarSize,
1846
1840
  visible: this.isVisible(Parts.AUXILIARYBAR_PART)
1847
1841
  };
1848
1842
  const editorNode = {
@@ -1985,6 +1979,7 @@ const LayoutStateKeys = {
1985
1979
  auxiliaryBarVisible: false
1986
1980
  }
1987
1981
  )),
1982
+ AUXILIARYBAR_EMPTY: ( new InitializationStateKey('auxiliaryBar.empty', StorageScope.PROFILE, StorageTarget.MACHINE, false)),
1988
1983
  SIDEBAR_POSITON: ( new RuntimeStateKey(
1989
1984
  'sideBar.position',
1990
1985
  StorageScope.WORKSPACE,
@@ -2033,14 +2028,11 @@ var LegacyWorkbenchLayoutSettings;
2033
2028
  })(LegacyWorkbenchLayoutSettings || (LegacyWorkbenchLayoutSettings = {}));
2034
2029
  class LayoutStateModel extends Disposable {
2035
2030
  static { this.STORAGE_PREFIX = 'workbench.'; }
2036
- constructor(storageService, configurationService, contextService, coreExperimentationService, environmentService, viewDescriptorService) {
2031
+ constructor(storageService, configurationService, contextService) {
2037
2032
  super();
2038
2033
  this.storageService = storageService;
2039
2034
  this.configurationService = configurationService;
2040
2035
  this.contextService = contextService;
2041
- this.coreExperimentationService = coreExperimentationService;
2042
- this.environmentService = environmentService;
2043
- this.viewDescriptorService = viewDescriptorService;
2044
2036
  this._onDidChangeState = this._register(( new Emitter()));
2045
2037
  this.onDidChangeState = this._onDidChangeState.event;
2046
2038
  this.stateCache = ( new Map());
@@ -2098,28 +2090,21 @@ class LayoutStateModel extends Disposable {
2098
2090
  LayoutStateKeys.AUXILIARYBAR_SIZE.defaultValue = Math.min(300, mainContainerDimension.width / 4);
2099
2091
  LayoutStateKeys.AUXILIARYBAR_HIDDEN.defaultValue = (() => {
2100
2092
  const configuration = this.configurationService.inspect(WorkbenchLayoutSettings.AUXILIARYBAR_DEFAULT_VISIBILITY);
2101
- if (configuration.defaultValue !== 'hidden' && !isConfigured(configuration)) {
2102
- if (isWeb && !this.environmentService.remoteAuthority) {
2103
- return true;
2104
- }
2105
- const context = this.storageService.getObject('chat.setupContext', StorageScope.PROFILE);
2106
- if (context && ((context.installed && context.disabled) || (!context.installed && context.hidden))) {
2107
- return true;
2108
- }
2109
- const location = this.viewDescriptorService.getViewLocationById('workbench.panel.chat.view.copilot');
2110
- if (location === ViewContainerLocation.Sidebar || location === ViewContainerLocation.Panel) {
2111
- return true;
2112
- }
2093
+ if (configuration.defaultValue !== 'hidden' && !isConfigured(configuration) && this.stateCache.get(LayoutStateKeys.AUXILIARYBAR_EMPTY.name)) {
2094
+ return true;
2113
2095
  }
2114
- switch (this.configurationService.getValue(WorkbenchLayoutSettings.AUXILIARYBAR_DEFAULT_VISIBILITY)) {
2115
- case 'maximized':
2116
- case 'visible':
2117
- return false;
2096
+ if (this.isNew[StorageScope.APPLICATION] &&
2097
+ configuration.value !== 'hidden') {
2098
+ return false;
2099
+ }
2100
+ switch (configuration.value) {
2101
+ case 'hidden':
2102
+ return true;
2118
2103
  case 'visibleInWorkspace':
2119
2104
  case 'maximizedInWorkspace':
2120
2105
  return workbenchState === WorkbenchState.EMPTY;
2121
2106
  default:
2122
- return true;
2107
+ return false;
2123
2108
  }
2124
2109
  })();
2125
2110
  LayoutStateKeys.PANEL_SIZE.defaultValue = (this.stateCache.get(LayoutStateKeys.PANEL_POSITION.name) ?? isHorizontal(LayoutStateKeys.PANEL_POSITION.defaultValue)) ? mainContainerDimension.height / 3 : mainContainerDimension.width / 4;
@@ -2148,30 +2133,7 @@ class LayoutStateModel extends Disposable {
2148
2133
  }));
2149
2134
  }
2150
2135
  applyOverrides(configuration) {
2151
- const experiment = ( new Lazy(() => {
2152
- try {
2153
- return this.coreExperimentationService.getExperiment();
2154
- }
2155
- catch (error) {
2156
- return undefined;
2157
- }
2158
- }));
2159
- if (this.storageService.isNew(StorageScope.APPLICATION) &&
2160
- this.contextService.getWorkbenchState() === WorkbenchState.EMPTY &&
2161
- (experiment.value?.experimentGroup === StartupExperimentGroup.MaximizedChat ||
2162
- experiment.value?.experimentGroup === StartupExperimentGroup.SplitEmptyEditorChat ||
2163
- experiment.value?.experimentGroup === StartupExperimentGroup.SplitWelcomeChat)) {
2164
- if (experiment.value.experimentGroup === StartupExperimentGroup.MaximizedChat) {
2165
- this.applyAuxiliaryBarMaximizedOverride();
2166
- }
2167
- else if (experiment.value.experimentGroup === StartupExperimentGroup.SplitEmptyEditorChat ||
2168
- experiment.value.experimentGroup === StartupExperimentGroup.SplitWelcomeChat) {
2169
- const mainContainerDimension = configuration.mainContainerDimension;
2170
- this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN, false);
2171
- this.setInitializationValue(LayoutStateKeys.AUXILIARYBAR_SIZE, Math.ceil(mainContainerDimension.width / ((1.618 * 1.618) )));
2172
- }
2173
- }
2174
- else if (this.isNew[StorageScope.WORKSPACE]) {
2136
+ if (this.isNew[StorageScope.WORKSPACE]) {
2175
2137
  const defaultAuxiliaryBarVisibility = this.configurationService.getValue(WorkbenchLayoutSettings.AUXILIARYBAR_DEFAULT_VISIBILITY);
2176
2138
  if (defaultAuxiliaryBarVisibility === 'maximized' ||
2177
2139
  (defaultAuxiliaryBarVisibility === 'maximizedInWorkspace' && this.contextService.getWorkbenchState() !== WorkbenchState.EMPTY)) {
@@ -2183,6 +2145,10 @@ class LayoutStateModel extends Disposable {
2183
2145
  !this.getRuntimeValue(LayoutStateKeys.AUXILIARYBAR_WAS_LAST_MAXIMIZED)) {
2184
2146
  this.setRuntimeValue(LayoutStateKeys.EDITOR_HIDDEN, false);
2185
2147
  }
2148
+ if (this.isNew[StorageScope.WORKSPACE] && configuration.mainContainerDimension.width <= DEFAULT_WORKSPACE_WINDOW_DIMENSIONS.width) {
2149
+ this.setInitializationValue(LayoutStateKeys.SIDEBAR_SIZE, Math.min(300, configuration.mainContainerDimension.width / 4));
2150
+ this.setInitializationValue(LayoutStateKeys.AUXILIARYBAR_SIZE, Math.min(300, configuration.mainContainerDimension.width / 4));
2151
+ }
2186
2152
  }
2187
2153
  applyAuxiliaryBarMaximizedOverride() {
2188
2154
  this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_LAST_NON_MAXIMIZED_VISIBILITY, {
@@ -55,7 +55,7 @@ class NotificationAccessibleView {
55
55
  if (!notification || !message) {
56
56
  return;
57
57
  }
58
- return withSeverityPrefix(notification.source ? ( localize(3424, '{0} Source: {1}', message, notification.source)) : message, notification.severity);
58
+ return withSeverityPrefix(notification.source ? ( localize(3434, '{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(3425, "Clear Notification")), tooltip: ( localize(3425, "Clear Notification")), run: () => {
121
+ id: 'clearNotification', label: ( localize(3435, "Clear Notification")), tooltip: ( localize(3435, "Clear Notification")), run: () => {
122
122
  notification.close();
123
123
  accessibilitySignalService.playSignal(AccessibilitySignal.clear);
124
124
  }, enabled: true, class: ThemeIcon.asClassName(Codicon.clearAll)