Interface ICodeActionParticipant

All Known Implementing Classes:
AbstractFixMissingGrammarCodeAction, any_name_except_contains_any_nameCodeAction, AttDefaultInvalidCodeAction, AttributeNotUniqueCodeAction, AttTypeRequiredInAttDefCodeAction, CloseTagCodeAction, ClosingQuoteMissingCodeAction, ContentIllegalInPrologCodeAction, ContentModelCloseParenCodeAction, ContentModelCodeActionParticipant, ContentSpecRequiredCodeAction, cvc_attribute_3CodeAction, cvc_complex_type_2_1CodeAction, cvc_complex_type_2_3CodeAction, cvc_complex_type_2_4_aCodeAction, cvc_complex_type_2_4_bCodeAction, cvc_complex_type_3_1CodeAction, cvc_complex_type_3_2_2CodeAction, cvc_complex_type_4CodeAction, cvc_elt_1_aCodeAction, cvc_enumeration_validCodeAction, cvc_type_3_1_1CodeAction, DashDashInCommentCodeAction, DoctypeNotAllowedCodeAction, DownloadDisabledResourceCodeAction, DTDNotFoundCodeAction, ElementDeclUnterminatedCodeAction, ElementUnterminatedCodeAction, EntityNotDeclaredCodeAction, EnumerationUnterminatedCodeAction, EqRequiredInAttributeCodeAction, ETagRequiredCodeAction, ETagUnterminatedCodeAction, expected_defineCodeAction, expected_patternCodeAction, ExternalIdCodeAction, ExternalIDorPublicIDRequiredCodeAction, FixMissingSpaceCodeAction, IDDefaultTypeInvalidCodeAction, InsertAttributeCodeAction, invalid_attribute_nameCodeAction, invalid_attribute_valueCodeAction, LessthanInAttValueCodeAction, MarkupEntityMismatchCodeAction, MinifyCodeActionParticipant, MixedContentUnterminatedCodeAction, MSG_ATTRIBUTE_NOT_DECLAREDCodeAction, MSG_ATTRIBUTE_VALUE_NOT_IN_LISTCodeAction, MSG_CONTENT_INCOMPLETECodeAction, MSG_CONTENT_INVALIDCodeAction, MSG_ELEMENT_NOT_DECLAREDCodeAction, MSG_FIXED_ATTVALUE_INVALIDCodeAction, MSG_MARKUP_NOT_RECOGNIZED_IN_DTDCodeAction, MSG_REQUIRED_ATTRIBUTE_NOT_SPECIFIEDCodeAction, no_attributes_allowedCodeAction, NoGrammarConstraintsCodeAction, NotationDeclTypeCodeAction, NotationNotDeclaredForEntityCodeAction, ns_name_except_contains_any_nameCodeAction, OpenQuoteExpectedCodeAction, out_of_context_elementCodeAction, QuoteRequiredInDeclCodeAction, RemoveAttributeCodeAction, RemoveDefaultOrFixedCodeAction, RemoveDTDDeclCodeAction, ReplaceAttributeValueCodeAction, ReplaceElementCodeAction, required_attribute_missingCodeAction, required_element_missingCodeAction, required_elements_missing_expectedCodeAction, RNGReplaceDatatypeCodeAction, RNGReplaceElementCodeAction, RootElementTypeMustMatchDoctypedeclCodeAction, s4s_elt_invalid_content_3CodeAction, schema_reference_4CodeAction, SemicolonRequiredInReferenceCodeAction, src_annotationCodeAction, src_import_1_2CodeAction, TargetNamespace_1CodeAction, TargetNamespace_2CodeAction, unknown_elementCodeAction, XMLDeclUnterminatedCodeAction

public interface ICodeActionParticipant
Code action participant API.
Author:
Angelo ZERR
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    doCodeAction(ICodeActionRequest request, List<org.eclipse.lsp4j.CodeAction> codeActions, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
    Collect the code action in the given codeActions for the given code action request request.
    default void
    doCodeActionUnconditional(ICodeActionRequest request, List<org.eclipse.lsp4j.CodeAction> codeActions, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
    Collect the code action in the given codeActions for the given code action request request independently of diagnostic provided.
    Returns the codeAction resolver participant identified by the given participantId and null otherwise.
  • Method Details

    • doCodeAction

      default void doCodeAction(ICodeActionRequest request, List<org.eclipse.lsp4j.CodeAction> codeActions, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws CancellationException
      Collect the code action in the given codeActions for the given code action request request.
      Parameters:
      request - the code action request.
      codeActions - list of code actions to fill.
      cancelChecker - the cancel checker.
      Throws:
      CancellationException - if the computation was cancelled
    • doCodeActionUnconditional

      default void doCodeActionUnconditional(ICodeActionRequest request, List<org.eclipse.lsp4j.CodeAction> codeActions, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws CancellationException
      Collect the code action in the given codeActions for the given code action request request independently of diagnostic provided.
      Parameters:
      request - the code action request.
      codeActions - list of code actions to fill.
      cancelChecker - the cancel checker.
      Throws:
      CancellationException - if the computation was cancelled
      Since:
      0.26
    • getResolveCodeActionParticipant

      default ICodeActionResolvesParticipant getResolveCodeActionParticipant(String participantId)
      Returns the codeAction resolver participant identified by the given participantId and null otherwise.
      Parameters:
      participantId - the code action resolver participant ID.
      Returns:
      the codeAction resolver participant identified by the given participantId and null otherwise.