public interface ICodeActionParticipant
| Modifier and Type | Method and 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. |
default ICodeActionResolvesParticipant |
getResolveCodeActionParticipant(String participantId)
Returns the codeAction resolver participant identified by the given
participantId and null otherwise. |
default void doCodeAction(ICodeActionRequest request, List<org.eclipse.lsp4j.CodeAction> codeActions, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws CancellationException
codeActions for the given
code action request request.request - the code action request.codeActions - list of code actions to fill.cancelChecker - the cancel checker.CancellationException - if the computation was cancelleddefault void doCodeActionUnconditional(ICodeActionRequest request, List<org.eclipse.lsp4j.CodeAction> codeActions, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws CancellationException
codeActions for the given
code action request request independently of diagnostic provided.request - the code action request.codeActions - list of code actions to fill.cancelChecker - the cancel checker.CancellationException - if the computation was cancelleddefault ICodeActionResolvesParticipant getResolveCodeActionParticipant(String participantId)
participantId and null otherwise.participantId - the code action resolver participant ID.participantId and null otherwise.Copyright © 2024. All rights reserved.