Class ColorProvider
java.lang.Object
com.github._1c_syntax.bsl.languageserver.providers.ColorProvider
Провайдер, обрабатывающий запросы
textDocument/documentColor
и textDocument/colorPresentation
.-
Constructor Summary
ConstructorDescriptionColorProvider
(List<ColorInformationSupplier> colorInformationSuppliers, List<ColorPresentationSupplier> colorPresentationSuppliers) -
Method Summary
Modifier and TypeMethodDescriptiongetColorPresentation
(DocumentContext documentContext, ColorPresentationParams params) Получение данных оColorPresentation
в документе.getDocumentColor
(DocumentContext documentContext) Получение данных оColorInformation
в документе.
-
Constructor Details
-
ColorProvider
@ConstructorProperties({"colorInformationSuppliers","colorPresentationSuppliers"}) public ColorProvider(List<ColorInformationSupplier> colorInformationSuppliers, List<ColorPresentationSupplier> colorPresentationSuppliers)
-
-
Method Details
-
getDocumentColor
Получение данных оColorInformation
в документе.- Parameters:
documentContext
- Контекст документа.- Returns:
- Список найденных мест с использованием элементов цвета.
-
getColorPresentation
public List<ColorPresentation> getColorPresentation(DocumentContext documentContext, ColorPresentationParams params) Получение данных оColorPresentation
в документе.- Parameters:
documentContext
- Контекст документа.params
- Параметры вызова.- Returns:
- Список представлений элемента цвета.
-