A CodeAction is the response for at least these two methods:
textDocument/codeAction: (Command | CodeAction)[] | null
codeAction/resolve: CodeAction
The codeAction/resolve specification states:
The request is sent from the client to the server to resolve additional information for a given code action. This is usually used to compute the edit property of a code action to avoid its unnecessary computation during the textDocument/codeAction request.
The CodeAction specification states:
A CodeAction must set either edit and/or a command
It seems that there is missing a part in the above description, clarifying that a CodeAction must set either edit and/or a command IF the method is codeAction/resolve.
A CodeAction is the response for at least these two methods:
textDocument/codeAction:(Command | CodeAction)[] | nullcodeAction/resolve:CodeActionThe
codeAction/resolvespecification states:The CodeAction specification states:
It seems that there is missing a part in the above description, clarifying that a CodeAction must set either
editand/or acommandIF the method iscodeAction/resolve.