@codingame/monaco-vscode-layout-service-override 3.2.2 → 4.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/layout.d.ts +3 -1
- package/layout.js +7 -2
- package/package.json +2 -2
package/layout.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { IDimension, Dimension } from 'vscode/vscode/vs/base/browser/dom';
|
|
|
6
6
|
import { Part } from 'vscode/vscode/vs/workbench/browser/part';
|
|
7
7
|
import { ServicesAccessor } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
8
|
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { IDisposable } from '@xterm/headless';
|
|
9
10
|
|
|
10
11
|
declare class LayoutService extends Disposable implements ILayoutService, IWorkbenchLayoutService {
|
|
11
12
|
mainContainer: HTMLElement;
|
|
@@ -21,6 +22,7 @@ declare class LayoutService extends Disposable implements ILayoutService, IWorkb
|
|
|
21
22
|
private sideBarPosition;
|
|
22
23
|
private panelPosition;
|
|
23
24
|
constructor(mainContainer?: HTMLElement);
|
|
25
|
+
whenContainerStylesLoaded(): undefined;
|
|
24
26
|
onDidChangeMainEditorCenteredLayout: Event<any>;
|
|
25
27
|
whenActiveContainerStylesLoaded: Promise<void>;
|
|
26
28
|
hasMainWindowBorder(): boolean;
|
|
@@ -101,7 +103,7 @@ declare class LayoutService extends Disposable implements ILayoutService, IWorkb
|
|
|
101
103
|
isVisible(part: Parts): boolean;
|
|
102
104
|
getSideBarPosition(): Position;
|
|
103
105
|
setSideBarPosition(position: Position): void;
|
|
104
|
-
registerPart(part: Part):
|
|
106
|
+
registerPart(part: Part): IDisposable;
|
|
105
107
|
isRestored(): boolean;
|
|
106
108
|
private _onDidChangePartVisibility;
|
|
107
109
|
onDidChangePartVisibility: Event<void>;
|
package/layout.js
CHANGED
|
@@ -72,6 +72,9 @@ class LayoutService extends Disposable {
|
|
|
72
72
|
document.body.classList.add(platformClass);
|
|
73
73
|
document.body.classList.add('web');
|
|
74
74
|
}
|
|
75
|
+
whenContainerStylesLoaded() {
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
75
78
|
hasMainWindowBorder() {
|
|
76
79
|
return false;
|
|
77
80
|
}
|
|
@@ -156,7 +159,7 @@ class LayoutService extends Disposable {
|
|
|
156
159
|
if (oldValue !== undefined) {
|
|
157
160
|
return !oldValue;
|
|
158
161
|
}
|
|
159
|
-
return this.configurationService.getValue("workbench.activityBar.location" ) !== "
|
|
162
|
+
return this.configurationService.getValue("workbench.activityBar.location" ) !== "default" ;
|
|
160
163
|
}
|
|
161
164
|
focusPart(part) {
|
|
162
165
|
switch (part) {
|
|
@@ -328,7 +331,9 @@ class LayoutService extends Disposable {
|
|
|
328
331
|
this._onDidChangeSideBarPosition.fire(positionToString(position));
|
|
329
332
|
}
|
|
330
333
|
registerPart(part) {
|
|
331
|
-
|
|
334
|
+
const id = part.getId();
|
|
335
|
+
this.parts.set(id, part);
|
|
336
|
+
return toDisposable(() => this.parts.delete(id));
|
|
332
337
|
}
|
|
333
338
|
isRestored() {
|
|
334
339
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-layout-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,6 +18,6 @@
|
|
|
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@4.0.0"
|
|
22
22
|
}
|
|
23
23
|
}
|