import { DisposableCollection, Emitter, Event, MessageService, ProgressService, WaitUntilEvent } from '@theia/core'; import { ApplicationShell } from '@theia/core/lib/browser'; import { ContextKey, ContextKeyService } from '@theia/core/lib/browser/context-key-service'; import { WindowService } from '@theia/core/lib/browser/window/window-service'; import URI from '@theia/core/lib/common/uri'; import * as monaco from '@theia/monaco-editor-core'; import { QuickOpenTask } from '@theia/task/lib/browser/quick-open-task'; import { TaskService } from '@theia/task/lib/browser/task-service'; import { TaskIdentifier } from '@theia/task/lib/common'; import { VariableResolverService } from '@theia/variable-resolver/lib/browser'; import { WorkspaceTrustService } from '@theia/workspace/lib/browser'; import { DebugConfiguration } from '../common/debug-common'; import { DebugPreferences } from '../common/debug-preferences'; import { DebugService } from '../common/debug-service'; import { BreakpointManager } from './breakpoint/breakpoint-manager'; import { DebugVariable } from './console/debug-console-items'; import { DebugConfigurationManager } from './debug-configuration-manager'; import { DebugSession, DebugState } from './debug-session'; import { DebugSessionConfigurationLabelProvider } from './debug-session-configuration-label-provider'; import { DebugSessionContributionRegistry, DebugSessionFactory } from './debug-session-contribution'; import { DebugCompoundRoot, DebugCompoundSessionOptions, DebugConfigurationSessionOptions, DebugSessionOptions, InternalDebugSessionOptions } from './debug-session-options'; import { DebugStackFrame } from './model/debug-stack-frame'; import { DebugThread } from './model/debug-thread'; export interface WillStartDebugSession extends WaitUntilEvent { } export interface WillResolveDebugConfiguration extends WaitUntilEvent { debugType: string; } export interface DidChangeActiveDebugSession { previous: DebugSession | undefined; current: DebugSession | undefined; } export interface DidChangeBreakpointsEvent { session?: DebugSession; uri: URI; } export interface DidResolveLazyVariableEvent { readonly session: DebugSession; readonly variable: DebugVariable; } export interface DebugSessionCustomEvent { readonly body?: any; readonly event: string; readonly session: DebugSession; } export declare class DebugSessionManager { protected readonly _sessions: Map; protected readonly onWillStartDebugSessionEmitter: Emitter; readonly onWillStartDebugSession: Event; protected readonly onWillResolveDebugConfigurationEmitter: Emitter; readonly onWillResolveDebugConfiguration: Event; protected readonly onDidCreateDebugSessionEmitter: Emitter; readonly onDidCreateDebugSession: Event; protected readonly onDidStartDebugSessionEmitter: Emitter; readonly onDidStartDebugSession: Event; protected readonly onDidStopDebugSessionEmitter: Emitter; readonly onDidStopDebugSession: Event; protected readonly onDidChangeActiveDebugSessionEmitter: Emitter; readonly onDidChangeActiveDebugSession: Event; protected readonly onDidDestroyDebugSessionEmitter: Emitter; readonly onDidDestroyDebugSession: Event; protected readonly onDidReceiveDebugSessionCustomEventEmitter: Emitter; readonly onDidReceiveDebugSessionCustomEvent: Event; protected readonly onDidFocusStackFrameEmitter: Emitter; readonly onDidFocusStackFrame: Event; protected readonly onDidFocusThreadEmitter: Emitter; readonly onDidFocusThread: Event; protected readonly onDidChangeEmitter: Emitter; readonly onDidChange: Event; protected fireDidChange(current: DebugSession | undefined): void; protected readonly onDidResolveLazyVariableEmitter: Emitter; readonly onDidResolveLazyVariable: Event; protected readonly debugSessionFactory: DebugSessionFactory; protected readonly debug: DebugService; protected readonly breakpoints: BreakpointManager; protected readonly variableResolver: VariableResolverService; protected readonly sessionContributionRegistry: DebugSessionContributionRegistry; protected readonly messageService: MessageService; protected readonly progressService: ProgressService; protected readonly contextKeyService: ContextKeyService; protected readonly taskService: TaskService; protected readonly debugConfigurationManager: DebugConfigurationManager; protected readonly quickOpenTask: QuickOpenTask; protected readonly shell: ApplicationShell; protected readonly sessionConfigurationLabelProvider: DebugSessionConfigurationLabelProvider; protected readonly workspaceTrustService: WorkspaceTrustService; protected readonly debugPreferences: DebugPreferences; protected readonly windowService: WindowService; protected debugTypeKey: ContextKey; protected inDebugModeKey: ContextKey; protected debugStateKey: ContextKey; protected init(): void; get inDebugMode(): boolean; isCurrentEditorFrame(uri: URI | string | monaco.Uri): boolean; protected saveAll(): Promise; start(options: DebugCompoundSessionOptions): Promise; start(options: DebugConfigurationSessionOptions): Promise; start(options: DebugSessionOptions): Promise; start(name: string): Promise; protected startConfiguration(options: DebugConfigurationSessionOptions): Promise; protected startCompound(options: DebugCompoundSessionOptions): Promise; protected getCompoundConfigurations(options: DebugCompoundSessionOptions, compoundRoot: DebugCompoundRoot | undefined): DebugConfigurationSessionOptions[]; protected fireWillStartDebugSession(): Promise; protected configurationIds: Map; protected resolveConfiguration(options: Readonly): Promise; protected resolveDebugConfiguration(configuration: DebugConfiguration, workspaceFolderUri: string | undefined): Promise; protected fireWillResolveDebugConfiguration(debugType: string): Promise; protected resolveDebugConfigurationWithSubstitutedVariables(configuration: DebugConfiguration, workspaceFolderUri: string | undefined): Promise; protected doStart(sessionId: string, options: DebugConfigurationSessionOptions): Promise; protected cleanup(session: DebugSession): void; protected doRestart(session: DebugSession, isRestart: boolean): Promise; terminateSession(session?: DebugSession): Promise; restartSession(session?: DebugSession): Promise; protected remove(sessionId: string): boolean; getSession(sessionId: string): DebugSession | undefined; get sessions(): DebugSession[]; protected _currentSession: DebugSession | undefined; protected readonly disposeOnCurrentSessionChanged: DisposableCollection; get currentSession(): DebugSession | undefined; set currentSession(current: DebugSession | undefined); open(revealOption?: 'auto' | 'center'): void; protected updateCurrentSession(session: DebugSession | undefined): void; get currentThread(): DebugThread | undefined; get state(): DebugState; get currentFrame(): DebugStackFrame | undefined; get topFrame(): DebugStackFrame | undefined; /** * Runs the given tasks. * @param taskName the task name to run, see [TaskNameResolver](#TaskNameResolver) * @return true if it allowed to continue debugging otherwise it returns false */ protected runTask(workspaceFolderUri: string | undefined, taskName: string | TaskIdentifier | undefined, checkErrors?: boolean): Promise; protected doPostTaskAction(errorMessage: string): Promise; } //# sourceMappingURL=debug-session-manager.d.ts.map