@codingame/monaco-vscode-workbench-service-override 17.2.1 → 18.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,11 +25,11 @@ 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-
|
|
29
|
-
export { ConfirmResult } from '@codingame/monaco-vscode-
|
|
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-f24b7f0a-ceeb-5877-9148-81eb98a4f5d7-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-
|
|
32
|
-
export { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-
|
|
31
|
+
export { AbstractResourceEditorInput } from '@codingame/monaco-vscode-4ee27008-17b4-593f-9c09-19e8e3077f51-common/vscode/vs/workbench/common/editor/resourceEditorInput';
|
|
32
|
+
export { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-4ee27008-17b4-593f-9c09-19e8e3077f51-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": "
|
|
3
|
+
"version": "18.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,25 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "
|
|
24
|
-
"@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-api": "
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
31
|
-
"@codingame/monaco-vscode-keybindings-service-override": "
|
|
32
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "
|
|
33
|
-
"@codingame/monaco-vscode-view-banner-service-override": "
|
|
34
|
-
"@codingame/monaco-vscode-view-common-service-override": "
|
|
35
|
-
"@codingame/monaco-vscode-view-status-bar-service-override": "
|
|
36
|
-
"@codingame/monaco-vscode-view-title-bar-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "18.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-256d5b78-0649-50e9-8354-2807f95f68f4-common": "18.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "18.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common": "18.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-4ee27008-17b4-593f-9c09-19e8e3077f51-common": "18.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "18.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "18.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common": "18.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "18.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "18.0.0",
|
|
28
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "18.0.0",
|
|
29
|
+
"@codingame/monaco-vscode-api": "18.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-f24b7f0a-ceeb-5877-9148-81eb98a4f5d7-common": "18.0.0",
|
|
31
|
+
"@codingame/monaco-vscode-keybindings-service-override": "18.0.0",
|
|
32
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "18.0.0",
|
|
33
|
+
"@codingame/monaco-vscode-view-banner-service-override": "18.0.0",
|
|
34
|
+
"@codingame/monaco-vscode-view-common-service-override": "18.0.0",
|
|
35
|
+
"@codingame/monaco-vscode-view-status-bar-service-override": "18.0.0",
|
|
36
|
+
"@codingame/monaco-vscode-view-title-bar-service-override": "18.0.0"
|
|
37
37
|
},
|
|
38
38
|
"main": "index.js",
|
|
39
39
|
"module": "index.js",
|
|
@@ -2,19 +2,19 @@ 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-
|
|
5
|
+
import { ViewPaneContainer } from "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-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-
|
|
12
|
+
import { EditorPane } from "@codingame/monaco-vscode-dcfc2191-2da1-54c7-8fb7-e92c5d11ecef-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-
|
|
16
|
-
import { AbstractResourceEditorInput } from "@codingame/monaco-vscode-
|
|
17
|
-
import { AbstractTextResourceEditorInput } from "@codingame/monaco-vscode-
|
|
15
|
+
import { ConfirmResult } from "@codingame/monaco-vscode-f24b7f0a-ceeb-5877-9148-81eb98a4f5d7-common/vscode/vs/platform/dialogs/common/dialogs";
|
|
16
|
+
import { AbstractResourceEditorInput } from "@codingame/monaco-vscode-4ee27008-17b4-593f-9c09-19e8e3077f51-common/vscode/vs/workbench/common/editor/resourceEditorInput";
|
|
17
|
+
import { AbstractTextResourceEditorInput } from "@codingame/monaco-vscode-4ee27008-17b4-593f-9c09-19e8e3077f51-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";
|
|
@@ -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 { TitleBarSetting, DEFAULT_WINDOW_SIZE, CustomTitleBarVisibility, hasNativeTitlebar, getMenuBarVisibility, useWindowControlsOverlay } from '@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window';
|
|
20
|
+
import { MenuSettings, TitleBarSetting, DEFAULT_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';
|
|
@@ -74,7 +74,7 @@ const TITLE_BAR_SETTINGS = [
|
|
|
74
74
|
...COMMAND_CENTER_SETTINGS,
|
|
75
75
|
LayoutSettings.EDITOR_ACTIONS_LOCATION,
|
|
76
76
|
LayoutSettings.LAYOUT_ACTIONS,
|
|
77
|
-
|
|
77
|
+
MenuSettings.MenuBarVisibility,
|
|
78
78
|
TitleBarSetting.TITLE_BAR_STYLE,
|
|
79
79
|
TitleBarSetting.CUSTOM_TITLE_BAR_VISIBILITY,
|
|
80
80
|
];
|
|
@@ -188,8 +188,8 @@ class Layout extends Disposable {
|
|
|
188
188
|
this.telemetryService = accessor.get(ITelemetryService);
|
|
189
189
|
this.auxiliaryWindowService = accessor.get(IAuxiliaryWindowService);
|
|
190
190
|
this.editorService = accessor.get(IEditorService);
|
|
191
|
-
this.mainPartEditorService = this.editorService.createScoped('main', this._store);
|
|
192
191
|
this.editorGroupService = accessor.get(IEditorGroupsService);
|
|
192
|
+
this.mainPartEditorService = this.editorService.createScoped(this.editorGroupService.mainPart, this._store);
|
|
193
193
|
this.paneCompositeService = accessor.get(IPaneCompositePartService);
|
|
194
194
|
this.viewDescriptorService = accessor.get(IViewDescriptorService);
|
|
195
195
|
this.titleService = accessor.get(ITitleService);
|
|
@@ -938,9 +938,10 @@ class Layout extends Disposable {
|
|
|
938
938
|
this.centerMainEditorLayout(true, true);
|
|
939
939
|
}
|
|
940
940
|
this.state.runtime.zenMode.transitionDisposables.set('configurationChange', this.configurationService.onDidChangeConfiguration(e => {
|
|
941
|
-
if (e.affectsConfiguration(ZenModeSettings.HIDE_ACTIVITYBAR)) {
|
|
941
|
+
if (e.affectsConfiguration(ZenModeSettings.HIDE_ACTIVITYBAR) || e.affectsConfiguration(LayoutSettings.ACTIVITY_BAR_LOCATION)) {
|
|
942
942
|
const zenModeHideActivityBar = this.configurationService.getValue(ZenModeSettings.HIDE_ACTIVITYBAR);
|
|
943
|
-
this.
|
|
943
|
+
const activityBarLocation = this.configurationService.getValue(LayoutSettings.ACTIVITY_BAR_LOCATION);
|
|
944
|
+
this.setActivityBarHidden(zenModeHideActivityBar ? true : (activityBarLocation === ActivityBarPosition.TOP || activityBarLocation === ActivityBarPosition.BOTTOM));
|
|
944
945
|
}
|
|
945
946
|
if (e.affectsConfiguration(ZenModeSettings.HIDE_STATUSBAR)) {
|
|
946
947
|
const zenModeHideStatusBar = this.configurationService.getValue(ZenModeSettings.HIDE_STATUSBAR);
|
|
@@ -1479,12 +1480,12 @@ class Layout extends Disposable {
|
|
|
1479
1480
|
}
|
|
1480
1481
|
let newVisibilityValue;
|
|
1481
1482
|
if (currentVisibilityValue === 'visible' || currentVisibilityValue === 'classic') {
|
|
1482
|
-
newVisibilityValue =
|
|
1483
|
+
newVisibilityValue = hasNativeMenu(this.configurationService) ? 'toggle' : 'compact';
|
|
1483
1484
|
}
|
|
1484
1485
|
else {
|
|
1485
1486
|
newVisibilityValue = 'classic';
|
|
1486
1487
|
}
|
|
1487
|
-
this.configurationService.updateValue(
|
|
1488
|
+
this.configurationService.updateValue(MenuSettings.MenuBarVisibility, newVisibilityValue);
|
|
1488
1489
|
}
|
|
1489
1490
|
getPanelPosition() {
|
|
1490
1491
|
return this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_POSITION);
|
|
@@ -54,7 +54,7 @@ class NotificationAccessibleView {
|
|
|
54
54
|
if (!notification) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
return notification.source ? ( localize(
|
|
57
|
+
return notification.source ? ( localize(3364, '{0} Source: {1}', message, notification.source)) : ( localize(3365, '{0}', message));
|
|
58
58
|
}
|
|
59
59
|
const content = getContentForNotification();
|
|
60
60
|
if (!content) {
|
|
@@ -117,7 +117,7 @@ function getActionsFromNotification(notification, accessibilitySignalService) {
|
|
|
117
117
|
}
|
|
118
118
|
if (actions) {
|
|
119
119
|
actions.push({
|
|
120
|
-
id: 'clearNotification', label: ( localize(
|
|
120
|
+
id: 'clearNotification', label: ( localize(3366, "Clear Notification")), tooltip: ( localize(3366, "Clear Notification")), run: () => {
|
|
121
121
|
notification.close();
|
|
122
122
|
accessibilitySignalService.playSignal(AccessibilitySignal.clear);
|
|
123
123
|
}, enabled: true, class: ThemeIcon.asClassName(Codicon.clearAll)
|