Interface DocumentColorProvider

Expand description

A provider of colors for editor models.

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[]>

Provide the string representations for a color.

§

provideDocumentColors(
    model: ITextModel,
    token: CancellationToken,
): ProviderResult<IColorInformation[]>

Provides the color ranges for a specific model.