import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser"; import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service"; import { IObservableValue } from "../../common/observableValue.js"; import { InspectSubject } from "./testResultsSubject.js"; /** UI state that can be saved/restored, used to give a nice experience when switching stack frames */ export interface ITestResultsViewContentUiState { splitViewWidths: number[]; } export declare class TestResultsViewContent extends Disposable { private readonly editor; private readonly options; private readonly instantiationService; protected readonly modelService: ITextModelService; private readonly contextKeyService; private readonly uriIdentityService; private readonly configurationService; private static lastSplitWidth?; private readonly didReveal; private readonly currentSubjectStore; private readonly onCloseEmitter; private followupWidget; private messageContextKeyService; private contextKeyTestMessage; private contextKeyResultOutdated; private stackContainer; private callStackWidget; private currentTopFrame?; private isDoingLayoutUpdate?; private dimension?; private splitView; private messageContainer; private contentProviders; private contentProvidersUpdateLimiter; private isTreeLeft; current?: InspectSubject; /** Fired when a tree item is selected. Populated only on .fillBody() */ onDidRequestReveal: Event; readonly onClose: Event; get uiState(): ITestResultsViewContentUiState; get onDidChangeContentHeight(): Event; get contentHeight(): number; private get diffViewIndex(); private get historyViewIndex(); constructor(editor: ICodeEditor | undefined, options: { historyVisible: IObservableValue; showRevealLocationOnMessages: boolean; locationForProgress: string; }, instantiationService: IInstantiationService, modelService: ITextModelService, contextKeyService: IContextKeyService, uriIdentityService: IUriIdentityService, configurationService: IConfigurationService); private swapViews; fillBody(containerElement: HTMLElement): void; /** * Shows a message in-place without showing or changing the peek location. * This is mostly used if peeking a message without a location. */ reveal(opts: { subject: InspectSubject; preserveFocus: boolean; }): Promise; private setCallStackFrames; /** * Collapses all displayed stack frames. */ collapseStack(): void; private getCallFrames; private prepareTopFrame; private layoutContentWidgets; private populateFloatingClick; onLayoutBody(height: number, width: number): void; onWidth(width: number): void; }