@codingame/monaco-vscode-api 37.3.2 → 37.3.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.
@@ -471,6 +471,7 @@ import { IAgentEditorCommentsBridge } from './vscode/src/vs/workbench/services/a
471
471
  import { IAgentHostFileSystemService } from './vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.service.js';
472
472
  import { IPowerService } from './vscode/src/vs/workbench/services/power/common/powerService.service.js';
473
473
  import '@codingame/monaco-vscode-files-service-override';
474
+ import { IWSLRemoteAgentHostService } from './vscode/src/vs/platform/agentHost/common/wslRemoteAgentHost.service.js';
474
475
  import { constObservable } from './vscode/src/vs/base/common/observableInternal/observables/constObservable.js';
475
476
  import { FileSystemProviderCapabilities } from './vscode/src/vs/platform/files/common/files.js';
476
477
 
@@ -10553,3 +10554,24 @@ __decorate([
10553
10554
  Unsupported
10554
10555
  ], McpDevModeDebugging.prototype, "transform", void 0);
10555
10556
  registerSingleton(IMcpDevModeDebugging, McpDevModeDebugging, InstantiationType.Delayed);
10557
+ class WSLRemoteAgentHostService {
10558
+ constructor() {
10559
+ this.onDidChangeConnections = Event.None;
10560
+ this.onDidReportConnectProgress = Event.None;
10561
+ this.connections = [];
10562
+ this.isWSLAvailable = async () => false;
10563
+ this.listDistros = async () => [];
10564
+ this.listRunningDistros = async () => [];
10565
+ this.connect = unsupported;
10566
+ this.disconnect = async () => { };
10567
+ this.reconnect = unsupported;
10568
+ this.getCachedDistros = () => [];
10569
+ }
10570
+ }
10571
+ __decorate([
10572
+ Unsupported
10573
+ ], WSLRemoteAgentHostService.prototype, "connect", void 0);
10574
+ __decorate([
10575
+ Unsupported
10576
+ ], WSLRemoteAgentHostService.prototype, "reconnect", void 0);
10577
+ registerSingleton(IWSLRemoteAgentHostService, WSLRemoteAgentHostService, InstantiationType.Delayed);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "37.3.2",
3
+ "version": "37.3.3",
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": "37.3.2",
19
- "@codingame/monaco-vscode-environment-service-override": "37.3.2",
20
- "@codingame/monaco-vscode-extensions-service-override": "37.3.2",
21
- "@codingame/monaco-vscode-files-service-override": "37.3.2",
22
- "@codingame/monaco-vscode-host-service-override": "37.3.2",
23
- "@codingame/monaco-vscode-layout-service-override": "37.3.2",
24
- "@codingame/monaco-vscode-quickaccess-service-override": "37.3.2",
18
+ "@codingame/monaco-vscode-base-service-override": "37.3.3",
19
+ "@codingame/monaco-vscode-environment-service-override": "37.3.3",
20
+ "@codingame/monaco-vscode-extensions-service-override": "37.3.3",
21
+ "@codingame/monaco-vscode-files-service-override": "37.3.3",
22
+ "@codingame/monaco-vscode-host-service-override": "37.3.3",
23
+ "@codingame/monaco-vscode-layout-service-override": "37.3.3",
24
+ "@codingame/monaco-vscode-quickaccess-service-override": "37.3.3",
25
25
  "@vscode/diff": "0.0.2-7",
26
26
  "@vscode/iconv-lite-umd": "0.7.1",
27
27
  "dompurify": "3.4.15",
package/services.js CHANGED
@@ -540,10 +540,10 @@ export { IAutomationService } from './vscode/src/vs/workbench/contrib/chat/commo
540
540
  export { IAgentWorkbenchLayoutService } from './vscode/src/vs/sessions/browser/workbench.service.js';
541
541
  export { IAICustomizationItemsModel } from './vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.service.js';
542
542
 
543
- if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.138.0-0d729be1-f388-4cc2-b144-9b52d9fda9e4") {
544
- throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.138.0-0d729be1-f388-4cc2-b144-9b52d9fda9e4"}, ${window.monacoVscodeApiBuildId} is already loaded`);
543
+ if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.138.0-7b25afc9-b6c3-4e84-a719-c22cdfa83d03") {
544
+ throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.138.0-7b25afc9-b6c3-4e84-a719-c22cdfa83d03"}, ${window.monacoVscodeApiBuildId} is already loaded`);
545
545
  }
546
- window.monacoVscodeApiBuildId = "1.138.0-0d729be1-f388-4cc2-b144-9b52d9fda9e4";
546
+ window.monacoVscodeApiBuildId = "1.138.0-7b25afc9-b6c3-4e84-a719-c22cdfa83d03";
547
547
  function registerCommands(options) {
548
548
  function asMenuId(menu) {
549
549
  switch (menu) {
@@ -0,0 +1,51 @@
1
+ import { Event } from "../../../sessions/sessions.web.main.internal.js";
2
+ import { IRelayMessage } from "./relayTransport.js";
3
+ import { IWSLConnectProgress, IWSLAgentHostConnection, IWSLDistro, IWSLAgentHostConfig, IWSLCachedDistro, type IWSLConnectResult } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/platform/agentHost/common/wslRemoteAgentHost";
4
+ export declare const IWSLRemoteAgentHostService: import("../../instantiation/common/instantiation.js").ServiceIdentifier<IWSLRemoteAgentHostService>;
5
+ /**
6
+ * Manages WSL-bootstrapped connections to remote agent host processes.
7
+ *
8
+ * Each connection enters a WSL 2 distro, ensures the VS Code CLI is
9
+ * available inside the distro, starts `code agent-host`, and creates a
10
+ * stdio relay through the shared process.
11
+ */
12
+ export interface IWSLRemoteAgentHostService {
13
+ readonly _serviceBrand: undefined;
14
+ readonly onDidChangeConnections: Event<void>;
15
+ readonly onDidReportConnectProgress: Event<IWSLConnectProgress>;
16
+ readonly connections: readonly IWSLAgentHostConnection[];
17
+ isWSLAvailable(): Promise<boolean>;
18
+ listDistros(): Promise<IWSLDistro[]>;
19
+ listRunningDistros(): Promise<string[]>;
20
+ connect(config: IWSLAgentHostConfig): Promise<IWSLAgentHostConnection>;
21
+ disconnect(distro: string): Promise<void>;
22
+ /** Reconnect a cached distro, optionally as an automatic recovery attempt. */
23
+ reconnect(distro: string, name: string, userInitiated?: boolean): Promise<IWSLAgentHostConnection>;
24
+ /**
25
+ * Distros the user has connected to, persisted across windows. Drives the
26
+ * remote agent host service's startup auto-connect. WSL connections
27
+ * themselves live in-memory, mirroring how tunnels are handled.
28
+ */
29
+ getCachedDistros(): readonly IWSLCachedDistro[];
30
+ }
31
+ export declare const IWSLRemoteAgentHostMainService: import("../../instantiation/common/instantiation.js").ServiceIdentifier<IWSLRemoteAgentHostMainService>;
32
+ /**
33
+ * Main-process service that performs the actual WSL work. The renderer
34
+ * calls this over IPC; the renderer-side WSL connection factory owns protocol
35
+ * client creation and registration with {@link IRemoteAgentHostService}.
36
+ */
37
+ export interface IWSLRemoteAgentHostMainService {
38
+ readonly _serviceBrand: undefined;
39
+ readonly onDidChangeConnections: Event<void>;
40
+ readonly onDidCloseConnection: Event<string>;
41
+ readonly onDidReportConnectProgress: Event<IWSLConnectProgress>;
42
+ readonly onDidRelayMessage: Event<IRelayMessage>;
43
+ readonly onDidRelayClose: Event<string>;
44
+ relaySend(connectionId: string, message: string): Promise<void>;
45
+ isWSLAvailable(): Promise<boolean>;
46
+ listDistros(): Promise<IWSLDistro[]>;
47
+ listRunningDistros(): Promise<string[]>;
48
+ connect(config: IWSLAgentHostConfig): Promise<IWSLConnectResult>;
49
+ disconnect(distro: string): Promise<void>;
50
+ reconnect(distro: string, name: string, remoteAgentHostCommand?: string, userInitiated?: boolean): Promise<IWSLConnectResult>;
51
+ }
@@ -0,0 +1,6 @@
1
+
2
+ import { createDecorator } from '../../instantiation/common/instantiation.js';
3
+
4
+ const IWSLRemoteAgentHostService = ( createDecorator("wslRemoteAgentHostService"));
5
+
6
+ export { IWSLRemoteAgentHostService };
@@ -6,7 +6,7 @@ var product = {
6
6
  quality: 'stable',
7
7
  version: '1.138.0',
8
8
  commit: '7debcd0e2acdea1c52de81bf9ee1620444407dda',
9
- date: '2026-10-02T11:01:10.169Z',
9
+ date: '2026-10-02T16:40:43.441Z',
10
10
  ...(globalThis._VSCODE_PRODUCT_JSON ?? {})
11
11
  };
12
12
 
@@ -34,19 +34,11 @@ import { IConfigurationService } from '../../platform/configuration/common/confi
34
34
  import { IHostService } from '../../workbench/services/host/browser/host.service.js';
35
35
  import { IDialogService } from '../../platform/dialogs/common/dialogs.service.js';
36
36
  import { INotificationService } from '../../platform/notification/common/notification.service.js';
37
- import { WorkbenchHoverDelegate } from '../../platform/hover/browser/hover.js';
38
- import { IHoverService } from '../../platform/hover/browser/hover.service.js';
39
- import { setHoverDelegateFactory } from '../../base/browser/ui/hover/hoverDelegateFactory.js';
40
- import { setBaseLayerHoverDelegate } from '../../base/browser/ui/hover/hoverDelegate2.js';
41
- import { Registry } from '../../platform/registry/common/platform.js';
42
- import { Extensions } from '../../workbench/common/contributions.js';
43
- import { EditorExtensions } from '../../workbench/common/editor.js';
44
37
  import { setARIAContainer, alert } from '../../base/browser/ui/aria/aria.js';
45
38
  import { localize } from '../../nls.js';
46
39
  import { FontMeasurements } from '../../editor/browser/config/fontMeasurements.js';
47
40
  import { createBareFontInfoFromRawSettings } from '../../editor/common/config/fontInfoFromSettings.js';
48
41
  import { toErrorMessage } from '../../base/common/errorMessage.js';
49
- import { WorkbenchContextKeysHandler } from '../../workbench/browser/contextkeys.js';
50
42
  import { PixelRatio } from '../../base/browser/pixelRatio.js';
51
43
  import { AccessibilityProgressSignalScheduler } from '../../platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler.js';
52
44
  import { setProgressAccessibilitySignalScheduler } from '../../base/browser/ui/progressbar/progressAccessibilitySignal.js';
@@ -297,7 +289,6 @@ class Workbench extends Disposable {
297
289
  const storageService = accessor.get(IStorageService);
298
290
  const configurationService = accessor.get(IConfigurationService);
299
291
  const hostService = accessor.get(IHostService);
300
- const hoverService = accessor.get(IHoverService);
301
292
  const dialogService = accessor.get(IDialogService);
302
293
  const notificationService = accessor.get(INotificationService);
303
294
  const markdownRendererService = accessor.get(IMarkdownRendererService);
@@ -305,16 +296,7 @@ class Workbench extends Disposable {
305
296
  configurationService.acquireInstantiationService(instantiationService);
306
297
  }
307
298
  markdownRendererService.setDefaultCodeBlockRenderer(instantiationService.createInstance(EditorMarkdownCodeBlockRenderer));
308
- setHoverDelegateFactory(
309
- (placement, enableInstantHover) => instantiationService.createInstance(WorkbenchHoverDelegate, placement, {
310
- instantHover: enableInstantHover
311
- }, {})
312
- );
313
- setBaseLayerHoverDelegate(hoverService);
314
299
  this.initLayout(accessor);
315
- ( Registry.as(Extensions.Workbench)).start(accessor);
316
- ( Registry.as(EditorExtensions.EditorFactory)).start(accessor);
317
- this._register(instantiationService.createInstance(WorkbenchContextKeysHandler));
318
300
  const editorMaximizedContext = EditorMaximizedContext.bindTo(accessor.get(IContextKeyService));
319
301
  this._register(this.onDidChangeEditorMaximized(() => {
320
302
  editorMaximizedContext.set(this.isEditorMaximized());