@codingame/monaco-vscode-layout-service-override 3.0.0 → 3.1.1
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.js +8 -1
- package/package.json +2 -2
package/layout.js
CHANGED
|
@@ -256,7 +256,14 @@ class LayoutService extends Disposable {
|
|
|
256
256
|
}
|
|
257
257
|
return this.getPart(windowOrPart)?.getContainer();
|
|
258
258
|
}
|
|
259
|
-
|
|
259
|
+
else {
|
|
260
|
+
if (windowOrPart.document === this.mainContainer.ownerDocument) {
|
|
261
|
+
return this.mainContainer;
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
return windowOrPart.document.body.getElementsByClassName('monaco-workbench')[0];
|
|
265
|
+
}
|
|
266
|
+
}
|
|
260
267
|
}
|
|
261
268
|
getPart(key) {
|
|
262
269
|
return this.parts.get(key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-layout-service-override",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@3.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@3.1.1",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|