class

LSProtocol::CodeActionKindDocumentation

Inherits JSON::Serializable / Reference / Object

Documentation for a class of code actions.

@since 3.18.0 @proposed

Constructors

new(command : Command | Nil, kind : CodeActionKind | String | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

command

Command that is ued to display the documentation to the user.

The title of this documentation code action is taken from Command#title

Source
kind

The kind of the code action being documented.

If the kind is generic, such as CodeActionKind.Refactor, the documentation will be shown whenever any refactorings are returned. If the kind if more specific, such as CodeActionKind.RefactorExtract, the documentation will only be shown when extract refactoring code actions are returned.

Source