The title of the code action.
Optional
kind: CodeActionKindThe kind of the code action.
Optional
commandA command this code action executes.
Optional
diagnosticsDiagnostics that this code action resolves.
Optional
disabledMarks that the code action cannot currently be applied.
Optional
editA workspace edit this code action performs.
Optional
isMarks this as a preferred action.
Optional
kindKind of the code action.
Used to filter code actions.
A short, human-readable, title for this code action.
A code action represents a change that can be performed in code, e.g. to fix a problem or to refactor code.
A CodeAction must set either
edit
and/or acommand
. If both are supplied, theedit
is applied first, then the command is executed.