@codingame/monaco-vscode-workbench-service-override 34.1.3 → 35.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-workbench-service-override",
3
- "version": "34.1.3",
3
+ "version": "35.0.1",
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": "34.1.3",
19
- "@codingame/monaco-vscode-keybindings-service-override": "34.1.3",
20
- "@codingame/monaco-vscode-quickaccess-service-override": "34.1.3",
21
- "@codingame/monaco-vscode-view-banner-service-override": "34.1.3",
22
- "@codingame/monaco-vscode-view-common-service-override": "34.1.3",
23
- "@codingame/monaco-vscode-view-status-bar-service-override": "34.1.3",
24
- "@codingame/monaco-vscode-view-title-bar-service-override": "34.1.3"
18
+ "@codingame/monaco-vscode-api": "35.0.1",
19
+ "@codingame/monaco-vscode-keybindings-service-override": "35.0.1",
20
+ "@codingame/monaco-vscode-quickaccess-service-override": "35.0.1",
21
+ "@codingame/monaco-vscode-view-banner-service-override": "35.0.1",
22
+ "@codingame/monaco-vscode-view-common-service-override": "35.0.1",
23
+ "@codingame/monaco-vscode-view-status-bar-service-override": "35.0.1",
24
+ "@codingame/monaco-vscode-view-title-bar-service-override": "35.0.1"
25
25
  },
26
26
  "main": "index.js",
27
27
  "module": "index.js",
@@ -159,6 +159,8 @@ export declare abstract class Layout extends Disposable implements IWorkbenchLay
159
159
  private doUpdateLayoutConfiguration;
160
160
  private isShadowsDisabled;
161
161
  private updateShadows;
162
+ isFloatingPanelsEnabled(): boolean;
163
+ private updateFloatingPanels;
162
164
  private setSideBarPosition;
163
165
  private updateWindowBorder;
164
166
  private initLayoutState;
@@ -12,7 +12,7 @@ import { isWindows, isLinux, isWeb, isIOS, isMacintosh } from '@codingame/monaco
12
12
  import { pathsToEditors, isResourceEditorInput, EditorInputCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
13
13
  import { SidebarPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
14
14
  import { PanelPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/panel/panelPart';
15
- 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';
15
+ import { LayoutSettings, Parts, EditorActionsLocation, ActivityBarPosition, shouldShowCustomTitleBar, Position, isHorizontal, ZenModeSettings, isMultiWindowPart, positionToString, partOpensMaximizedFromString, PartOpensMaximizedOptions, positionFromString } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
16
16
  import { WorkbenchState, isTemporaryWorkspace } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
17
17
  import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
18
18
  import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
@@ -63,6 +63,7 @@ var LayoutClasses;
63
63
  LayoutClasses["MAXIMIZED"] = "maximized";
64
64
  LayoutClasses["WINDOW_BORDER"] = "border";
65
65
  LayoutClasses["NO_SHADOWS"] = "no-shadows";
66
+ LayoutClasses["FLOATING_PANELS"] = "floating-panels";
66
67
  })(LayoutClasses || (LayoutClasses = {}));
67
68
  const COMMAND_CENTER_SETTINGS = [
68
69
  "chat.agentsControl.enabled",
@@ -279,6 +280,10 @@ class Layout extends Disposable {
279
280
  if (e.affectsConfiguration(LayoutSettings.SHADOWS)) {
280
281
  this.updateShadows();
281
282
  }
283
+ if (e.affectsConfiguration(LayoutSettings.MODERN_UI)) {
284
+ this.updateFloatingPanels();
285
+ this.layout();
286
+ }
282
287
  if (e.affectsConfiguration(WorkbenchLayoutSettings.AUXILIARYBAR_FORCE_MAXIMIZED)) {
283
288
  const forceMaximized = this.configurationService.getValue(WorkbenchLayoutSettings.AUXILIARYBAR_FORCE_MAXIMIZED);
284
289
  if (forceMaximized === true && this.mainPartEditorService.visibleEditors.length === 0) {
@@ -432,6 +437,12 @@ class Layout extends Disposable {
432
437
  container.classList.toggle(LayoutClasses.NO_SHADOWS, noShadows);
433
438
  }
434
439
  }
440
+ isFloatingPanelsEnabled() {
441
+ return this.configurationService.getValue(LayoutSettings.MODERN_UI) === true;
442
+ }
443
+ updateFloatingPanels() {
444
+ this.mainContainer.classList.toggle(LayoutClasses.FLOATING_PANELS, this.isFloatingPanelsEnabled());
445
+ }
435
446
  setSideBarPosition(position) {
436
447
  const activityBar = this.getPart(Parts.ACTIVITYBAR_PART);
437
448
  const sideBar = this.getPart(Parts.SIDEBAR_PART);
@@ -1466,7 +1477,10 @@ class Layout extends Disposable {
1466
1477
  !this.isVisible(Parts.AUXILIARYBAR_PART) ? LayoutClasses.AUXILIARYBAR_HIDDEN : undefined,
1467
1478
  !this.isVisible(Parts.STATUSBAR_PART) ? LayoutClasses.STATUSBAR_HIDDEN : undefined,
1468
1479
  this.state.runtime.mainWindowFullscreen ? LayoutClasses.FULLSCREEN : undefined,
1469
- this.isShadowsDisabled() ? LayoutClasses.NO_SHADOWS : undefined
1480
+ this.isShadowsDisabled() ? LayoutClasses.NO_SHADOWS : undefined,
1481
+ this.isFloatingPanelsEnabled() ? LayoutClasses.FLOATING_PANELS : undefined,
1482
+ `panel-position-${positionToString(this.getPanelPosition())}`,
1483
+ `panel-alignment-${this.getPanelAlignment()}`
1470
1484
  ]);
1471
1485
  }
1472
1486
  setSideBarHidden(hidden) {
@@ -1594,7 +1608,10 @@ class Layout extends Disposable {
1594
1608
  this.toggleMaximizedPanel();
1595
1609
  }
1596
1610
  this.setAuxiliaryBarMaximized(false);
1611
+ const oldAlignmentValue = this.getPanelAlignment();
1597
1612
  this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_ALIGNMENT, alignment);
1613
+ this.mainContainer.classList.remove(`panel-alignment-${oldAlignmentValue}`);
1614
+ this.mainContainer.classList.add(`panel-alignment-${alignment}`);
1598
1615
  this.adjustPartPositions(this.getSideBarPosition(), alignment, this.getPanelPosition());
1599
1616
  this._onDidChangePanelAlignment.fire(alignment);
1600
1617
  }
@@ -1841,6 +1858,8 @@ class Layout extends Disposable {
1841
1858
  const panelContainer = assertReturnsDefined(panelPart.getContainer());
1842
1859
  panelContainer.classList.remove(oldPositionValue);
1843
1860
  panelContainer.classList.add(newPositionValue);
1861
+ this.mainContainer.classList.remove(`panel-position-${oldPositionValue}`);
1862
+ this.mainContainer.classList.add(`panel-position-${newPositionValue}`);
1844
1863
  panelPart.updateStyles();
1845
1864
  const size = this.workbenchGrid.getViewSize(this.panelPartView);
1846
1865
  const sideBarSize = this.workbenchGrid.getViewSize(this.sideBarPartView);
@@ -54,7 +54,7 @@ class NotificationAccessibleView {
54
54
  if (!notification || !message) {
55
55
  return;
56
56
  }
57
- return withSeverityPrefix(notification.source ? ( localize(3720, "{0} Source: {1}", message, notification.source)) : message, notification.severity);
57
+ return withSeverityPrefix(notification.source ? ( localize(3797, "{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(3721, "Clear Notification")),
114
- tooltip: ( localize(3721, "Clear Notification")),
113
+ label: ( localize(3798, "Clear Notification")),
114
+ tooltip: ( localize(3798, "Clear Notification")),
115
115
  run: () => {
116
116
  notification.close();
117
117
  accessibilitySignalService.playSignal(AccessibilitySignal.clear);