@codingame/monaco-vscode-workbench-service-override 26.2.1 → 27.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-workbench-service-override",
3
- "version": "26.2.1",
3
+ "version": "27.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - workbench service-override",
6
6
  "keywords": [],
@@ -15,13 +15,13 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "26.2.1",
19
- "@codingame/monaco-vscode-keybindings-service-override": "26.2.1",
20
- "@codingame/monaco-vscode-quickaccess-service-override": "26.2.1",
21
- "@codingame/monaco-vscode-view-banner-service-override": "26.2.1",
22
- "@codingame/monaco-vscode-view-common-service-override": "26.2.1",
23
- "@codingame/monaco-vscode-view-status-bar-service-override": "26.2.1",
24
- "@codingame/monaco-vscode-view-title-bar-service-override": "26.2.1"
18
+ "@codingame/monaco-vscode-api": "27.0.0",
19
+ "@codingame/monaco-vscode-keybindings-service-override": "27.0.0",
20
+ "@codingame/monaco-vscode-quickaccess-service-override": "27.0.0",
21
+ "@codingame/monaco-vscode-view-banner-service-override": "27.0.0",
22
+ "@codingame/monaco-vscode-view-common-service-override": "27.0.0",
23
+ "@codingame/monaco-vscode-view-status-bar-service-override": "27.0.0",
24
+ "@codingame/monaco-vscode-view-title-bar-service-override": "27.0.0"
25
25
  },
26
26
  "main": "index.js",
27
27
  "module": "index.js",
@@ -26,7 +26,7 @@ import { MenuSettings, TitleBarSetting, DEFAULT_EMPTY_WINDOW_SIZE, DEFAULT_WORKS
26
26
  import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
27
27
  import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service';
28
28
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
29
- import { GroupsOrder, GroupOrientation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService';
29
+ import { GroupActivationReason, GroupsOrder, GroupOrientation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService';
30
30
  import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
31
31
  import { Part } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/part';
32
32
  import { IStatusbarService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
@@ -237,7 +237,11 @@ class Layout extends Disposable {
237
237
  showEditorIfHidden();
238
238
  }
239
239
  }));
240
- this._register(this.editorGroupService.mainPart.onDidActivateGroup(showEditorIfHidden));
240
+ this._register(this.editorGroupService.mainPart.onDidActivateGroup(e => {
241
+ if (e.reason !== GroupActivationReason.PART_CLOSE) {
242
+ showEditorIfHidden();
243
+ }
244
+ }));
241
245
  this._register(this.mainPartEditorService.onDidActiveEditorChange(
242
246
  () => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED))
243
247
  ));
@@ -1578,6 +1582,7 @@ class Layout extends Disposable {
1578
1582
  if (alignment !== "center" && this.isPanelMaximized()) {
1579
1583
  this.toggleMaximizedPanel();
1580
1584
  }
1585
+ this.setAuxiliaryBarMaximized(false);
1581
1586
  this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_ALIGNMENT, alignment);
1582
1587
  this.adjustPartPositions(this.getSideBarPosition(), alignment, this.getPanelPosition());
1583
1588
  this._onDidChangePanelAlignment.fire(alignment);
@@ -2434,7 +2439,10 @@ class LayoutStateModel extends Disposable {
2434
2439
  applyOverrides(configuration) {
2435
2440
  if (this.isNew[StorageScope.WORKSPACE]) {
2436
2441
  const defaultAuxiliaryBarVisibility = this.configurationService.getValue(WorkbenchLayoutSettings.AUXILIARYBAR_DEFAULT_VISIBILITY);
2437
- if (defaultAuxiliaryBarVisibility === "maximized" || (defaultAuxiliaryBarVisibility === "maximizedInWorkspace" && this.contextService.getWorkbenchState() !== WorkbenchState.EMPTY)) {
2442
+ const startupEditor = this.configurationService.getValue("workbench.startupEditor");
2443
+ if (startupEditor === "agentSessionsWelcomePage") {
2444
+ this.applyAuxiliaryBarHiddenOverride(true);
2445
+ } else if (defaultAuxiliaryBarVisibility === "maximized" || (defaultAuxiliaryBarVisibility === "maximizedInWorkspace" && this.contextService.getWorkbenchState() !== WorkbenchState.EMPTY)) {
2438
2446
  this.applyAuxiliaryBarMaximizedOverride();
2439
2447
  }
2440
2448
  }
@@ -2469,6 +2477,9 @@ class LayoutStateModel extends Disposable {
2469
2477
  );
2470
2478
  this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_WAS_LAST_MAXIMIZED, true);
2471
2479
  }
2480
+ applyAuxiliaryBarHiddenOverride(value) {
2481
+ this.setRuntimeValue(LayoutStateKeys.AUXILIARYBAR_HIDDEN, value);
2482
+ }
2472
2483
  save(workspace, global) {
2473
2484
  let key;
2474
2485
  const isZenMode = this.getRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE);
@@ -54,7 +54,7 @@ class NotificationAccessibleView {
54
54
  if (!notification || !message) {
55
55
  return;
56
56
  }
57
- return withSeverityPrefix(notification.source ? ( localize(3528, "{0} Source: {1}", message, notification.source)) : message, notification.severity);
57
+ return withSeverityPrefix(notification.source ? ( localize(3583, "{0} Source: {1}", message, notification.source)) : message, notification.severity);
58
58
  }
59
59
  const content = getContentForNotification();
60
60
  if (!content) {
@@ -110,8 +110,8 @@ function getActionsFromNotification(notification, accessibilitySignalService) {
110
110
  if (actions) {
111
111
  actions.push({
112
112
  id: "clearNotification",
113
- label: ( localize(3529, "Clear Notification")),
114
- tooltip: ( localize(3529, "Clear Notification")),
113
+ label: ( localize(3584, "Clear Notification")),
114
+ tooltip: ( localize(3584, "Clear Notification")),
115
115
  run: () => {
116
116
  notification.close();
117
117
  accessibilitySignalService.playSignal(AccessibilitySignal.clear);