@codingame/monaco-vscode-api 37.3.1 → 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.
- package/missing-services.js +22 -0
- package/package.json +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/platform/agentHost/common/wslRemoteAgentHost.service.d.ts +51 -0
- package/vscode/src/vs/platform/agentHost/common/wslRemoteAgentHost.service.js +6 -0
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/sessions/browser/workbench.js +5 -20
package/missing-services.js
CHANGED
|
@@ -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.
|
|
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.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "37.3.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "37.3.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "37.3.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "37.3.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "37.3.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "37.3.
|
|
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-
|
|
544
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.138.0-
|
|
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-
|
|
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
|
+
}
|
|
@@ -6,7 +6,7 @@ import * as workbench from './media/workbench.css';
|
|
|
6
6
|
import * as phoneLayout from './media/phoneLayout.css';
|
|
7
7
|
import { Disposable, DisposableStore, toDisposable } from '../../base/common/lifecycle.js';
|
|
8
8
|
import { Emitter, setGlobalLeakWarningThreshold, Event } from '../../base/common/event.js';
|
|
9
|
-
import { getActiveDocument, getWindows, getClientArea, createElement, addDisposableListener, EventType, addDisposableGenericMouseDownListener, runWhenWindowIdle, Dimension, getWindowId, getWindow, size, getActiveElement, isAncestorUsingFlowTo } from '../../base/browser/dom.js';
|
|
9
|
+
import { getActiveDocument, getWindows, getClientArea, createElement, addDisposableListener, EventType, addDisposableGenericMouseDownListener, runWhenWindowIdle, Dimension, getWindowId, getWindow, getFullscreenElement, size, getActiveElement, isAncestorUsingFlowTo } from '../../base/browser/dom.js';
|
|
10
10
|
import { DeferredPromise, RunOnceScheduler } from '../../base/common/async.js';
|
|
11
11
|
import { isFirefox, isChrome, isSafari, onDidChangeFullscreen, isFullscreen } from '../../base/browser/browser.js';
|
|
12
12
|
import { mark } from '../../base/common/performance.js';
|
|
@@ -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());
|
|
@@ -1241,7 +1223,10 @@ class Workbench extends Disposable {
|
|
|
1241
1223
|
return result;
|
|
1242
1224
|
}
|
|
1243
1225
|
layout() {
|
|
1244
|
-
const
|
|
1226
|
+
const fullscreenElement = getFullscreenElement(mainWindow.document);
|
|
1227
|
+
const layoutViewportDimension = getClientArea(
|
|
1228
|
+
this.mainWindowFullscreen && this.mainContainer === fullscreenElement ? mainWindow.document.body : this.parent
|
|
1229
|
+
);
|
|
1245
1230
|
const previousClass = this._previousViewportClass;
|
|
1246
1231
|
this.layoutPolicy.update(layoutViewportDimension.width, layoutViewportDimension.height);
|
|
1247
1232
|
const currentClass = this.layoutPolicy.viewportClass.get();
|