@codingame/monaco-vscode-api 34.1.0 → 34.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "34.1.0",
3
+ "version": "34.1.2",
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.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",
18
+ "@codingame/monaco-vscode-base-service-override": "34.1.2",
19
+ "@codingame/monaco-vscode-environment-service-override": "34.1.2",
20
+ "@codingame/monaco-vscode-extensions-service-override": "34.1.2",
21
+ "@codingame/monaco-vscode-files-service-override": "34.1.2",
22
+ "@codingame/monaco-vscode-host-service-override": "34.1.2",
23
+ "@codingame/monaco-vscode-layout-service-override": "34.1.2",
24
+ "@codingame/monaco-vscode-quickaccess-service-override": "34.1.2",
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-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`);
447
+ if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.124.2-a50deaf5-614b-49e8-a9c2-96442025ac57") {
448
+ throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.124.2-a50deaf5-614b-49e8-a9c2-96442025ac57"}, ${window.monacoVscodeApiBuildId} is already loaded`);
449
449
  }
450
- window.monacoVscodeApiBuildId = "1.124.2-02a8c5a5-7009-401a-af0f-b1f7bd085586";
450
+ window.monacoVscodeApiBuildId = "1.124.2-a50deaf5-614b-49e8-a9c2-96442025ac57";
451
451
  function registerCommands(options) {
452
452
  function asMenuId(menu) {
453
453
  switch (menu) {
@@ -716,10 +716,10 @@ function getRootContainer(element) {
716
716
  return container;
717
717
  }
718
718
  function isActiveElement(element) {
719
- return getActiveElement() === element;
719
+ return getActiveElement(element.ownerDocument) === element;
720
720
  }
721
721
  function isAncestorOfActiveElement(ancestor) {
722
- return isAncestor(getActiveElement(), ancestor);
722
+ return isAncestor(getActiveElement(ancestor.ownerDocument), ancestor);
723
723
  }
724
724
  function isActiveDocument(element) {
725
725
  return element.ownerDocument === getActiveDocument();
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License. See License.txt in the project root for license information.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
 
6
- :root {
6
+ :root, :host {
7
7
  --vscode-sash-size: 4px;
8
8
  --vscode-sash-hover-size: 4px;
9
9
  }
@@ -2160,7 +2160,7 @@ registerThemingParticipant((theme, collector) => {
2160
2160
  `.monaco-editor .${ClassName.EditorErrorDecoration} { background: url("data:image/svg+xml,${getSquigglySVGData(errorForeground)}") repeat-x bottom left; }`
2161
2161
  );
2162
2162
  collector.addRule(
2163
- `:root { --monaco-editor-error-decoration: url("data:image/svg+xml,${getSquigglySVGData(errorForeground)}"); }`
2163
+ `:root, :host { --monaco-editor-error-decoration: url("data:image/svg+xml,${getSquigglySVGData(errorForeground)}"); }`
2164
2164
  );
2165
2165
  }
2166
2166
  const warningForeground = theme.getColor(editorWarningForeground);
@@ -2169,7 +2169,7 @@ registerThemingParticipant((theme, collector) => {
2169
2169
  `.monaco-editor .${ClassName.EditorWarningDecoration} { background: url("data:image/svg+xml,${getSquigglySVGData(warningForeground)}") repeat-x bottom left; }`
2170
2170
  );
2171
2171
  collector.addRule(
2172
- `:root { --monaco-editor-warning-decoration: url("data:image/svg+xml,${getSquigglySVGData(warningForeground)}"); }`
2172
+ `:root, :host { --monaco-editor-warning-decoration: url("data:image/svg+xml,${getSquigglySVGData(warningForeground)}"); }`
2173
2173
  );
2174
2174
  }
2175
2175
  const infoForeground = theme.getColor(editorInfoForeground);
@@ -2178,7 +2178,7 @@ registerThemingParticipant((theme, collector) => {
2178
2178
  `.monaco-editor .${ClassName.EditorInfoDecoration} { background: url("data:image/svg+xml,${getSquigglySVGData(infoForeground)}") repeat-x bottom left; }`
2179
2179
  );
2180
2180
  collector.addRule(
2181
- `:root { --monaco-editor-info-decoration: url("data:image/svg+xml,${getSquigglySVGData(infoForeground)}"); }`
2181
+ `:root, :host { --monaco-editor-info-decoration: url("data:image/svg+xml,${getSquigglySVGData(infoForeground)}"); }`
2182
2182
  );
2183
2183
  }
2184
2184
  const hintForeground = theme.getColor(editorHintForeground);
@@ -2187,7 +2187,7 @@ registerThemingParticipant((theme, collector) => {
2187
2187
  `.monaco-editor .${ClassName.EditorHintDecoration} { background: url("data:image/svg+xml,${getDotDotDotSVGData(hintForeground)}") no-repeat bottom left; }`
2188
2188
  );
2189
2189
  collector.addRule(
2190
- `:root { --monaco-editor-hint-decoration: url("data:image/svg+xml,${getDotDotDotSVGData(hintForeground)}"); }`
2190
+ `:root, :host { --monaco-editor-hint-decoration: url("data:image/svg+xml,${getDotDotDotSVGData(hintForeground)}"); }`
2191
2191
  );
2192
2192
  }
2193
2193
  const unnecessaryForeground = theme.getColor(editorUnnecessaryCodeOpacity);
@@ -2196,7 +2196,7 @@ registerThemingParticipant((theme, collector) => {
2196
2196
  `.monaco-editor.showUnused .${ClassName.EditorUnnecessaryInlineDecoration} { opacity: ${unnecessaryForeground.rgba.a}; }`
2197
2197
  );
2198
2198
  collector.addRule(
2199
- `:root { --monaco-editor-unnecessary-decoration-opacity: ${unnecessaryForeground.rgba.a}; }`
2199
+ `:root, :host { --monaco-editor-unnecessary-decoration-opacity: ${unnecessaryForeground.rgba.a}; }`
2200
2200
  );
2201
2201
  }
2202
2202
  });
@@ -53,7 +53,7 @@ class ZIndexRegistry {
53
53
  this.zIndexMap.forEach((zIndex, name) => {
54
54
  ruleBuilder += `${this.getVarName(name)}: ${zIndex};\n`;
55
55
  });
56
- createCSSRule(":root", ruleBuilder, this.styleSheet);
56
+ createCSSRule(":root, :host", ruleBuilder, this.styleSheet);
57
57
  }
58
58
  }
59
59
  const zIndexRegistry = ( new ZIndexRegistry());
@@ -6,7 +6,7 @@ var product = {
6
6
  quality: 'stable',
7
7
  version: '1.124.2',
8
8
  commit: '6928394f91b684055b873eecb8bc281365131f1c',
9
- date: '2026-06-25T09:12:31.945Z',
9
+ date: '2026-06-29T15:38:25.527Z',
10
10
  ...(globalThis._VSCODE_PRODUCT_JSON ?? {})
11
11
  };
12
12
 
@@ -61,7 +61,7 @@ function getIconsStyleSheet(themeService) {
61
61
  inline`@font-face { src: ${src.join(", ")}; font-family: ${stringValue(id)};${fontWeight}${fontStyle} font-display: block; }`
62
62
  );
63
63
  }
64
- rules.push(inline`:root { ${rootAttribs.join(" ")} }`);
64
+ rules.push(inline`:root, :host { ${rootAttribs.join(" ")} }`);
65
65
  return rules.join("\n");
66
66
  }
67
67
  };
@@ -2,7 +2,7 @@
2
2
  import { registerCss } from '../../../../../../../css.js';
3
3
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
4
4
  import * as modalEditorPart from './media/modalEditorPart.css';
5
- import { $, addDisposableListener, EventType, EventHelper, Dimension, append, hide, show, setVisibility, isHTMLElement } from '../../../../base/browser/dom.js';
5
+ import { $, addDisposableListener, EventType, EventHelper, Dimension, append, hide, show, setVisibility, isHTMLElement, getActiveElement } from '../../../../base/browser/dom.js';
6
6
  import { GlobalPointerMoveMonitor } from '../../../../base/browser/globalPointerMoveMonitor.js';
7
7
  import { StandardKeyboardEvent } from '../../../../base/browser/keyboardEvent.js';
8
8
  import { ActionBar, prepareActions } from '../../../../base/browser/ui/actionbar/actionbar.js';
@@ -748,7 +748,7 @@ let ModalEditorPartImpl = class ModalEditorPartImpl extends EditorPart {
748
748
  }));
749
749
  }
750
750
  create(parent, options) {
751
- this.previousMainWindowActiveElement = mainWindow.document.activeElement;
751
+ this.previousMainWindowActiveElement = getActiveElement(mainWindow.document);
752
752
  super.create(parent, options);
753
753
  }
754
754
  enforceModalPartOptions() {