import { IRPCProtocol } from '@opensumi/ide-connection'; import { Event, IJSONSchema, IJSONSchemaSnippet } from '@opensumi/ide-core-common'; import { DebugConfiguration, DebugStreamConnection, IDebugSessionDTO, IDebuggerContribution } from '@opensumi/ide-debug'; import { CustomChildProcessModule } from '../../../../common/ext.process'; import { IExtHostCommands, IExtHostDebugService, IInterProcessConnectionService, IMainThreadDebug } from '../../../../common/vscode'; import { Breakpoint } from '../../../../common/vscode/models'; import type vscode from 'vscode'; export declare function createDebugApiFactory(extHostDebugService: IExtHostDebugService): typeof vscode.debug; export declare class ExtHostDebugSession implements vscode.DebugSession { private _debugServiceProxy; private _id; private _type; private _name; private _workspaceFolder; private _configuration; private _parentSession; constructor(_debugServiceProxy: IMainThreadDebug, _id: string, _type: string, _name: string, _workspaceFolder: vscode.WorkspaceFolder | undefined, _configuration: vscode.DebugConfiguration, _parentSession: vscode.DebugSession | undefined); get id(): string; get type(): string; get name(): string; set name(name: string); get parentSession(): vscode.DebugSession | undefined; get workspaceFolder(): vscode.WorkspaceFolder | undefined; get configuration(): vscode.DebugConfiguration; customRequest(command: string, args: any): Promise; getDebugProtocolBreakpoint(breakpoint: vscode.Breakpoint): Promise; } export declare class ExtHostDebug implements IExtHostDebugService { private extHostConnectionService; private extHostCommand; private cp?; private readonly onDidChangeBreakpointsEmitter; private readonly onDidChangeActiveDebugSessionEmitter; private readonly onDidTerminateDebugSessionEmitter; private readonly onDidStartDebugSessionEmitter; private readonly onDidReceiveDebugSessionCustomEmitter; private sessions; private debuggersContributions; private contributionPaths; private configurationProviders; private trackerFactories; private descriptorFactories; private proxy; activeDebugSession: vscode.DebugSession | undefined; breakpoints: Breakpoint[]; activeDebugConsole: vscode.DebugConsole; constructor(rpc: IRPCProtocol, extHostConnectionService: IInterProcessConnectionService, extHostCommand: IExtHostCommands, cp?: CustomChildProcessModule | undefined); get onDidChangeBreakpoints(): Event; get onDidReceiveDebugSessionCustomEvent(): Event; get onDidChangeActiveDebugSession(): Event; get onDidTerminateDebugSession(): Event; get onDidStartDebugSession(): Event; /** * 注册贡献点 * @param extensionPath 拓展路径 * @param contributions 有效的贡献点 */ registerDebuggersContributions(extensionPath: string, contributions: IDebuggerContribution[]): void; /** * 添加断点 */ addBreakpoints(breakpoints: vscode.Breakpoint[]): Promise; /** * 移除断点 * @param breakpoints */ removeBreakpoints(breakpoints: vscode.Breakpoint[]): Promise; /** * 将调试资源转换为可访问的Uri * @param {vscode.DebugProtocolSource} source * @param {vscode.DebugSession} [session] */ asDebugSourceUri(src: vscode.DebugProtocolSource, session?: vscode.DebugSession): vscode.Uri; /** * 启动调试 * @param folder * @param nameOrConfig * @param parentSession */ startDebugging(folder: vscode.WorkspaceFolder | undefined, nameOrConfig: string | vscode.DebugConfiguration, parentSessionOrOptions?: vscode.DebugSession | vscode.DebugSessionOptions): Promise; stopDebugging(session?: vscode.DebugSession): Promise; registerDebugConfigurationProvider(type: string, provider: vscode.DebugConfigurationProvider, trigger: vscode.DebugConfigurationProviderTriggerKind): vscode.Disposable; registerDebugAdapterDescriptorFactory(type: string, factory: vscode.DebugAdapterDescriptorFactory): vscode.Disposable; registerDebugAdapterTrackerFactory(type: string, factory: vscode.DebugAdapterTrackerFactory): vscode.Disposable; $onSessionCustomEvent(sessionId: string, event: string, body?: any): Promise; $sessionDidStart(sessionId: string): Promise; $sessionDidDestroy(sessionId: string): Promise; $sessionDidChange(sessionId: string | undefined): Promise; $breakpointsDidChange(all: Breakpoint[], added: Breakpoint[], removed: Breakpoint[], changed: Breakpoint[]): Promise; $createDebugSession(debugConfigurationDTO: IDebugSessionDTO): Promise; $terminateDebugSession(sessionId: string): Promise; $getSupportedLanguages(debugType: string): Promise; $getSchemaAttributes(debugType: string): Promise; $getConfigurationSnippets(debugType: string): Promise; $getTerminalCreationOptions(debugType: string): Promise; doGetTerminalCreationOptions(debugType: string): Promise; $getDebugConfigurationProvidersCount(debugType: string, triggerKind?: vscode.DebugConfigurationProviderTriggerKind): Promise; $provideDebugConfigurations(debugType: string, workspaceFolderUri: string | undefined, token?: vscode.CancellationToken, triggerKind?: vscode.DebugConfigurationProviderTriggerKind): Promise; $resolveDebugConfigurations(debugConfiguration: DebugConfiguration, workspaceFolderUri: string | undefined, token?: vscode.CancellationToken): Promise; $resolveDebugConfigurationWithSubstitutedVariables(debugConfiguration: DebugConfiguration, workspaceFolderUri: string | undefined, token?: vscode.CancellationToken): Promise; $registerDebuggerContributions(extensionFolder: string, contributions: IDebuggerContribution[]): Promise; $unregisterDebuggerContributions(contributions: IDebuggerContribution[]): Promise; protected createDebugAdapterTracker(session: vscode.DebugSession): Promise; protected getDebugAdapterDescriptor(session: vscode.DebugSession, executable?: vscode.DebugAdapterExecutable): Promise; protected createCommunicationProvider(session: vscode.DebugSession, debugConfiguration: vscode.DebugConfiguration): Promise; protected resolveDebugAdapterExecutable(debugConfiguration: vscode.DebugConfiguration): Promise; private toWorkspaceFolder; private convertToDto; } //# sourceMappingURL=ext.host.debug.d.ts.map