Interface ColorProviderMiddleware

interface ColorProviderMiddleware {
    provideColorPresentations?: (
        this: void,
        color: Color,
        context: { document: TextDocument; range: Range },
        token: CancellationToken,
        next: ProvideColorPresentationSignature,
    ) => ProviderResult<ColorPresentation[]>;
    provideDocumentColors?: (
        this: void,
        document: TextDocument,
        token: CancellationToken,
        next: ProvideDocumentColorsSignature,
    ) => ProviderResult<ColorInformation[]>;
}

Properties

provideColorPresentations?: (
    this: void,
    color: Color,
    context: { document: TextDocument; range: Range },
    token: CancellationToken,
    next: ProvideColorPresentationSignature,
) => ProviderResult<ColorPresentation[]>
provideDocumentColors?: (
    this: void,
    document: TextDocument,
    token: CancellationToken,
    next: ProvideDocumentColorsSignature,
) => ProviderResult<ColorInformation[]>