@codingame/monaco-vscode-api 34.0.3 → 34.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/package.json +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/domStylesheets.d.ts +1 -1
- package/vscode/src/vs/base/browser/domStylesheets.js +7 -7
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "34.0
|
|
3
|
+
"version": "34.1.0",
|
|
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": "34.0
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "34.0
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "34.0
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "34.0
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "34.0
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "34.0
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "34.0
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "34.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "34.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "34.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "34.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "34.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "34.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "34.1.0",
|
|
25
25
|
"@vscode/diff": "0.0.2-7",
|
|
26
26
|
"@vscode/iconv-lite-umd": "0.7.1",
|
|
27
27
|
"dompurify": "3.4.9",
|
package/services.js
CHANGED
|
@@ -444,10 +444,10 @@ export { IChatGoalSummaryService } from './vscode/src/vs/workbench/contrib/chat/
|
|
|
444
444
|
export { IAgentHostCustomizationService } from './vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.service.js';
|
|
445
445
|
export { IAgentHostActiveClientService } from './vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.service.js';
|
|
446
446
|
|
|
447
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.124.2-
|
|
448
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.124.2-
|
|
447
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.124.2-02a8c5a5-7009-401a-af0f-b1f7bd085586") {
|
|
448
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.124.2-02a8c5a5-7009-401a-af0f-b1f7bd085586"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
449
449
|
}
|
|
450
|
-
window.monacoVscodeApiBuildId = "1.124.2-
|
|
450
|
+
window.monacoVscodeApiBuildId = "1.124.2-02a8c5a5-7009-401a-af0f-b1f7bd085586";
|
|
451
451
|
function registerCommands(options) {
|
|
452
452
|
function asMenuId(menu) {
|
|
453
453
|
switch (menu) {
|
|
@@ -3,7 +3,7 @@ import { IObservable } from "../common/observable.js";
|
|
|
3
3
|
export declare function isGlobalStylesheet(node: Node): boolean;
|
|
4
4
|
export declare let shadowRootContainer: ShadowRoot | undefined;
|
|
5
5
|
export declare function setContainerElement(container: HTMLElement): void;
|
|
6
|
-
export declare function createStyleSheet(container?: HTMLElement, beforeAppend?: (style: HTMLStyleElement) => void, disposableStore?: DisposableStore): HTMLStyleElement;
|
|
6
|
+
export declare function createStyleSheet(container?: HTMLElement | ShadowRoot, beforeAppend?: (style: HTMLStyleElement) => void, disposableStore?: DisposableStore): HTMLStyleElement;
|
|
7
7
|
export declare function cloneGlobalStylesheets(targetWindow: Window): IDisposable;
|
|
8
8
|
export declare function createCSSRule(selector: string, cssText: string, style?: HTMLStyleElement): void;
|
|
9
9
|
export declare function removeCSSRulesContainingSelector(ruleName: string, style?: HTMLStyleElement): void;
|
|
@@ -22,7 +22,7 @@ class WrappedStyleElement extends Disposable {
|
|
|
22
22
|
}
|
|
23
23
|
this._currentCssStyle = cssStyle;
|
|
24
24
|
if (!this._styleSheet) {
|
|
25
|
-
this._styleSheet = createStyleSheet(
|
|
25
|
+
this._styleSheet = createStyleSheet(undefined, s => s.textContent = cssStyle, this._store);
|
|
26
26
|
} else {
|
|
27
27
|
this._styleSheet.textContent = cssStyle;
|
|
28
28
|
}
|
|
@@ -39,7 +39,11 @@ function setContainerElement(container) {
|
|
|
39
39
|
shadowRootContainer = root;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function createStyleSheet(
|
|
42
|
+
function createStyleSheet(
|
|
43
|
+
container = shadowRootContainer ?? mainWindow.document.head,
|
|
44
|
+
beforeAppend,
|
|
45
|
+
disposableStore
|
|
46
|
+
) {
|
|
43
47
|
const style = createElement("style");
|
|
44
48
|
style.type = "text/css";
|
|
45
49
|
style.media = "screen";
|
|
@@ -49,7 +53,7 @@ function createStyleSheet(container = mainWindow.document.head, beforeAppend, di
|
|
|
49
53
|
if (disposableStore) {
|
|
50
54
|
disposableStore.add(toDisposable(() => style.remove()));
|
|
51
55
|
}
|
|
52
|
-
if (container === mainWindow.document.head) {
|
|
56
|
+
if (container === (shadowRootContainer ?? mainWindow.document.head)) {
|
|
53
57
|
const globalStylesheetClones = ( new Set());
|
|
54
58
|
globalStylesheets.set(style, globalStylesheetClones);
|
|
55
59
|
if (disposableStore) {
|
|
@@ -67,10 +71,6 @@ function createStyleSheet(container = mainWindow.document.head, beforeAppend, di
|
|
|
67
71
|
);
|
|
68
72
|
disposableStore?.add(cloneDisposable);
|
|
69
73
|
}
|
|
70
|
-
if (shadowRootContainer !== undefined) {
|
|
71
|
-
const cloneDisposable = cloneGlobalStyleSheet(style, globalStylesheetClones, shadowRootContainer);
|
|
72
|
-
disposableStore?.add(cloneDisposable);
|
|
73
|
-
}
|
|
74
74
|
}
|
|
75
75
|
return style;
|
|
76
76
|
}
|
|
@@ -403,16 +403,17 @@ let BrowserAuxiliaryWindowService = class BrowserAuxiliaryWindowService extends
|
|
|
403
403
|
}
|
|
404
404
|
mapOriginalToClone.set(originalNode, clonedNode);
|
|
405
405
|
}
|
|
406
|
+
const container = shadowRootContainer ?? mainWindow.document.head;
|
|
406
407
|
pendingLinksToSettle++;
|
|
407
408
|
try {
|
|
408
|
-
for (const originalNode of
|
|
409
|
+
for (const originalNode of container.querySelectorAll("link[rel=\"stylesheet\"], style")) {
|
|
409
410
|
cloneNode(originalNode);
|
|
410
411
|
}
|
|
411
412
|
} finally {
|
|
412
413
|
onLinkSettled();
|
|
413
414
|
}
|
|
414
415
|
disposables.add(cloneGlobalStylesheets(auxiliaryWindow));
|
|
415
|
-
disposables.add(sharedMutationObserver.observe(
|
|
416
|
+
disposables.add(sharedMutationObserver.observe(container, disposables, {
|
|
416
417
|
childList: true,
|
|
417
418
|
subtree: true
|
|
418
419
|
})(mutations => {
|