import * as theia from '@theia/plugin'; import { Breakpoint, DebugStackFrameDTO, DebugThreadDTO } from '../../common/plugin-api-rpc-model'; import { DebugConfigurationProviderTriggerKind, DebugExt, TerminalOptionsExt } from '../../common/plugin-api-rpc'; import { PluginPackageDebuggersContribution } from '../../common/plugin-protocol'; import { RPCProtocol } from '../../common/rpc-protocol'; import { CommandRegistryImpl } from '../command-registry'; import { ConnectionImpl } from '../../common/connection'; import { Disposable, Breakpoint as BreakpointExt } from '../types-impl'; import { DebugAdapter } from '@theia/debug/lib/common/debug-model'; import { DebugConfiguration } from '@theia/debug/lib/common/debug-configuration'; export declare class DebugExtImpl implements DebugExt { protected readonly rpc: RPCProtocol; private sessions; private configurationProviderHandleGenerator; private configurationProviders; /** * Only use internally, don't send it to the frontend. It's expensive! * It's already there as a part of the plugin metadata. */ private debuggersContributions; private descriptorFactories; private trackerFactories; private contributionPaths; private contributionTypes; private connectionExt; private commandRegistryExt; private proxy; private logger; private readonly onDidChangeBreakpointsEmitter; private readonly onDidChangeActiveDebugSessionEmitter; private readonly onDidTerminateDebugSessionEmitter; private readonly onDidCreateDebugSessionEmitter; private readonly onDidStartDebugSessionEmitter; private readonly onDidReceiveDebugSessionCustomEmitter; activeDebugSession: theia.DebugSession | undefined; activeDebugConsole: theia.DebugConsole; _activeStackItem: theia.DebugStackFrame | theia.DebugThread | undefined; private readonly onDidChangeActiveStackItemEmitter; private readonly _breakpoints; private frontendAdapterCreator; private backendAdapterCreator; get breakpoints(): theia.Breakpoint[]; constructor(); initialize(): void; /** * Sets dependencies. */ assistedInject(connectionExt: ConnectionImpl, commandRegistryExt: CommandRegistryImpl): void; /** * Registers contributions. * @param pluginFolder plugin folder path * @param pluginType plugin type * @param contributions available debuggers contributions */ registerDebuggersContributions(pluginFolder: string, pluginType: theia.PluginType, contributions: PluginPackageDebuggersContribution[]): void; get onDidReceiveDebugSessionCustomEvent(): theia.Event; get onDidChangeActiveDebugSession(): theia.Event; get onDidTerminateDebugSession(): theia.Event; get onDidCreateDebugSession(): theia.Event; get onDidStartDebugSession(): theia.Event; get onDidChangeActiveStackItem(): theia.Event; get onDidChangeBreakpoints(): theia.Event; addBreakpoints(breakpoints: readonly theia.Breakpoint[]): void; removeBreakpoints(breakpoints: readonly theia.Breakpoint[]): void; startDebugging(folder: theia.WorkspaceFolder | undefined, nameOrConfiguration: string | theia.DebugConfiguration, options: theia.DebugSessionOptions): PromiseLike; stopDebugging(session?: theia.DebugSession): PromiseLike; asDebugSourceUri(source: theia.DebugProtocolSource, session?: theia.DebugSession): theia.Uri; private getDebugSourceUri; registerDebugAdapterDescriptorFactory(debugType: string, factory: theia.DebugAdapterDescriptorFactory): Disposable; registerDebugAdapterTrackerFactory(debugType: string, factory: theia.DebugAdapterTrackerFactory): Disposable; registerDebugConfigurationProvider(debugType: string, provider: theia.DebugConfigurationProvider, trigger: DebugConfigurationProviderTriggerKind): Disposable; set activeStackItem(stackItem: theia.DebugStackFrame | theia.DebugThread | undefined); get activeStackItem(): theia.DebugStackFrame | theia.DebugThread | undefined; $onDidChangeActiveThread(debugThread: DebugThreadDTO | undefined): Promise; $onDidChangeActiveFrame(debugFrame: DebugStackFrameDTO | undefined): Promise; $onSessionCustomEvent(sessionId: string, event: string, body?: any): Promise; $sessionDidCreate(sessionId: string): Promise; $sessionDidStart(sessionId: string): Promise; $sessionDidDestroy(sessionId: string): Promise; $sessionDidChange(sessionId: string | undefined): Promise; $breakpointsDidChange(added: Breakpoint[], removed: string[], changed: Breakpoint[]): Promise; protected toBreakpointExt({ functionName, location, enabled, condition, hitCondition, logMessage, id }: Breakpoint): BreakpointExt | undefined; $createDebugSession(debugConfiguration: DebugConfiguration, workspaceFolderUri: string | undefined): Promise; $terminateDebugSession(sessionId: string): Promise; $getTerminalCreationOptions(debugType: string): Promise; doGetTerminalCreationOptions(debugType: string): Promise; private getConfigurationProviderRecord; $provideDebugConfigurationsByHandle(handle: number, workspaceFolderUri: string | undefined): Promise; $resolveDebugConfigurationByHandle(handle: number, workspaceFolderUri: string | undefined, debugConfiguration: theia.DebugConfiguration): Promise; $resolveDebugConfigurationWithSubstitutedVariablesByHandle(handle: number, workspaceFolderUri: string | undefined, debugConfiguration: theia.DebugConfiguration): Promise; protected createDebugAdapterTracker(session: theia.DebugSession): Promise; protected createDebugAdapter(session: theia.DebugSession, debugConfiguration: theia.DebugConfiguration): Promise; protected resolveDebugAdapterExecutable(debugConfiguration: theia.DebugConfiguration): Promise; private toWorkspaceFolder; private getAdapterCreator; } //# sourceMappingURL=debug-ext.d.ts.map