@codingame/monaco-vscode-workbench-service-override 28.4.0 → 29.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": "
|
|
3
|
+
"version": "29.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": "
|
|
19
|
-
"@codingame/monaco-vscode-keybindings-service-override": "
|
|
20
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "
|
|
21
|
-
"@codingame/monaco-vscode-view-banner-service-override": "
|
|
22
|
-
"@codingame/monaco-vscode-view-common-service-override": "
|
|
23
|
-
"@codingame/monaco-vscode-view-status-bar-service-override": "
|
|
24
|
-
"@codingame/monaco-vscode-view-title-bar-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "29.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-keybindings-service-override": "29.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "29.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-view-banner-service-override": "29.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-view-common-service-override": "29.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-view-status-bar-service-override": "29.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-view-title-bar-service-override": "29.0.0"
|
|
25
25
|
},
|
|
26
26
|
"main": "index.js",
|
|
27
27
|
"module": "index.js",
|
|
@@ -6,11 +6,10 @@ import { Disposable, DisposableMap, DisposableStore, IDisposable } from "@coding
|
|
|
6
6
|
import { IUntypedEditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
7
7
|
import { Position, Parts, PanelAlignment, MULTI_WINDOW_PARTS, SINGLE_WINDOW_PARTS, IPartVisibilityChangeEvent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService";
|
|
8
8
|
import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
|
|
9
|
-
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
9
|
+
import { ServicesAccessor, IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
10
10
|
import { IPath } from "@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window";
|
|
11
11
|
import { EditorGroupLayout } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
|
|
12
12
|
import { Part } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/part";
|
|
13
|
-
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
14
13
|
export interface ILayoutRuntimeState {
|
|
15
14
|
activeContainerId: number;
|
|
16
15
|
mainWindowFullscreen: boolean;
|
|
@@ -158,6 +157,8 @@ export declare abstract class Layout extends Disposable implements IWorkbenchLay
|
|
|
158
157
|
private onWindowFocusChanged;
|
|
159
158
|
private getActiveContainerId;
|
|
160
159
|
private doUpdateLayoutConfiguration;
|
|
160
|
+
private isShadowsDisabled;
|
|
161
|
+
private updateShadows;
|
|
161
162
|
private setSideBarPosition;
|
|
162
163
|
private updateWindowBorder;
|
|
163
164
|
private initLayoutState;
|
|
@@ -17,7 +17,7 @@ import { WorkbenchState, isTemporaryWorkspace } from '@codingame/monaco-vscode-a
|
|
|
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';
|
|
19
19
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
20
|
-
import { isConfigured } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration';
|
|
20
|
+
import { isConfigured, isDefaultOverriden } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration';
|
|
21
21
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
22
22
|
import { ITitleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/title/browser/titleService.service';
|
|
23
23
|
import { StartupKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
@@ -62,6 +62,7 @@ var LayoutClasses;
|
|
|
62
62
|
LayoutClasses["FULLSCREEN"] = "fullscreen";
|
|
63
63
|
LayoutClasses["MAXIMIZED"] = "maximized";
|
|
64
64
|
LayoutClasses["WINDOW_BORDER"] = "border";
|
|
65
|
+
LayoutClasses["NO_SHADOWS"] = "no-shadows";
|
|
65
66
|
})(LayoutClasses || (LayoutClasses = {}));
|
|
66
67
|
const COMMAND_CENTER_SETTINGS = [
|
|
67
68
|
"chat.agentsControl.enabled",
|
|
@@ -273,6 +274,9 @@ class Layout extends Disposable {
|
|
|
273
274
|
}
|
|
274
275
|
this.doUpdateLayoutConfiguration();
|
|
275
276
|
}
|
|
277
|
+
if (e.affectsConfiguration(LayoutSettings.SHADOWS)) {
|
|
278
|
+
this.updateShadows();
|
|
279
|
+
}
|
|
276
280
|
if (e.affectsConfiguration(WorkbenchLayoutSettings.AUXILIARYBAR_FORCE_MAXIMIZED)) {
|
|
277
281
|
const forceMaximized = this.configurationService.getValue(WorkbenchLayoutSettings.AUXILIARYBAR_FORCE_MAXIMIZED);
|
|
278
282
|
if (forceMaximized === true && this.mainPartEditorService.visibleEditors.length === 0) {
|
|
@@ -417,6 +421,15 @@ class Layout extends Disposable {
|
|
|
417
421
|
skipLayout
|
|
418
422
|
));
|
|
419
423
|
}
|
|
424
|
+
isShadowsDisabled() {
|
|
425
|
+
return this.configurationService.getValue(LayoutSettings.SHADOWS) === false;
|
|
426
|
+
}
|
|
427
|
+
updateShadows() {
|
|
428
|
+
const noShadows = this.isShadowsDisabled();
|
|
429
|
+
for (const container of Array.from(this.containers)) {
|
|
430
|
+
container.classList.toggle(LayoutClasses.NO_SHADOWS, noShadows);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
420
433
|
setSideBarPosition(position) {
|
|
421
434
|
const activityBar = this.getPart(Parts.ACTIVITYBAR_PART);
|
|
422
435
|
const sideBar = this.getPart(Parts.SIDEBAR_PART);
|
|
@@ -1455,7 +1468,8 @@ class Layout extends Disposable {
|
|
|
1455
1468
|
!this.isVisible(Parts.PANEL_PART) ? LayoutClasses.PANEL_HIDDEN : undefined,
|
|
1456
1469
|
!this.isVisible(Parts.AUXILIARYBAR_PART) ? LayoutClasses.AUXILIARYBAR_HIDDEN : undefined,
|
|
1457
1470
|
!this.isVisible(Parts.STATUSBAR_PART) ? LayoutClasses.STATUSBAR_HIDDEN : undefined,
|
|
1458
|
-
this.state.runtime.mainWindowFullscreen ? LayoutClasses.FULLSCREEN : undefined
|
|
1471
|
+
this.state.runtime.mainWindowFullscreen ? LayoutClasses.FULLSCREEN : undefined,
|
|
1472
|
+
this.isShadowsDisabled() ? LayoutClasses.NO_SHADOWS : undefined
|
|
1459
1473
|
]);
|
|
1460
1474
|
}
|
|
1461
1475
|
setSideBarHidden(hidden) {
|
|
@@ -2388,7 +2402,7 @@ class LayoutStateModel extends Disposable {
|
|
|
2388
2402
|
return false;
|
|
2389
2403
|
}
|
|
2390
2404
|
const configuration = this.configurationService.inspect(WorkbenchLayoutSettings.AUXILIARYBAR_DEFAULT_VISIBILITY);
|
|
2391
|
-
if (configuration.defaultValue !== "hidden" && !isConfigured(configuration) && this.stateCache.get(LayoutStateKeys.AUXILIARYBAR_EMPTY.name)) {
|
|
2405
|
+
if (configuration.defaultValue !== "hidden" && !isConfigured(configuration) && !isDefaultOverriden(WorkbenchLayoutSettings.AUXILIARYBAR_DEFAULT_VISIBILITY) && this.stateCache.get(LayoutStateKeys.AUXILIARYBAR_EMPTY.name)) {
|
|
2392
2406
|
return true;
|
|
2393
2407
|
}
|
|
2394
2408
|
if (this.isNew[StorageScope.APPLICATION] && configuration.value !== "hidden") {
|
|
@@ -54,7 +54,7 @@ class NotificationAccessibleView {
|
|
|
54
54
|
if (!notification || !message) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
return withSeverityPrefix(notification.source ? ( localize(
|
|
57
|
+
return withSeverityPrefix(notification.source ? ( localize(3595, "{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(
|
|
114
|
-
tooltip: ( localize(
|
|
113
|
+
label: ( localize(3596, "Clear Notification")),
|
|
114
|
+
tooltip: ( localize(3596, "Clear Notification")),
|
|
115
115
|
run: () => {
|
|
116
116
|
notification.close();
|
|
117
117
|
accessibilitySignalService.playSignal(AccessibilitySignal.clear);
|