Class missing_open_braceCodeAction

java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.codeaction.missing_open_braceCodeAction
All Implemented Interfaces:
IRNCCodeActionParticipant

public class missing_open_braceCodeAction extends Object implements IRNCCodeActionParticipant
Code action for the missing-open-brace error — inserts { after an element or attribute name that is missing its body block.

If the remaining text after the name already contains an unmatched }, only the opening brace is inserted. Otherwise both braces are inserted.

  • Constructor Details

    • missing_open_braceCodeAction

      public missing_open_braceCodeAction()
  • Method Details

    • doCodeAction

      public void doCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.TextDocumentItem document, boolean snippetSupported, List<org.eclipse.lsp4j.CodeAction> codeActions, IRNCDocumentProvider documentProvider, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
      Inserts an opening &#123; (and optionally closing &#125;) brace after the element or attribute name.
      Specified by:
      doCodeAction in interface IRNCCodeActionParticipant