@codingame/monaco-vscode-layout-service-override 2.1.4 → 2.2.0-next.2
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 +10 -10
- package/package.json +2 -2
package/layout.js
CHANGED
|
@@ -60,6 +60,16 @@ class LayoutService extends Disposable {
|
|
|
60
60
|
this.onDidLayout = this._onDidLayout.event;
|
|
61
61
|
window.addEventListener('resize', () => this.layout());
|
|
62
62
|
this.layout();
|
|
63
|
+
const platformClass = isWindows ? 'windows' : isLinux ? 'linux' : 'mac';
|
|
64
|
+
const workbenchClasses = coalesce([
|
|
65
|
+
'monaco-workbench',
|
|
66
|
+
platformClass,
|
|
67
|
+
'web',
|
|
68
|
+
isChrome ? 'chromium' : isFirefox ? 'firefox' : isSafari ? 'safari' : undefined
|
|
69
|
+
]);
|
|
70
|
+
mainContainer.classList.add(...workbenchClasses);
|
|
71
|
+
document.body.classList.add(platformClass);
|
|
72
|
+
document.body.classList.add('web');
|
|
63
73
|
}
|
|
64
74
|
hasMainWindowBorder() {
|
|
65
75
|
return false;
|
|
@@ -353,16 +363,6 @@ onRenderWorkbench((accessor) => {
|
|
|
353
363
|
if (layoutService instanceof LayoutService) {
|
|
354
364
|
layoutService.init(accessor);
|
|
355
365
|
}
|
|
356
|
-
const platformClass = isWindows ? 'windows' : isLinux ? 'linux' : 'mac';
|
|
357
|
-
const workbenchClasses = coalesce([
|
|
358
|
-
'monaco-workbench',
|
|
359
|
-
platformClass,
|
|
360
|
-
'web',
|
|
361
|
-
isChrome ? 'chromium' : isFirefox ? 'firefox' : isSafari ? 'safari' : undefined
|
|
362
|
-
]);
|
|
363
|
-
layoutService.mainContainer.classList.add(...workbenchClasses);
|
|
364
|
-
document.body.classList.add(platformClass);
|
|
365
|
-
document.body.classList.add('web');
|
|
366
366
|
});
|
|
367
367
|
function getServiceOverride(container) {
|
|
368
368
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-layout-service-override",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-next.2",
|
|
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@2.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.2.0-next.2",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|