import { IHighlight } from "../../../../base/browser/ui/highlightedlabel/highlightedLabel.js"; import { IDisposable } from "../../../../base/common/lifecycle.js"; import { ICommandService } from "../../../../platform/commands/common/commands.service.js"; import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js"; import { IHoverService } from "../../../../platform/hover/browser/hover.service.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { IDebugSession, IExpressionValue } from "../common/debug.js"; import { Variable } from "../common/debugModel.js"; import { IVariableTemplateData } from "./baseDebugView.js"; export interface IValueHoverOptions { /** Commands to show in the hover footer. */ commands?: { id: string; args: unknown[]; }[]; } export interface IRenderValueOptions { showChanged?: boolean; maxValueLength?: number; /** If not false, a rich hover will be shown on the element. */ hover?: false | IValueHoverOptions; colorize?: boolean; highlights?: IHighlight[]; /** * Indicates areas where VS Code implicitly always supported ANSI escape * sequences. These should be rendered as ANSI when the DA does not specify * any value of `supportsANSIStyling`. * @deprecated */ wasANSI?: boolean; session?: IDebugSession; locationReference?: number; } export interface IRenderVariableOptions { showChanged?: boolean; highlights?: IHighlight[]; } export declare class DebugExpressionRenderer { private readonly commandService; private readonly hoverService; private displayType; private readonly linkDetector; constructor(commandService: ICommandService, configurationService: IConfigurationService, instantiationService: IInstantiationService, hoverService: IHoverService); renderVariable(data: IVariableTemplateData, variable: Variable, options?: IRenderVariableOptions): IDisposable; renderValue(container: HTMLElement, expressionOrValue: IExpressionValue | string, options?: IRenderValueOptions): IDisposable; }