import { Event } from "../../../base/common/event.js"; import { URI } from "../../../base/common/uri.js"; export declare enum Verbosity { SHORT = 0, MEDIUM = 1, LONG = 2 } export interface IFormatterChangeEvent { scheme: string; } export interface ResourceLabelFormatter { scheme: string; authority?: string; /** URI path used as a display home. Runtime registrations only. */ home?: string; priority?: boolean; formatting: ResourceLabelFormatting; } export interface ResourceLabelTemplateFormatter { /** URI home whose optional template parameters occupy an entire path segment, such as `/sessions/${sessionId}`. */ home: URI; /** Fires when state used by `formatting` changes and existing labels must be recomputed. */ onDidChangeFormatting: Event; /** Resolves formatting whose label is treated as literal text. */ formatting(context: ResourceLabelFormattingContext): ResourceLabelFormatting | undefined; } export interface ResourceLabelFormattingContext { readonly resource: URI; readonly home: URI; readonly parameters: ReadonlyMap; } export interface ResourceLabelFormatting { label: string; separator: "/" | "\\" | ""; tildify?: boolean; normalizeDriveLetter?: boolean; workspaceSuffix?: string; workspaceTooltip?: string; authorityPrefix?: string; stripPathStartingSeparator?: boolean; /** * Number of leading path segments to strip from `${path}` before * substitution. For example, a value of `2` turns * `/scheme/authority/rest/of/path` into `/rest/of/path`. */ stripPathSegments?: number; }