@codingame/monaco-vscode-layout-service-override 36.2.7 → 37.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 +3 -0
- package/index.js +9 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export declare class LayoutService extends Disposable implements ILayoutService,
|
|
|
38
38
|
getMainWindowBorderRadius(): string | undefined;
|
|
39
39
|
isMainEditorLayoutCentered(): boolean;
|
|
40
40
|
isFloatingPanelsEnabled(): boolean;
|
|
41
|
+
isModernUICompact(): boolean;
|
|
41
42
|
centerMainEditorLayout(): void;
|
|
42
43
|
private readonly _onDidLayoutContainer;
|
|
43
44
|
readonly onDidLayoutContainer: Event<{
|
|
@@ -111,6 +112,8 @@ export declare class LayoutService extends Disposable implements ILayoutService,
|
|
|
111
112
|
private hasViews;
|
|
112
113
|
setPartHidden(hidden: boolean, part: Parts): void;
|
|
113
114
|
isVisible(part: Parts): boolean;
|
|
115
|
+
isSecondarySideBarVisible(): boolean;
|
|
116
|
+
toggleSecondarySideBar(): void;
|
|
114
117
|
getSideBarPosition(): Position;
|
|
115
118
|
setSideBarPosition(position: Position): void;
|
|
116
119
|
registerPart(part: Part): IDisposable;
|
package/index.js
CHANGED
|
@@ -102,6 +102,9 @@ class LayoutService extends Disposable {
|
|
|
102
102
|
isFloatingPanelsEnabled() {
|
|
103
103
|
return false;
|
|
104
104
|
}
|
|
105
|
+
isModernUICompact() {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
105
108
|
centerMainEditorLayout() { }
|
|
106
109
|
get activeContainer() {
|
|
107
110
|
return this.getContainerFromDocument(getActiveDocument());
|
|
@@ -336,6 +339,12 @@ class LayoutService extends Disposable {
|
|
|
336
339
|
isVisible(part) {
|
|
337
340
|
return !this.hiddenParts.has(part);
|
|
338
341
|
}
|
|
342
|
+
isSecondarySideBarVisible() {
|
|
343
|
+
return this.isVisible(Parts.AUXILIARYBAR_PART);
|
|
344
|
+
}
|
|
345
|
+
toggleSecondarySideBar() {
|
|
346
|
+
this.setPartHidden(this.isSecondarySideBarVisible(), Parts.AUXILIARYBAR_PART);
|
|
347
|
+
}
|
|
339
348
|
getSideBarPosition() {
|
|
340
349
|
return this.sideBarPosition;
|
|
341
350
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-layout-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "37.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - layout service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.1.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|