@codingame/monaco-vscode-api 34.1.1 → 34.1.3

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.1",
3
+ "version": "34.1.3",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor",
6
6
  "keywords": [],
@@ -15,16 +15,16 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-base-service-override": "34.1.1",
19
- "@codingame/monaco-vscode-environment-service-override": "34.1.1",
20
- "@codingame/monaco-vscode-extensions-service-override": "34.1.1",
21
- "@codingame/monaco-vscode-files-service-override": "34.1.1",
22
- "@codingame/monaco-vscode-host-service-override": "34.1.1",
23
- "@codingame/monaco-vscode-layout-service-override": "34.1.1",
24
- "@codingame/monaco-vscode-quickaccess-service-override": "34.1.1",
18
+ "@codingame/monaco-vscode-base-service-override": "34.1.3",
19
+ "@codingame/monaco-vscode-environment-service-override": "34.1.3",
20
+ "@codingame/monaco-vscode-extensions-service-override": "34.1.3",
21
+ "@codingame/monaco-vscode-files-service-override": "34.1.3",
22
+ "@codingame/monaco-vscode-host-service-override": "34.1.3",
23
+ "@codingame/monaco-vscode-layout-service-override": "34.1.3",
24
+ "@codingame/monaco-vscode-quickaccess-service-override": "34.1.3",
25
25
  "@vscode/diff": "0.0.2-7",
26
26
  "@vscode/iconv-lite-umd": "0.7.1",
27
- "dompurify": "3.4.9",
27
+ "dompurify": "3.4.11",
28
28
  "jschardet": "3.1.4",
29
29
  "marked": "14.0.0"
30
30
  },
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-9e636252-193b-4804-b738-c5231a7994a5") {
448
- throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.124.2-9e636252-193b-4804-b738-c5231a7994a5"}, ${window.monacoVscodeApiBuildId} is already loaded`);
447
+ if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.124.2-7f9d9a85-693a-43dc-85cd-604802a27a96") {
448
+ throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.124.2-7f9d9a85-693a-43dc-85cd-604802a27a96"}, ${window.monacoVscodeApiBuildId} is already loaded`);
449
449
  }
450
- window.monacoVscodeApiBuildId = "1.124.2-9e636252-193b-4804-b738-c5231a7994a5";
450
+ window.monacoVscodeApiBuildId = "1.124.2-7f9d9a85-693a-43dc-85cd-604802a27a96";
451
451
  function registerCommands(options) {
452
452
  function asMenuId(menu) {
453
453
  switch (menu) {
@@ -459,7 +459,7 @@ function registerCommands(options) {
459
459
  }
460
460
  if (Array.isArray(options.commands)) {
461
461
  for (const command of options.commands) {
462
- CommandsRegistry.registerCommand(command.id, (accessor, ...args) => {
462
+ CommandsRegistry.registerCommand(command.id, (_accessor, ...args) => {
463
463
  return command.handler(...args);
464
464
  });
465
465
  if (command.label) {
@@ -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();
@@ -6,7 +6,7 @@ var product = {
6
6
  quality: 'stable',
7
7
  version: '1.124.2',
8
8
  commit: '6928394f91b684055b873eecb8bc281365131f1c',
9
- date: '2026-06-25T11:10:14.136Z',
9
+ date: '2026-06-29T17:10:09.046Z',
10
10
  ...(globalThis._VSCODE_PRODUCT_JSON ?? {})
11
11
  };
12
12
 
@@ -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() {