@codingame/monaco-vscode-api 36.2.5 → 36.2.6
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/css.js
CHANGED
|
@@ -5,30 +5,35 @@ const sheets = [];
|
|
|
5
5
|
function registerCss(module) {
|
|
6
6
|
const exportedValue = module?.default;
|
|
7
7
|
let sheet = undefined;
|
|
8
|
+
let sheetPromise = undefined;
|
|
8
9
|
if (typeof exportedValue === 'string') {
|
|
9
10
|
sheet = new mainWindow.CSSStyleSheet();
|
|
10
|
-
sheet.
|
|
11
|
+
sheetPromise = sheet.replace(exportedValue);
|
|
11
12
|
}
|
|
12
13
|
else if (exportedValue instanceof CSSStyleSheet) {
|
|
13
14
|
sheet = new mainWindow.CSSStyleSheet();
|
|
14
|
-
sheet.
|
|
15
|
+
sheetPromise = sheet.replace(Array.from(exportedValue.cssRules)
|
|
15
16
|
.map((r) => r.cssText)
|
|
16
17
|
.join('\n'));
|
|
17
18
|
}
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
if (sheetPromise != null) {
|
|
20
|
+
sheetPromise.then((sheet) => {
|
|
21
|
+
const fontFaces = Array.from(sheet.cssRules)
|
|
22
|
+
.filter((rule) => rule instanceof mainWindow.CSSFontFaceRule)
|
|
23
|
+
.map((r) => r.cssText);
|
|
24
|
+
if (fontFaces.length > 0) {
|
|
25
|
+
const fontFaceStyleSheet = new mainWindow.CSSStyleSheet();
|
|
26
|
+
for (const fontFace of fontFaces) {
|
|
27
|
+
fontFaceStyleSheet.insertRule(fontFace);
|
|
28
|
+
}
|
|
29
|
+
mainWindow.document.adoptedStyleSheets = [
|
|
30
|
+
...mainWindow.document.adoptedStyleSheets,
|
|
31
|
+
fontFaceStyleSheet
|
|
32
|
+
];
|
|
26
33
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
];
|
|
31
|
-
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
if (sheet != null) {
|
|
32
37
|
sheets.push(sheet);
|
|
33
38
|
}
|
|
34
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "36.2.
|
|
3
|
+
"version": "36.2.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-base-service-override": "36.2.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "36.2.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "36.2.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "36.2.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "36.2.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "36.2.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "36.2.
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "36.2.6",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "36.2.6",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "36.2.6",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "36.2.6",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "36.2.6",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "36.2.6",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "36.2.6",
|
|
25
25
|
"@vscode/diff": "0.0.2-7",
|
|
26
26
|
"@vscode/iconv-lite-umd": "0.7.1",
|
|
27
27
|
"dompurify": "3.4.14",
|
|
@@ -193,7 +193,7 @@ declare class StandaloneEditorGroup extends Disposable implements IEditorGroup,
|
|
|
193
193
|
get activeEditorPane(): StandaloneEditorPane | undefined;
|
|
194
194
|
get activeEditor(): TextResourceEditorInput | null;
|
|
195
195
|
previewEditor: null;
|
|
196
|
-
get count():
|
|
196
|
+
get count(): 1 | 0;
|
|
197
197
|
get isEmpty(): boolean;
|
|
198
198
|
isLocked: boolean;
|
|
199
199
|
stickyCount: number;
|
package/services.js
CHANGED
|
@@ -458,10 +458,10 @@ export { IAgentHostCustomizationService } from './vscode/src/vs/workbench/contri
|
|
|
458
458
|
export { IAgentHostActiveClientService } from './vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.service.js';
|
|
459
459
|
export { IAgentEditorCommentsBridge } from './vscode/src/vs/workbench/services/agentEditorComments/common/agentEditorComments.service.js';
|
|
460
460
|
|
|
461
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.128.1-
|
|
462
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.128.1-
|
|
461
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.128.1-3c1d25e8-a15d-4a49-8f63-b75a05d3a183") {
|
|
462
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.128.1-3c1d25e8-a15d-4a49-8f63-b75a05d3a183"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
463
463
|
}
|
|
464
|
-
window.monacoVscodeApiBuildId = "1.128.1-
|
|
464
|
+
window.monacoVscodeApiBuildId = "1.128.1-3c1d25e8-a15d-4a49-8f63-b75a05d3a183";
|
|
465
465
|
function registerCommands(options) {
|
|
466
466
|
function asMenuId(menu) {
|
|
467
467
|
switch (menu) {
|