import { Event, IJSONSchema, IJSONSchemaSnippet } from '@opensumi/ide-core-common'; import { DebugConfiguration, DebuggerDescription, IDebugSessionDTO, IDebuggerContribution } from '@opensumi/ide-debug'; import { DebugProtocol } from '@opensumi/vscode-debugprotocol'; import { Breakpoint, WorkspaceFolder } from './models'; import type vscode from 'vscode'; export type DebugSessionUUID = string; export interface IStartDebuggingOptions { parentSessionID?: DebugSessionUUID; lifecycleManagedByParent?: boolean; repl?: 'separate' | 'mergeWithParent'; noDebug?: boolean; compact?: boolean; } export interface IMainThreadDebug { $appendToDebugConsole(value: string): Promise; $appendLineToDebugConsole(value: string): Promise; $registerDebuggerContribution(description: DebuggerDescription): Promise; $addBreakpoints(breakpoints: Breakpoint[]): Promise; $removeBreakpoints(breakpoints: Breakpoint[]): Promise; $startDebugging(folder: WorkspaceFolder | undefined, nameOrConfiguration: string | DebugConfiguration, options: IStartDebuggingOptions): Promise; $stopDebugging(sessionId: DebugSessionUUID | undefined): Promise; $customRequest(sessionId: string, command: string, args?: any): Promise; $getDebugProtocolBreakpoint(id: DebugSessionUUID, breakpoinId: string): Promise; } export interface IExtHostDebug { $onSessionCustomEvent(sessionId: string, event: string, body?: any): void; $breakpointsDidChange(all: Breakpoint[], added: Breakpoint[], removed: Breakpoint[], changed: Breakpoint[]): void; $sessionDidStart(sessionId: string): void; $sessionDidDestroy(sessionId: string): void; $sessionDidChange(sessionId: string | undefined): void; $getDebugConfigurationProvidersCount(debugType: string, triggerKind?: vscode.DebugConfigurationProviderTriggerKind): Promise; $provideDebugConfigurations(debugType: string, workspaceFolder: string | undefined, token?: vscode.CancellationToken, triggerKind?: vscode.DebugConfigurationProviderTriggerKind): Promise; $resolveDebugConfigurations(debugConfiguration: vscode.DebugConfiguration, workspaceFolder: string | undefined, token?: vscode.CancellationToken): Promise; $resolveDebugConfigurationWithSubstitutedVariables(debugConfiguration: vscode.DebugConfiguration, workspaceFolder: string | undefined, token?: vscode.CancellationToken): Promise; $getSupportedLanguages(debugType: string): Promise; $getSchemaAttributes(debugType: string): Promise; $getConfigurationSnippets(debugType: string): Promise; $createDebugSession(debugSessionDTO: Exclude): Promise; $terminateDebugSession(sessionId: string): Promise; $getTerminalCreationOptions(debugType: string): Promise; $registerDebuggerContributions(extensionFolder: string, contributions: IDebuggerContribution[]): any; $unregisterDebuggerContributions(contributions: IDebuggerContribution[]): any; } export interface IExtHostDebugService extends IExtHostDebug { onDidStartDebugSession: Event; onDidTerminateDebugSession: Event; onDidChangeActiveDebugSession: Event; activeDebugSession: vscode.DebugSession | undefined; activeDebugConsole: vscode.DebugConsole; onDidReceiveDebugSessionCustomEvent: Event; onDidChangeBreakpoints: Event; breakpoints: vscode.Breakpoint[]; addBreakpoints(breakpoints0: vscode.Breakpoint[]): Promise; removeBreakpoints(breakpoints0: vscode.Breakpoint[]): Promise; asDebugSourceUri(source: vscode.DebugProtocolSource, session?: vscode.DebugSession): vscode.Uri; 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; } export type DebugActivationEvent = 'onDebugResolve' | 'onDebugInitialConfigurations' | 'onDebugAdapterProtocolTracker'; //# sourceMappingURL=debug.d.ts.map