Class AbstractQuickFixSupplier
java.lang.Object
com.github._1c_syntax.bsl.languageserver.codeactions.AbstractQuickFixSupplier
- All Implemented Interfaces:
CodeActionSupplier
- Direct Known Subclasses:
FixAllCodeActionSupplier,QuickFixCodeActionSupplier
Абстрактный поставщик быстрых исправлений.
Базовый класс для реализации поставщиков quick fix, предоставляющий общую функциональность для создания code actions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCodeActions(CodeActionParams params, DocumentContext documentContext) Получить список code actions для указанного диапазона в документе.protected abstract Stream<CodeAction>processDiagnosticStream(Stream<Diagnostic> diagnosticStream, CodeActionParams params, DocumentContext documentContext)
-
Field Details
-
quickFixSupplier
-
-
Constructor Details
-
AbstractQuickFixSupplier
@ConstructorProperties("quickFixSupplier") public AbstractQuickFixSupplier(QuickFixSupplier quickFixSupplier)
-
-
Method Details
-
getCodeActions
Description copied from interface:CodeActionSupplierПолучить список code actions для указанного диапазона в документе.- Specified by:
getCodeActionsin interfaceCodeActionSupplier- Parameters:
params- Параметры запроса code actiondocumentContext- Контекст документа- Returns:
- Список доступных code actions
-
processDiagnosticStream
protected abstract Stream<CodeAction> processDiagnosticStream(Stream<Diagnostic> diagnosticStream, CodeActionParams params, DocumentContext documentContext)
-