class LSProtocol::ClientCompletionItemOptions

Overview

@since 3.18.0

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(commit_characters_support : Bool | Nil = nil, deprecated_support : Bool | Nil = nil, documentation_format : Array(MarkupKind) | Nil = nil, insert_replace_support : Bool | Nil = nil, insert_text_mode_support : ClientCompletionItemInsertTextModeOptions | Nil = nil, label_details_support : Bool | Nil = nil, preselect_support : Bool | Nil = nil, resolve_support : ClientCompletionItemResolveOptions | Nil = nil, snippet_support : Bool | Nil = nil, tag_support : CompletionItemTagOptions | Nil = nil) #

[View source]

Instance Method Detail

def 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 documentation_format : Array(MarkupKind) | Nil #

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


[View source]
def insert_replace_support : Bool | Nil #

Client support insert replace edit to control different behavior if a completion item is inserted in the text or should replace text.

@since 3.16.0


[View source]
def insert_text_mode_support : ClientCompletionItemInsertTextModeOptions | Nil #

The client supports the insertTextMode property on a completion item to override the whitespace handling mode as defined by the client (see insertTextMode).

@since 3.16.0


[View source]
def label_details_support : Bool | Nil #

The client has support for completion item label details (see also CompletionItemLabelDetails).

@since 3.17.0


[View source]
def preselect_support : Bool | Nil #

Client supports the preselect property on a completion item.


[View source]
def resolve_support : ClientCompletionItemResolveOptions | Nil #

Indicates which properties a client can resolve lazily on a completion item. Before version 3.16.0 only the predefined properties documentation and details could be resolved lazily.

@since 3.16.0


[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 tag_support : CompletionItemTagOptions | 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.

@since 3.15.0


[View source]