Path: blob/main/src/vs/platform/debug/common/extensionHostDebug.ts
3296 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;31success: boolean;32}3334export interface IExtensionHostDebugService {35readonly _serviceBrand: undefined;3637reload(sessionId: string): void;38readonly onReload: Event<IReloadSessionEvent>;3940close(sessionId: string): void;41readonly onClose: Event<ICloseSessionEvent>;4243attachSession(sessionId: string, port: number, subId?: string): void;44readonly onAttachSession: Event<IAttachSessionEvent>;4546terminateSession(sessionId: string, subId?: string): void;47readonly onTerminateSession: Event<ITerminateSessionEvent>;4849openExtensionDevelopmentHostWindow(args: string[], debugRenderer: boolean): Promise<IOpenExtensionWindowResult>;5051attachToCurrentWindowRenderer(windowId: number): Promise<IOpenExtensionWindowResult>;52}535455