Class missing_open_braceCodeAction
java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.codeaction.missing_open_braceCodeAction
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoCodeAction(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{(and optionally closing}) brace after the element or attribute name.
-
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{(and optionally closing}) brace after the element or attribute name.- Specified by:
doCodeActionin interfaceIRNCCodeActionParticipant
-