import { IHighlight } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/highlightedlabel/highlightedLabel"; import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { IDebugSession, IExpressionValue } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug"; 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; }