@codingame/monaco-vscode-workbench-service-override 2.2.2 → 3.1.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.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +14 -14
- package/tools/editorAssets.js +4 -0
- package/tools/views.d.ts +6 -7
- package/tools/views.js +11 -12
- package/vscode/src/vs/workbench/browser/layout.js +36 -82
- package/vscode/src/vs/workbench/browser/workbench.js +8 -4
- package/workbench.js +11 -9
package/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { default } from './workbench.js';
|
|
2
2
|
export { IView, SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
3
3
|
export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
4
|
-
export {
|
|
4
|
+
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
5
|
+
export { CustomViewOption, EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
5
6
|
export { IViewContainerDescriptor, IViewDescriptor, ViewContainer, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
6
7
|
export { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
7
8
|
export { EditorInput, IEditorCloseHandler } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
|
|
8
9
|
export { ConfirmResult } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
9
10
|
export { EditorInputFactoryObject, RegisteredEditorInfo, RegisteredEditorOptions, RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
10
|
-
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
11
11
|
export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
|
|
12
12
|
export { AbstractTextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
13
13
|
export { EditorInputCapabilities, IEditorSerializer } from 'vscode/vscode/vs/workbench/common/editor';
|
package/index.js
CHANGED
|
@@ -2,12 +2,12 @@ export { default } from './workbench.js';
|
|
|
2
2
|
export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
3
3
|
export { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
4
4
|
export { RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
5
|
-
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
5
|
+
export { EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
6
6
|
export { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
7
7
|
export { ConfirmResult } from './override/vs/platform/dialogs/common/dialogs.js';
|
|
8
|
-
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
9
8
|
export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
|
|
10
9
|
export { AbstractTextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
11
10
|
export { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
|
|
12
11
|
export { EditorInputCapabilities } from 'vscode/vscode/vs/workbench/common/editor';
|
|
13
12
|
export { SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
13
|
+
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-workbench-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@3.1.0",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2",
|
|
23
|
-
"@codingame/monaco-vscode-keybindings-service-override": "
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "
|
|
25
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "
|
|
26
|
-
"@codingame/monaco-vscode-view-title-bar-service-override": "
|
|
27
|
-
"@codingame/monaco-vscode-view-status-bar-service-override": "
|
|
28
|
-
"@codingame/monaco-vscode-view-banner-service-override": "
|
|
29
|
-
"@codingame/monaco-vscode-files-service-override": "
|
|
30
|
-
"@codingame/monaco-vscode-extensions-service-override": "
|
|
31
|
-
"@codingame/monaco-vscode-environment-service-override": "
|
|
32
|
-
"@codingame/monaco-vscode-layout-service-override": "
|
|
33
|
-
"@codingame/monaco-vscode-host-service-override": "
|
|
34
|
-
"@codingame/monaco-vscode-base-service-override": "
|
|
23
|
+
"@codingame/monaco-vscode-keybindings-service-override": "3.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "3.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "3.1.0",
|
|
26
|
+
"@codingame/monaco-vscode-view-title-bar-service-override": "3.1.0",
|
|
27
|
+
"@codingame/monaco-vscode-view-status-bar-service-override": "3.1.0",
|
|
28
|
+
"@codingame/monaco-vscode-view-banner-service-override": "3.1.0",
|
|
29
|
+
"@codingame/monaco-vscode-files-service-override": "3.1.0",
|
|
30
|
+
"@codingame/monaco-vscode-extensions-service-override": "3.1.0",
|
|
31
|
+
"@codingame/monaco-vscode-environment-service-override": "3.1.0",
|
|
32
|
+
"@codingame/monaco-vscode-layout-service-override": "3.1.0",
|
|
33
|
+
"@codingame/monaco-vscode-host-service-override": "3.1.0",
|
|
34
|
+
"@codingame/monaco-vscode-base-service-override": "3.1.0"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/tools/views.d.ts
CHANGED
|
@@ -5,11 +5,9 @@ import { IDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
|
5
5
|
import { Dimension } from 'vscode/vscode/vs/base/browser/dom';
|
|
6
6
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
7
7
|
import { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
8
|
+
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
8
9
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
9
10
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
10
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
11
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
12
|
-
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
13
11
|
import { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
14
12
|
import { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
15
13
|
export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
@@ -21,19 +19,20 @@ export { EditorInput, IEditorCloseHandler } from 'vscode/vscode/vs/workbench/com
|
|
|
21
19
|
import { IEditorOpenContext, EditorInputCapabilities, Verbosity, IEditorSerializer } from 'vscode/vscode/vs/workbench/common/editor';
|
|
22
20
|
export { EditorInputCapabilities, IEditorSerializer } from 'vscode/vscode/vs/workbench/common/editor';
|
|
23
21
|
import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
24
|
-
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
25
22
|
|
|
26
23
|
type Label = string | {
|
|
27
24
|
short: string;
|
|
28
25
|
medium: string;
|
|
29
26
|
long: string;
|
|
30
27
|
};
|
|
31
|
-
declare abstract class
|
|
28
|
+
declare abstract class InjectedEditorPane extends EditorPane {
|
|
29
|
+
constructor(id: string);
|
|
30
|
+
}
|
|
31
|
+
declare abstract class SimpleEditorPane extends InjectedEditorPane {
|
|
32
32
|
protected container: HTMLElement;
|
|
33
33
|
protected wrapper: HTMLElement;
|
|
34
34
|
protected scrollbar: DomScrollableElement | undefined;
|
|
35
35
|
private inputDisposable;
|
|
36
|
-
constructor(id: string, telemetryService: ITelemetryService, themeService: IThemeService, storageService: IStorageService);
|
|
37
36
|
protected createEditor(parent: HTMLElement): void;
|
|
38
37
|
setInput(input: EditorInput, editorOptions: IEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void>;
|
|
39
38
|
layout(dimension: Dimension): void;
|
|
@@ -103,4 +102,4 @@ declare function getPanelPosition(): Position;
|
|
|
103
102
|
declare const onDidChangeSideBarPosition: Event<string>;
|
|
104
103
|
declare function getSideBarPosition(): Position;
|
|
105
104
|
|
|
106
|
-
export { type CustomViewOption, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
|
105
|
+
export { type CustomViewOption, InjectedEditorPane as EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
package/tools/views.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __decorate, __param } from '../external/tslib/tslib.es6.js';
|
|
2
1
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
2
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
|
|
4
3
|
export { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
@@ -22,11 +21,11 @@ import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/cont
|
|
|
22
21
|
import { BaseActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
23
22
|
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
24
23
|
import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
25
|
-
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
26
24
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
27
25
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
28
26
|
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
29
27
|
import { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
28
|
+
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
30
29
|
import { assertIsDefined, assertAllDefined } from 'vscode/vscode/vs/base/common/types';
|
|
31
30
|
export { ConfirmResult } from '../override/vs/platform/dialogs/common/dialogs.js';
|
|
32
31
|
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
@@ -34,9 +33,14 @@ export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layout
|
|
|
34
33
|
import { StandaloneServices } from 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
35
34
|
import { withReadyServices } from 'vscode/services';
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
constructor(id
|
|
39
|
-
super(id,
|
|
36
|
+
class InjectedEditorPane extends EditorPane {
|
|
37
|
+
constructor(id) {
|
|
38
|
+
super(id, StandaloneServices.get(ITelemetryService), StandaloneServices.get(IThemeService), StandaloneServices.get(IStorageService));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
class SimpleEditorPane extends InjectedEditorPane {
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments);
|
|
40
44
|
this.inputDisposable = this._register(new MutableDisposable());
|
|
41
45
|
}
|
|
42
46
|
createEditor(parent) {
|
|
@@ -76,12 +80,7 @@ let SimpleEditorPane = class SimpleEditorPane extends EditorPane {
|
|
|
76
80
|
this.inputDisposable.clear();
|
|
77
81
|
super.clearInput();
|
|
78
82
|
}
|
|
79
|
-
}
|
|
80
|
-
SimpleEditorPane = __decorate([
|
|
81
|
-
( __param(1, ITelemetryService)),
|
|
82
|
-
( __param(2, IThemeService)),
|
|
83
|
-
( __param(3, IStorageService))
|
|
84
|
-
], SimpleEditorPane);
|
|
83
|
+
}
|
|
85
84
|
class SimpleEditorInput extends EditorInput {
|
|
86
85
|
constructor(resource, closeHandler) {
|
|
87
86
|
super();
|
|
@@ -278,4 +277,4 @@ function getSideBarPosition() {
|
|
|
278
277
|
return StandaloneServices.get(IWorkbenchLayoutService).getSideBarPosition();
|
|
279
278
|
}
|
|
280
279
|
|
|
281
|
-
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
|
280
|
+
export { InjectedEditorPane as EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
|
@@ -3,11 +3,11 @@ import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
|
3
3
|
import { getClientArea, getActiveDocument, getWindows, getWindow, addDisposableListener, EventType, isActiveDocument, getWindowId, getActiveWindow, getActiveElement, isAncestorUsingFlowTo, focusWindow, position, size, computeScreenAwareSize } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
4
|
import { onDidChangeFullscreen, isFullscreen, isWCOEnabled } from 'vscode/vscode/vs/base/browser/browser';
|
|
5
5
|
import { IWorkingCopyBackupService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup';
|
|
6
|
-
import { isWindows, isLinux, isWeb,
|
|
6
|
+
import { isWindows, isLinux, isWeb, isIOS, isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
7
7
|
import { pathsToEditors, isResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor';
|
|
8
8
|
import { SidebarPart } from 'vscode/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
|
|
9
9
|
import { PanelPart } from 'vscode/vscode/vs/workbench/browser/parts/panel/panelPart';
|
|
10
|
-
import { positionFromString, positionToString, panelOpensMaximizedFromString } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
10
|
+
import { positionFromString, positionToString, shouldShowCustomTitleBar, panelOpensMaximizedFromString } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
11
11
|
import { IWorkspaceContextService, isTemporaryWorkspace } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
12
12
|
import { IStorageService, WillSaveStateReason } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
13
13
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
@@ -53,6 +53,15 @@ var LayoutClasses;
|
|
|
53
53
|
LayoutClasses["MAXIMIZED"] = "maximized";
|
|
54
54
|
LayoutClasses["WINDOW_BORDER"] = "border";
|
|
55
55
|
})(LayoutClasses || (LayoutClasses = {})));
|
|
56
|
+
const TITLE_BAR_SETTINGS = [
|
|
57
|
+
"workbench.activityBar.location" ,
|
|
58
|
+
"window.commandCenter" ,
|
|
59
|
+
"workbench.editor.editorActionsLocation" ,
|
|
60
|
+
"workbench.layoutControl.enabled" ,
|
|
61
|
+
'window.menuBarVisibility',
|
|
62
|
+
"window.titleBarStyle" ,
|
|
63
|
+
"window.customTitleBarVisibility" ,
|
|
64
|
+
];
|
|
56
65
|
class Layout extends Disposable {
|
|
57
66
|
get activeContainer() { return this.getContainerFromDocument(getActiveDocument()); }
|
|
58
67
|
get containers() {
|
|
@@ -115,8 +124,8 @@ class Layout extends Disposable {
|
|
|
115
124
|
this.parent = parent;
|
|
116
125
|
this._onDidChangeZenMode = this._register(( new Emitter()));
|
|
117
126
|
this.onDidChangeZenMode = this._onDidChangeZenMode.event;
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
127
|
+
this._onDidChangeMainEditorCenteredLayout = this._register(( new Emitter()));
|
|
128
|
+
this.onDidChangeMainEditorCenteredLayout = this._onDidChangeMainEditorCenteredLayout.event;
|
|
120
129
|
this._onDidChangePanelAlignment = this._register(( new Emitter()));
|
|
121
130
|
this.onDidChangePanelAlignment = this._onDidChangePanelAlignment.event;
|
|
122
131
|
this._onDidChangeWindowMaximized = this._register(( new Emitter()));
|
|
@@ -182,19 +191,13 @@ class Layout extends Disposable {
|
|
|
182
191
|
this.editorGroupService.whenRestored.then(() => {
|
|
183
192
|
this._register(this.mainPartEditorService.onDidVisibleEditorsChange(showEditorIfHidden));
|
|
184
193
|
this._register(this.editorGroupService.mainPart.onDidActivateGroup(showEditorIfHidden));
|
|
185
|
-
this._register(this.mainPartEditorService.onDidActiveEditorChange(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.
|
|
194
|
+
this._register(this.mainPartEditorService.onDidActiveEditorChange(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED))));
|
|
186
195
|
});
|
|
187
196
|
this._register(this.configurationService.onDidChangeConfiguration((e) => {
|
|
188
197
|
if (( [
|
|
189
|
-
|
|
190
|
-
"window.commandCenter" ,
|
|
191
|
-
"workbench.editor.editorActionsLocation" ,
|
|
192
|
-
"workbench.layoutControl.enabled" ,
|
|
198
|
+
...TITLE_BAR_SETTINGS,
|
|
193
199
|
LegacyWorkbenchLayoutSettings.SIDEBAR_POSITION,
|
|
194
200
|
LegacyWorkbenchLayoutSettings.STATUSBAR_VISIBLE,
|
|
195
|
-
'window.menuBarVisibility',
|
|
196
|
-
"window.titleBarStyle" ,
|
|
197
|
-
"window.customTitleBarVisibility" ,
|
|
198
201
|
].some(setting => e.affectsConfiguration(setting)))) {
|
|
199
202
|
const activityBarMovedToTop = e.affectsConfiguration("workbench.activityBar.location" ) && this.configurationService.getValue("workbench.activityBar.location" ) === "top" ;
|
|
200
203
|
const editorActionsMovedToTitlebar = e.affectsConfiguration("workbench.editor.editorActionsLocation" ) && this.configurationService.getValue("workbench.editor.editorActionsLocation" ) === "titleBar" ;
|
|
@@ -207,9 +210,9 @@ class Layout extends Disposable {
|
|
|
207
210
|
}
|
|
208
211
|
}));
|
|
209
212
|
this._register(onDidChangeFullscreen(windowId => this.onFullscreenChanged(windowId)));
|
|
210
|
-
this._register(this.editorGroupService.mainPart.onDidAddGroup(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.
|
|
211
|
-
this._register(this.editorGroupService.mainPart.onDidRemoveGroup(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.
|
|
212
|
-
this._register(this.editorGroupService.mainPart.onDidChangeGroupMaximized(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.
|
|
213
|
+
this._register(this.editorGroupService.mainPart.onDidAddGroup(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED))));
|
|
214
|
+
this._register(this.editorGroupService.mainPart.onDidRemoveGroup(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED))));
|
|
215
|
+
this._register(this.editorGroupService.mainPart.onDidChangeGroupMaximized(() => this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED))));
|
|
213
216
|
this._register(addDisposableListener(this.mainContainer, EventType.SCROLL, () => this.mainContainer.scrollTop = 0));
|
|
214
217
|
const showingCustomMenu = (isWindows || isLinux || isWeb) && !hasNativeTitlebar(this.configurationService);
|
|
215
218
|
if (showingCustomMenu) {
|
|
@@ -234,10 +237,10 @@ class Layout extends Disposable {
|
|
|
234
237
|
this.state.runtime.menuBar.toggled = visible;
|
|
235
238
|
const menuBarVisibility = getMenuBarVisibility(this.configurationService);
|
|
236
239
|
if (isWeb && menuBarVisibility === 'toggle') {
|
|
237
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, this.
|
|
240
|
+
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
238
241
|
}
|
|
239
242
|
else if (this.state.runtime.mainWindowFullscreen && (menuBarVisibility === 'toggle' || menuBarVisibility === 'classic')) {
|
|
240
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, this.
|
|
243
|
+
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
241
244
|
}
|
|
242
245
|
this.handleContainerDidLayout(this.mainContainer, this._mainContainerDimension);
|
|
243
246
|
}
|
|
@@ -269,7 +272,7 @@ class Layout extends Disposable {
|
|
|
269
272
|
}
|
|
270
273
|
this.workbenchGrid.edgeSnapping = this.state.runtime.mainWindowFullscreen;
|
|
271
274
|
{
|
|
272
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, this.
|
|
275
|
+
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
273
276
|
this.updateWindowsBorder(true);
|
|
274
277
|
}
|
|
275
278
|
}
|
|
@@ -295,7 +298,7 @@ class Layout extends Disposable {
|
|
|
295
298
|
this.updateCustomTitleBarVisibility();
|
|
296
299
|
this.updateMenubarVisibility(!!skipLayout);
|
|
297
300
|
this.editorGroupService.whenRestored.then(() => {
|
|
298
|
-
this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.
|
|
301
|
+
this.centerMainEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED), skipLayout);
|
|
299
302
|
});
|
|
300
303
|
}
|
|
301
304
|
setSideBarPosition(position) {
|
|
@@ -683,7 +686,7 @@ class Layout extends Disposable {
|
|
|
683
686
|
this.stateModel.setRuntimeValue(LayoutStateKeys.ZEN_MODE_ACTIVE, !restoreZenMode);
|
|
684
687
|
this.toggleZenMode(false, true);
|
|
685
688
|
}
|
|
686
|
-
if (this.stateModel.getRuntimeValue(LayoutStateKeys.
|
|
689
|
+
if (this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED)) {
|
|
687
690
|
this.centerMainEditorLayout(true, true);
|
|
688
691
|
}
|
|
689
692
|
Promises.settled(layoutReadyPromises).finally(() => {
|
|
@@ -796,7 +799,7 @@ class Layout extends Disposable {
|
|
|
796
799
|
}
|
|
797
800
|
switch (part) {
|
|
798
801
|
case "workbench.parts.titlebar" :
|
|
799
|
-
return this.
|
|
802
|
+
return shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled);
|
|
800
803
|
case "workbench.parts.sidebar" :
|
|
801
804
|
return !this.stateModel.getRuntimeValue(LayoutStateKeys.SIDEBAR_HIDDEN);
|
|
802
805
|
case "workbench.parts.panel" :
|
|
@@ -813,58 +816,6 @@ class Layout extends Disposable {
|
|
|
813
816
|
return false;
|
|
814
817
|
}
|
|
815
818
|
}
|
|
816
|
-
shouldShowTitleBar() {
|
|
817
|
-
const nativeTitleBarEnabled = hasNativeTitlebar(this.configurationService);
|
|
818
|
-
const showCustomTitleBar = this.configurationService.getValue("window.customTitleBarVisibility" );
|
|
819
|
-
if (showCustomTitleBar === "never" && nativeTitleBarEnabled || showCustomTitleBar === "windowed" && this.state.runtime.mainWindowFullscreen) {
|
|
820
|
-
return false;
|
|
821
|
-
}
|
|
822
|
-
if (!this.isTitleBarEmpty()) {
|
|
823
|
-
return true;
|
|
824
|
-
}
|
|
825
|
-
if (nativeTitleBarEnabled) {
|
|
826
|
-
return false;
|
|
827
|
-
}
|
|
828
|
-
if (isMacintosh && isNative) {
|
|
829
|
-
return !this.state.runtime.mainWindowFullscreen;
|
|
830
|
-
}
|
|
831
|
-
if (isNative && !this.state.runtime.mainWindowFullscreen) {
|
|
832
|
-
return true;
|
|
833
|
-
}
|
|
834
|
-
if (isWCOEnabled() && !this.state.runtime.mainWindowFullscreen) {
|
|
835
|
-
return true;
|
|
836
|
-
}
|
|
837
|
-
switch (getMenuBarVisibility(this.configurationService)) {
|
|
838
|
-
case 'classic':
|
|
839
|
-
return !this.state.runtime.mainWindowFullscreen || this.state.runtime.menuBar.toggled;
|
|
840
|
-
case 'compact':
|
|
841
|
-
case 'hidden':
|
|
842
|
-
return false;
|
|
843
|
-
case 'toggle':
|
|
844
|
-
return this.state.runtime.menuBar.toggled;
|
|
845
|
-
case 'visible':
|
|
846
|
-
return true;
|
|
847
|
-
default:
|
|
848
|
-
return isWeb ? false : !this.state.runtime.mainWindowFullscreen || this.state.runtime.menuBar.toggled;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
isTitleBarEmpty() {
|
|
852
|
-
if (this.configurationService.getValue("window.commandCenter" )) {
|
|
853
|
-
return false;
|
|
854
|
-
}
|
|
855
|
-
if (this.configurationService.getValue("workbench.activityBar.location" ) === "top" ) {
|
|
856
|
-
return false;
|
|
857
|
-
}
|
|
858
|
-
const editorActionsLocation = this.configurationService.getValue("workbench.editor.editorActionsLocation" );
|
|
859
|
-
const editorTabsMode = this.configurationService.getValue("workbench.editor.showTabs" );
|
|
860
|
-
if (editorActionsLocation === "titleBar" || editorActionsLocation === "default" && editorTabsMode === "none" ) {
|
|
861
|
-
return false;
|
|
862
|
-
}
|
|
863
|
-
if (this.configurationService.getValue("workbench.layoutControl.enabled" )) {
|
|
864
|
-
return false;
|
|
865
|
-
}
|
|
866
|
-
return true;
|
|
867
|
-
}
|
|
868
819
|
shouldShowBannerFirst() {
|
|
869
820
|
return isWeb && !isWCOEnabled();
|
|
870
821
|
}
|
|
@@ -1099,7 +1050,10 @@ class Layout extends Disposable {
|
|
|
1099
1050
|
}
|
|
1100
1051
|
layout() {
|
|
1101
1052
|
if (!this.disposed) {
|
|
1102
|
-
this._mainContainerDimension = getClientArea(this.state.runtime.mainWindowFullscreen ?
|
|
1053
|
+
this._mainContainerDimension = getClientArea(this.state.runtime.mainWindowFullscreen ?
|
|
1054
|
+
mainWindow.document.body :
|
|
1055
|
+
this.parent
|
|
1056
|
+
);
|
|
1103
1057
|
this.logService.trace(`Layout#layout, height: ${this._mainContainerDimension.height}, width: ${this._mainContainerDimension.width}`);
|
|
1104
1058
|
position(this.mainContainer, 0, 0, 0, 0, 'relative');
|
|
1105
1059
|
size(this.mainContainer, this._mainContainerDimension.width, this._mainContainerDimension.height);
|
|
@@ -1109,10 +1063,10 @@ class Layout extends Disposable {
|
|
|
1109
1063
|
}
|
|
1110
1064
|
}
|
|
1111
1065
|
isMainEditorLayoutCentered() {
|
|
1112
|
-
return this.stateModel.getRuntimeValue(LayoutStateKeys.
|
|
1066
|
+
return this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED);
|
|
1113
1067
|
}
|
|
1114
1068
|
centerMainEditorLayout(active, skipLayout) {
|
|
1115
|
-
this.stateModel.setRuntimeValue(LayoutStateKeys.
|
|
1069
|
+
this.stateModel.setRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED, active);
|
|
1116
1070
|
const activeMainEditor = this.mainPartEditorService.activeEditor;
|
|
1117
1071
|
let isEditorComplex = false;
|
|
1118
1072
|
if (activeMainEditor instanceof DiffEditorInput) {
|
|
@@ -1132,7 +1086,7 @@ class Layout extends Disposable {
|
|
|
1132
1086
|
this.layout();
|
|
1133
1087
|
}
|
|
1134
1088
|
}
|
|
1135
|
-
this.
|
|
1089
|
+
this._onDidChangeMainEditorCenteredLayout.fire(this.stateModel.getRuntimeValue(LayoutStateKeys.MAIN_EDITOR_CENTERED));
|
|
1136
1090
|
}
|
|
1137
1091
|
resizePart(part, sizeChangeWidth, sizeChangeHeight) {
|
|
1138
1092
|
const sizeChangePxWidth = Math.sign(sizeChangeWidth) * computeScreenAwareSize(getActiveWindow(), Math.abs(sizeChangeWidth));
|
|
@@ -1447,13 +1401,13 @@ class Layout extends Disposable {
|
|
|
1447
1401
|
return this.stateModel.getRuntimeValue(LayoutStateKeys.PANEL_ALIGNMENT);
|
|
1448
1402
|
}
|
|
1449
1403
|
updateMenubarVisibility(skipLayout) {
|
|
1450
|
-
const shouldShowTitleBar = this.
|
|
1404
|
+
const shouldShowTitleBar = shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled);
|
|
1451
1405
|
if (!skipLayout && this.workbenchGrid && shouldShowTitleBar !== this.isVisible("workbench.parts.titlebar" , mainWindow)) {
|
|
1452
1406
|
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowTitleBar);
|
|
1453
1407
|
}
|
|
1454
1408
|
}
|
|
1455
1409
|
updateCustomTitleBarVisibility() {
|
|
1456
|
-
const shouldShowTitleBar = this.
|
|
1410
|
+
const shouldShowTitleBar = shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled);
|
|
1457
1411
|
const titlebarVisible = this.isVisible("workbench.parts.titlebar" );
|
|
1458
1412
|
if (shouldShowTitleBar !== titlebarVisible) {
|
|
1459
1413
|
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowTitleBar);
|
|
@@ -1572,7 +1526,7 @@ class Layout extends Disposable {
|
|
|
1572
1526
|
if (bannerFirst !== shouldBannerBeFirst) {
|
|
1573
1527
|
this.workbenchGrid.moveView(this.bannerPartView, Sizing.Distribute, this.titleBarPartView, shouldBannerBeFirst ? 0 : 1 );
|
|
1574
1528
|
}
|
|
1575
|
-
this.workbenchGrid.setViewVisible(this.titleBarPartView, this.
|
|
1529
|
+
this.workbenchGrid.setViewVisible(this.titleBarPartView, shouldShowCustomTitleBar(this.configurationService, mainWindow, this.state.runtime.menuBar.toggled));
|
|
1576
1530
|
}
|
|
1577
1531
|
arrangeEditorNodes(nodes, availableHeight, availableWidth) {
|
|
1578
1532
|
if (!nodes.sideBar && !nodes.auxiliaryBar) {
|
|
@@ -1797,7 +1751,7 @@ class InitializationStateKey extends WorkbenchLayoutStateKey {
|
|
|
1797
1751
|
}
|
|
1798
1752
|
}
|
|
1799
1753
|
const LayoutStateKeys = {
|
|
1800
|
-
|
|
1754
|
+
MAIN_EDITOR_CENTERED: ( new RuntimeStateKey(
|
|
1801
1755
|
'editor.centered',
|
|
1802
1756
|
1 ,
|
|
1803
1757
|
1 ,
|
|
@@ -2100,4 +2054,4 @@ class LayoutStateModel extends Disposable {
|
|
|
2100
2054
|
}
|
|
2101
2055
|
}
|
|
2102
2056
|
|
|
2103
|
-
export { Layout };
|
|
2057
|
+
export { Layout, TITLE_BAR_SETTINGS };
|
|
@@ -2,7 +2,7 @@ import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
|
2
2
|
import { addDisposableListener, runWhenWindowIdle } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
3
|
import { Emitter, setGlobalLeakWarningThreshold, Event } from 'vscode/vscode/vs/base/common/event';
|
|
4
4
|
import { timeout, RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
5
|
-
import {
|
|
5
|
+
import { isChrome, isFirefox, isSafari } from 'vscode/vscode/vs/base/browser/browser';
|
|
6
6
|
import { mark } from 'vscode/vscode/vs/base/common/performance';
|
|
7
7
|
import { onUnexpectedError, setUnexpectedErrorHandler } from 'vscode/vscode/vs/base/common/errors';
|
|
8
8
|
import { isNative, isMacintosh, isWeb, isWindows, isLinux } from 'vscode/vscode/vs/base/common/platform';
|
|
@@ -28,6 +28,9 @@ import { Layout } from './layout.js';
|
|
|
28
28
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
29
29
|
import '../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
30
30
|
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
31
|
+
import { PixelRatio } from 'vscode/vscode/vs/base/browser/pixelRatio';
|
|
32
|
+
import { WorkbenchHoverDelegate } from 'vscode/vscode/vs/platform/hover/browser/hover';
|
|
33
|
+
import { setHoverDelegateFactory } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegate';
|
|
31
34
|
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
32
35
|
|
|
33
36
|
class Workbench extends Layout {
|
|
@@ -89,6 +92,7 @@ class Workbench extends Layout {
|
|
|
89
92
|
const hostService = accessor.get(IHostService);
|
|
90
93
|
const dialogService = accessor.get(IDialogService);
|
|
91
94
|
const notificationService = accessor.get(INotificationService);
|
|
95
|
+
setHoverDelegateFactory((placement, enableInstantHover) => instantiationService.createInstance(WorkbenchHoverDelegate, placement, enableInstantHover, {}));
|
|
92
96
|
this.initLayout(accessor);
|
|
93
97
|
this.registerListeners(lifecycleService, storageService, configurationService, hostService, dialogService);
|
|
94
98
|
this.renderWorkbench(instantiationService, notificationService, storageService, configurationService);
|
|
@@ -169,16 +173,16 @@ class Workbench extends Layout {
|
|
|
169
173
|
try {
|
|
170
174
|
const storedFontInfo = JSON.parse(storedFontInfoRaw);
|
|
171
175
|
if (Array.isArray(storedFontInfo)) {
|
|
172
|
-
FontMeasurements.restoreFontInfo(storedFontInfo);
|
|
176
|
+
FontMeasurements.restoreFontInfo(mainWindow, storedFontInfo);
|
|
173
177
|
}
|
|
174
178
|
}
|
|
175
179
|
catch (err) {
|
|
176
180
|
}
|
|
177
181
|
}
|
|
178
|
-
FontMeasurements.readFontInfo(BareFontInfo.createFromRawSettings(configurationService.getValue('editor'), PixelRatio.value));
|
|
182
|
+
FontMeasurements.readFontInfo(mainWindow, BareFontInfo.createFromRawSettings(configurationService.getValue('editor'), PixelRatio.getInstance(mainWindow).value));
|
|
179
183
|
}
|
|
180
184
|
storeFontInfo(storageService) {
|
|
181
|
-
const serializedFontInfo = FontMeasurements.serializeFontInfo();
|
|
185
|
+
const serializedFontInfo = FontMeasurements.serializeFontInfo(mainWindow);
|
|
182
186
|
if (serializedFontInfo) {
|
|
183
187
|
storageService.store('editorFontInfo', JSON.stringify(serializedFontInfo), -1 , 1 );
|
|
184
188
|
}
|
package/workbench.js
CHANGED
|
@@ -13,8 +13,6 @@ import { ViewDescriptorService } from 'vscode/vscode/vs/workbench/services/views
|
|
|
13
13
|
import { IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity';
|
|
14
14
|
import { ActivityService } from 'vscode/vscode/vs/workbench/services/activity/browser/activityService';
|
|
15
15
|
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite';
|
|
16
|
-
import { ExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/explorerService';
|
|
17
|
-
import { IExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/files';
|
|
18
16
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
19
17
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
20
18
|
import { IEditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
@@ -49,6 +47,8 @@ import { BrowserWindow } from 'vscode/vscode/vs/workbench/browser/window';
|
|
|
49
47
|
import { detectFullscreen } from 'vscode/vscode/vs/base/browser/dom';
|
|
50
48
|
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
51
49
|
import { setFullscreen } from 'vscode/vscode/vs/base/browser/browser';
|
|
50
|
+
import { EditorPaneService } from 'vscode/vscode/vs/workbench/services/editor/browser/editorPaneService';
|
|
51
|
+
import { IEditorPaneService } from 'vscode/vscode/vs/workbench/services/editor/common/editorPaneService';
|
|
52
52
|
import getServiceOverride$3 from '@codingame/monaco-vscode-keybindings-service-override';
|
|
53
53
|
import getServiceOverride$2 from '@codingame/monaco-vscode-quickaccess-service-override';
|
|
54
54
|
import getServiceOverride$1 from '@codingame/monaco-vscode-bulk-edit-service-override';
|
|
@@ -58,8 +58,7 @@ import getServiceOverride$5 from '@codingame/monaco-vscode-view-status-bar-servi
|
|
|
58
58
|
import getServiceOverride$6 from '@codingame/monaco-vscode-view-banner-service-override';
|
|
59
59
|
import { getWorkbenchContainer } from 'vscode/workbench';
|
|
60
60
|
import { onLayout, onRenderWorkbench } from 'vscode/lifecycle';
|
|
61
|
-
import 'vscode/
|
|
62
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/fileActions.contribution';
|
|
61
|
+
import { registerAssets } from 'vscode/assets';
|
|
63
62
|
import 'vscode/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution';
|
|
64
63
|
import 'vscode/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution';
|
|
65
64
|
import 'vscode/vscode/vs/workbench/browser/actions/listCommands';
|
|
@@ -73,20 +72,23 @@ import 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriO
|
|
|
73
72
|
import 'vscode/vscode/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution';
|
|
74
73
|
import 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution';
|
|
75
74
|
import 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.contribution';
|
|
76
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution';
|
|
77
75
|
import 'vscode/vscode/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution';
|
|
78
76
|
import 'vscode/vscode/vs/workbench/contrib/sash/browser/sash.contribution';
|
|
79
77
|
import 'vscode/vscode/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker';
|
|
80
|
-
import
|
|
81
|
-
|
|
78
|
+
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.autosave.contribution';
|
|
79
|
+
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.editorPane.contribution';
|
|
80
|
+
import 'vscode/vscode/vs/workbench/contrib/files/browser/fileCommands.save';
|
|
81
|
+
import 'vscode/vscode/vs/workbench/browser/actions/navigationActions';
|
|
82
|
+
import './tools/editorAssets.js';
|
|
83
|
+
export { EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
82
84
|
export { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
83
85
|
export { ConfirmResult } from './override/vs/platform/dialogs/common/dialogs.js';
|
|
84
|
-
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
85
86
|
export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
|
|
86
87
|
export { AbstractTextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
87
88
|
export { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
|
|
88
89
|
export { EditorInputCapabilities } from 'vscode/vscode/vs/workbench/common/editor';
|
|
89
90
|
export { SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
91
|
+
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
90
92
|
|
|
91
93
|
let webviewIframeAlternateDomains;
|
|
92
94
|
registerAssets({
|
|
@@ -145,7 +147,6 @@ function getServiceOverride(options, _webviewIframeAlternateDomains) {
|
|
|
145
147
|
[( IActivityService.toString())]: new SyncDescriptor(ActivityService, [], true),
|
|
146
148
|
[( IPaneCompositePartService.toString())]: new SyncDescriptor(PaneCompositePartService, [], false),
|
|
147
149
|
[( IHoverService.toString())]: new SyncDescriptor(HoverService, [], true),
|
|
148
|
-
[( IExplorerService.toString())]: new SyncDescriptor(ExplorerService, [], true),
|
|
149
150
|
[( ICodeEditorService.toString())]: new SyncDescriptor(CodeEditorService, [], true),
|
|
150
151
|
[( ITextEditorService.toString())]: new SyncDescriptor(TextEditorService, [], false),
|
|
151
152
|
[( IEditorGroupsService.toString())]: new SyncDescriptor(EditorParts, [], false),
|
|
@@ -161,6 +162,7 @@ function getServiceOverride(options, _webviewIframeAlternateDomains) {
|
|
|
161
162
|
[( IWebviewWorkbenchService.toString())]: new SyncDescriptor(WebviewEditorService, [], true),
|
|
162
163
|
[( IProgressService.toString())]: new SyncDescriptor(ProgressService, [], true),
|
|
163
164
|
[( IAuxiliaryWindowService.toString())]: new SyncDescriptor(BrowserAuxiliaryWindowService, [], true),
|
|
165
|
+
[( IEditorPaneService.toString())]: new SyncDescriptor(EditorPaneService, [], true),
|
|
164
166
|
...getServiceOverride$4(),
|
|
165
167
|
...getServiceOverride$5(),
|
|
166
168
|
...getServiceOverride$6()
|