Class ExtractStructureConstructorSupplier

java.lang.Object
com.github._1c_syntax.bsl.languageserver.codeactions.ExtractStructureConstructorSupplier
All Implemented Interfaces:
CodeActionSupplier

@Component public class ExtractStructureConstructorSupplier extends Object implements CodeActionSupplier
Поставщик code action для извлечения конструктора структуры.

Преобразует явную инициализацию полей структуры в вызов конструктора с параметрами.

  • Constructor Details

  • Method Details

    • getCodeActions

      public List<CodeAction> getCodeActions(CodeActionParams params, DocumentContext documentContext)
      Description copied from interface: CodeActionSupplier
      Получить список code actions для указанного диапазона в документе.
      Specified by:
      getCodeActions in interface CodeActionSupplier
      Parameters:
      params - Параметры запроса code action
      documentContext - Контекст документа
      Returns:
      Список доступных code actions