Path: blob/main/src/vs/platform/debug/common/extensionHostDebug.ts
5237 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { Event } from '../../../base/common/event.js';6import { createDecorator } from '../../instantiation/common/instantiation.js';78export const IExtensionHostDebugService = createDecorator<IExtensionHostDebugService>('extensionHostDebugService');910export interface IAttachSessionEvent {11sessionId: string;12subId?: string;13port: number;14}1516export interface ITerminateSessionEvent {17sessionId: string;18subId?: string;19}2021export interface IReloadSessionEvent {22sessionId: string;23}2425export interface ICloseSessionEvent {26sessionId: string;27}2829export interface IOpenExtensionWindowResult {30rendererDebugAddr?: string;31port?: number;32success: boolean;33}3435export interface IExtensionHostDebugService {36readonly _serviceBrand: undefined;3738reload(sessionId: string): void;39readonly onReload: Event<IReloadSessionEvent>;4041close(sessionId: string): void;42readonly onClose: Event<ICloseSessionEvent>;4344attachSession(sessionId: string, port: number, subId?: string): void;45readonly onAttachSession: Event<IAttachSessionEvent>;4647terminateSession(sessionId: string, subId?: string): void;48readonly onTerminateSession: Event<ITerminateSessionEvent>;4950openExtensionDevelopmentHostWindow(args: string[], debugRenderer: boolean): Promise<IOpenExtensionWindowResult>;5152attachToCurrentWindowRenderer(windowId: number): Promise<IOpenExtensionWindowResult>;53}545556