Interface ICodeActionParticipant

    • Method Detail

      • 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.