Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DocumentColorProvider

The document color provider defines the contract between extensions and feature of picking and modifying colors in the editor.

Hierarchy

  • DocumentColorProvider

Index

Methods(2)

provideDocumentColors

provideColorPresentations

  • Provide representations for a color.

    Parameters

    • color: Color

      The color to show and insert.

    • context: { document: TextDocument; range: Range }

      A context object with additional information

      • Readonly document: TextDocument

        The text document that contains the color

      • Readonly range: Range

        The range in the document where the color is located.

    • token: CancellationToken

      A cancellation token.

    Returns ProviderResult<ColorPresentation[]>

    An array of color presentations or a thenable that resolves to such. The lack of a result can be signaled by returning undefined, null, or an empty array.

Generated by TypeDoc. Maintained by 洛竹