Skip to content

"CodeAction must set either edit and/or command" incomplete? #2023

@didrikmunther

Description

@didrikmunther

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions