struct LSP::TextDocumentClientCapabilities::CompletionClientCapabilities::CompletionItem

Included Modules

Defined in:

base/capabilities/text_document_client_capabilites.cr

Constructors

Instance Method Summary

Macros inherited from module JSON::Serializable

json_discriminator(field, mapping, *, default = nil) json_discriminator

Constructor Detail

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

[View source]
def self.new(**args) #

[View source]

Instance Method Detail

def commit_characters_support : Bool | Nil #

Client supports commit characters on a completion item.


[View source]
def commit_characters_support=(commit_characters_support : Bool | Nil) #

Client supports commit characters on a completion item.


[View source]
def deprecated_support : Bool | Nil #

Client supports the deprecated property on a completion item.


[View source]
def deprecated_support=(deprecated_support : Bool | Nil) #

Client supports the deprecated property on a completion item.


[View source]
def documentation_format : Array(MarkupKind) | Nil #

Client supports the follow content formats for the documentation property. The order describes the preferred format of the client.


[View source]
def documentation_format=(documentation_format : Array(MarkupKind) | Nil) #

Client supports the follow content formats for the documentation property. The order describes the preferred format of the client.


[View source]
def preselect_support : Bool | Nil #

Client supports the preselect property on a completion item.


[View source]
def preselect_support=(preselect_support : Bool | Nil) #

Client supports the preselect property on a completion item.


[View source]
def snippet_support : Bool | Nil #

Client supports snippets as insert text.

A snippet can define tab stops and placeholders with $1, $2 and ${3:foo}. $0 defines the final tab stop, it defaults to the end of the snippet. Placeholders with equal identifiers are linked, that is typing in one will update others too.


[View source]
def snippet_support=(snippet_support : Bool | Nil) #

Client supports snippets as insert text.

A snippet can define tab stops and placeholders with $1, $2 and ${3:foo}. $0 defines the final tab stop, it defaults to the end of the snippet. Placeholders with equal identifiers are linked, that is typing in one will update others too.


[View source]
def tag_support : TagSupport | Nil #

Client supports the tag property on a completion item. Clients supporting tags have to handle unknown tags gracefully. Clients especially need to preserve unknown tags when sending a completion item back to the server in a resolve call.


[View source]
def tag_support=(tag_support : TagSupport | Nil) #

Client supports the tag property on a completion item. Clients supporting tags have to handle unknown tags gracefully. Clients especially need to preserve unknown tags when sending a completion item back to the server in a resolve call.


[View source]