class LSProtocol::CodeActionClientCapabilities

Overview

The Client Capabilities of a CodeActionRequest.

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(code_action_literal_support : ClientCodeActionLiteralOptions | Nil = nil, data_support : Bool | Nil = nil, disabled_support : Bool | Nil = nil, documentation_support : Bool | Nil = nil, dynamic_registration : Bool | Nil = nil, honors_change_annotations : Bool | Nil = nil, is_preferred_support : Bool | Nil = nil, resolve_support : ClientCodeActionResolveOptions | Nil = nil, tag_support : CodeActionTagOptions | Nil = nil) #

[View source]

Instance Method Detail

def code_action_literal_support : ClientCodeActionLiteralOptions | Nil #

The client support code action literals of type CodeAction as a valid response of the textDocument/codeAction request. If the property is not set the request can only return Command literals.

@since 3.8.0


[View source]
def data_support : Bool | Nil #

Whether code action supports the data property which is preserved between a textDocument/codeAction and a codeAction/resolve request.

@since 3.16.0


[View source]
def disabled_support : Bool | Nil #

Whether code action supports the disabled property.

@since 3.16.0


[View source]
def documentation_support : Bool | Nil #

Whether the client supports documentation for a class of code actions.

@since 3.18.0 @proposed


[View source]
def dynamic_registration : Bool | Nil #

Whether code action supports dynamic registration.


[View source]
def honors_change_annotations : Bool | Nil #

Whether the client honors the change annotations in text edits and resource operations returned via the CodeAction#edit property by for example presenting the workspace edit in the user interface and asking for confirmation.

@since 3.16.0


[View source]
def is_preferred_support : Bool | Nil #

Whether code action supports the isPreferred property.

@since 3.15.0


[View source]
def resolve_support : ClientCodeActionResolveOptions | Nil #

Whether the client supports resolving additional code action properties via a separate codeAction/resolve request.

@since 3.16.0


[View source]
def tag_support : CodeActionTagOptions | Nil #

Client supports the tag property on a code action. Clients supporting tags have to handle unknown tags gracefully.

@since 3.18.0 - proposed


[View source]