java.lang.Object
com.github._1c_syntax.bsl.languageserver.providers.ColorProvider

@Component public class ColorProvider extends Object
Провайдер, обрабатывающий запросы textDocument/documentColor и textDocument/colorPresentation.
See Also:
  • Constructor Details

  • Method Details

    • getDocumentColor

      public List<ColorInformation> getDocumentColor(DocumentContext documentContext)
      Получение данных о ColorInformation в документе.
      Parameters:
      documentContext - Контекст документа.
      Returns:
      Список найденных мест с использованием элементов цвета.
    • getColorPresentation

      public List<ColorPresentation> getColorPresentation(DocumentContext documentContext, ColorPresentationParams params)
      Получение данных о ColorPresentation в документе.
      Parameters:
      documentContext - Контекст документа.
      params - Параметры вызова.
      Returns:
      Список представлений элемента цвета.