Interface IRNCCodeActionParticipant

All Known Implementing Classes:
AbstractRNCInsertCodeAction, include_not_overridingCodeAction, missing_assignCodeAction, missing_nameCodeAction, missing_open_braceCodeAction, missing_patternCodeAction, missing_start_elementCodeAction, missing_uriCodeAction, unclosed_blockCodeAction, undefined_patternCodeAction

public interface IRNCCodeActionParticipant
Interface for RNC code action participants.

Each implementation provides quick fixes for a specific RNCErrorCode. Participants are registered in RNCCodeActions and invoked when the editor requests code actions for a diagnostic.

Use case: the user sees an error squiggle on an unclosed block and clicks the light bulb — the matching participant generates a "Add closing '}'" quick fix.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
  • Method Details

    • doCodeAction

      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)