Interface DocumentColorProvider
Expand description
interface DocumentColorProvider {
provideColorPresentations(
model: ITextModel,
colorInfo: IColorInformation,
token: CancellationToken,
): ProviderResult<IColorPresentation[]>;
provideDocumentColors(
model: ITextModel,
token: CancellationToken,
): ProviderResult<IColorInformation[]>;
}Methods§
§provideColorPresentations(
model: ITextModel,
colorInfo: IColorInformation,
token: CancellationToken,
): ProviderResult<IColorPresentation[]>
provideColorPresentations(
model: ITextModel,
colorInfo: IColorInformation,
token: CancellationToken,
): ProviderResult<IColorPresentation[]>
Provide the string representations for a color.
§provideDocumentColors(
model: ITextModel,
token: CancellationToken,
): ProviderResult<IColorInformation[]>
provideDocumentColors(
model: ITextModel,
token: CancellationToken,
): ProviderResult<IColorInformation[]>
Provides the color ranges for a specific model.
A provider of colors for editor models.