struct LSP::CompletionItem

Included Modules

Defined in:

base/completion_item.cr

Constructors

Instance Method Summary

Constructor Detail

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

def self.new(**args) #

Instance Method Detail

def additional_text_edits : Array(TextEdit)? #

def additional_text_edits=(additional_text_edits : Array(TextEdit)?) #

def command : Command? #

An optional command that is executed after inserting this completion. Note that additional modifications to the current document should be described with the additionalTextEdits-property.


def command=(command : Command?) #

An optional command that is executed after inserting this completion. Note that additional modifications to the current document should be described with the additionalTextEdits-property.


def commit_characters : Array(String)? #

def commit_characters=(commit_characters : Array(String)?) #

def data : JSON::Any? #

def data=(data : JSON::Any?) #

def detail : String? #

A human-readable string with additional information about this item, like type or symbol information.


def detail=(detail : String?) #

A human-readable string with additional information about this item, like type or symbol information.


def documentation : String | MarkupContent | Nil #

A human-readable string that represents a doc-comment.


def documentation=(documentation : String | MarkupContent | Nil) #

A human-readable string that represents a doc-comment.


def filter_text : String? #

def filter_text=(filter_text : String?) #

def insert_text : String? #

def insert_text=(insert_text : String?) #

def insert_text_format : InsertTextFormat? #

def insert_text_format=(insert_text_format : InsertTextFormat?) #

def kind : CompletionItemKind? #

The kind of this completion item. Based of the kind an icon is chosen by the editor. The standardized set of available values is defined in CompletionItemKind.


def kind=(kind : CompletionItemKind?) #

The kind of this completion item. Based of the kind an icon is chosen by the editor. The standardized set of available values is defined in CompletionItemKind.


def label : String #

The label of this completion item. By default also the text that is inserted when selecting this completion.


def label=(label : String) #

The label of this completion item. By default also the text that is inserted when selecting this completion.


def preselect : Bool? #

Select this item when showing. Note that only one completion item can be selected and that the tool / client decides which item that is. The rule is that the first item of those that match best is selected.


def preselect=(preselect : Bool?) #

Select this item when showing. Note that only one completion item can be selected and that the tool / client decides which item that is. The rule is that the first item of those that match best is selected.


def sort_text : String? #

def sort_text=(sort_text : String?) #

def tags : Array(CompletionItemTag)? #

Tags for this completion item.


def tags=(tags : Array(CompletionItemTag)?) #

Tags for this completion item.


def text_edit : TextEdit? #

def text_edit=(text_edit : TextEdit?) #