@codingame/monaco-vscode-api 21.5.1 → 21.6.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/README.md CHANGED
@@ -351,11 +351,6 @@ There are multiple benefits of using it:
351
351
 
352
352
  If the provided container element is a child of a shadow dom element, the styles will be injected in both the main page and the shadow root. That's it.
353
353
 
354
- ### ⚠️ Xterm notice ⚠️
355
-
356
- The webgl renderer of xterm, which VSCode is using, doesn't support being used inside a shadom dom (see https://github.com/xtermjs/xterm.js/pull/5334).
357
- Until it's fixed and deployed, either do not use the terminal service override, or apply the patch on your side (using [patch-package](https://www.npmjs.com/package/patch-package) for instance).
358
-
359
354
  ### Prerequisites
360
355
 
361
356
  In order to be able to load the static css files in the shadow dom as well. Your bundler configuration needs to be adapted so that importing css files doesn't load their content in the page head, but instead just returns the file content as default (either as a string or a `CSSStyleSheet`). It can be achieved with most bundlers with some configurations.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "21.5.1",
3
+ "version": "21.6.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": "21.5.1",
19
- "@codingame/monaco-vscode-environment-service-override": "21.5.1",
20
- "@codingame/monaco-vscode-extensions-service-override": "21.5.1",
21
- "@codingame/monaco-vscode-files-service-override": "21.5.1",
22
- "@codingame/monaco-vscode-host-service-override": "21.5.1",
23
- "@codingame/monaco-vscode-layout-service-override": "21.5.1",
24
- "@codingame/monaco-vscode-quickaccess-service-override": "21.5.1",
18
+ "@codingame/monaco-vscode-base-service-override": "21.6.0",
19
+ "@codingame/monaco-vscode-environment-service-override": "21.6.0",
20
+ "@codingame/monaco-vscode-extensions-service-override": "21.6.0",
21
+ "@codingame/monaco-vscode-files-service-override": "21.6.0",
22
+ "@codingame/monaco-vscode-host-service-override": "21.6.0",
23
+ "@codingame/monaco-vscode-layout-service-override": "21.6.0",
24
+ "@codingame/monaco-vscode-quickaccess-service-override": "21.6.0",
25
25
  "@vscode/iconv-lite-umd": "0.7.0",
26
26
  "dompurify": "3.2.7",
27
27
  "jschardet": "3.1.4",
package/services.js CHANGED
@@ -402,10 +402,10 @@ export { IInlineCompletionsUnificationService } from './vscode/src/vs/workbench/
402
402
  export { IMcpGalleryManifestService } from './vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.js';
403
403
  export { IDataChannelService } from './vscode/src/vs/platform/dataChannel/common/dataChannel.service.js';
404
404
 
405
- if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.104.2-4d71bccd-32eb-4398-833f-c9b4c4e81a3d") {
406
- throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.104.2-4d71bccd-32eb-4398-833f-c9b4c4e81a3d"}, ${window.monacoVscodeApiBuildId} is already loaded`);
405
+ if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.104.2-03fa3823-e9dd-4928-b996-f8f91a2db819") {
406
+ throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.104.2-03fa3823-e9dd-4928-b996-f8f91a2db819"}, ${window.monacoVscodeApiBuildId} is already loaded`);
407
407
  }
408
- window.monacoVscodeApiBuildId = "1.104.2-4d71bccd-32eb-4398-833f-c9b4c4e81a3d";
408
+ window.monacoVscodeApiBuildId = "1.104.2-03fa3823-e9dd-4928-b996-f8f91a2db819";
409
409
  function registerCommands(options) {
410
410
  function asMenuId(menu) {
411
411
  switch (menu) {
@@ -6,7 +6,7 @@ var product = {
6
6
  quality: 'stable',
7
7
  version: '1.104.2',
8
8
  commit: 'e3a5acfb517a443235981655413d566533107e92',
9
- date: '2025-10-08T16:40:04.426Z',
9
+ date: '2025-10-09T08:52:33.541Z',
10
10
  ...(globalThis._VSCODE_PRODUCT_JSON ?? {})
11
11
  };
12
12
 
@@ -11,6 +11,7 @@ export interface ILifecycleService {
11
11
  * Value indicates how this window got loaded.
12
12
  */
13
13
  readonly startupKind: StartupKind;
14
+ readonly shouldAttemptTaskReconnection: boolean;
14
15
  /**
15
16
  * A flag indicating in what phase of the lifecycle we currently are.
16
17
  */
@@ -21,6 +21,7 @@ export declare abstract class AbstractLifecycleService extends Disposable implem
21
21
  readonly onShutdownVeto: import("../../../../base/common/event.js").Event<void>;
22
22
  private _startupKind;
23
23
  get startupKind(): StartupKind;
24
+ get shouldAttemptTaskReconnection(): boolean;
24
25
  private _phase;
25
26
  get phase(): LifecyclePhase;
26
27
  protected _willShutdown: boolean;
@@ -3,7 +3,7 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
3
3
  import { Emitter } from '../../../../base/common/event.js';
4
4
  import { Barrier } from '../../../../base/common/async.js';
5
5
  import { Disposable } from '../../../../base/common/lifecycle.js';
6
- import { LifecyclePhase, StartupKind, ShutdownReason, LifecyclePhaseToString } from './lifecycle.js';
6
+ import { StartupKind, LifecyclePhase, ShutdownReason, LifecyclePhaseToString } from './lifecycle.js';
7
7
  import { ILogService } from '../../../../platform/log/common/log.service.js';
8
8
  import { mark } from '../../../../base/common/performance.js';
9
9
  import { WillSaveStateReason, StorageScope, StorageTarget } from '../../../../platform/storage/common/storage.js';
@@ -14,6 +14,9 @@ let AbstractLifecycleService = class AbstractLifecycleService extends Disposable
14
14
  static { AbstractLifecycleService_1 = this; }
15
15
  static { this.LAST_SHUTDOWN_REASON_KEY = 'lifecyle.lastShutdownReason'; }
16
16
  get startupKind() { return this._startupKind; }
17
+ get shouldAttemptTaskReconnection() {
18
+ return this.startupKind === StartupKind.ReloadedWindow;
19
+ }
17
20
  get phase() { return this._phase; }
18
21
  get willShutdown() { return this._willShutdown; }
19
22
  constructor(logService, storageService) {