Class AutumnNavigationCodeActionSupplier
java.lang.Object
com.github._1c_syntax.bsl.languageserver.codeactions.AutumnNavigationCodeActionSupplier
- All Implemented Interfaces:
CodeActionSupplier
@Component
public class AutumnNavigationCodeActionSupplier
extends Object
implements CodeActionSupplier
Навигационные code action'ы по внедрению зависимостей «ОСени» — дополнение к линзам
(
InjectionPointCodeLensSupplier/BeanUsagesCodeLensSupplier) для вызова
с клавиатуры (Ctrl+. / Alt+Enter):
- курсор на точке внедрения (
&Пластилинна поле модуля или параметре конструктора) — переход к производителю желудя; - курсор на имени конструктора компонентного желудя или метода
&Завязь— показ точек внедрения производимого желудя.
AutumnNavigation, что и у линз; счётчики входят в заголовок
действия. kind не задаётся — действие навигационное, категории правок ему не подходят.-
Constructor Summary
ConstructorsConstructorDescriptionAutumnNavigationCodeActionSupplier(Resources resources, AutumnComponentInferencer componentInferencer, AutumnBeanIndex beanIndex, AutumnNavigation autumnNavigation, NavigationCommandBuilder navigationCommandBuilder) -
Method Summary
Modifier and TypeMethodDescriptiongetCodeActions(CodeActionParams params, DocumentContext documentContext) Получить список code actions для указанного диапазона в документе.
-
Constructor Details
-
Method Details
-
getCodeActions
Description copied from interface:CodeActionSupplierПолучить список code actions для указанного диапазона в документе.- Specified by:
getCodeActionsin interfaceCodeActionSupplier- Parameters:
params- Параметры запроса code actiondocumentContext- Контекст документа- Returns:
- Список доступных code actions
-