struct LSP::CompletionItem

Included Modules

Defined in:

base/completion_item.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

[View source]

Instance Method Detail

def additional_text_edits : Array(TextEdit) | Nil #

[View source]
def additional_text_edits=(additional_text_edits : Array(TextEdit) | Nil) #

[View source]
def command : Command | Nil #

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.


[View source]
def command=(command : Command | Nil) #

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.


[View source]
def commit_characters : Array(String) | Nil #

[View source]
def commit_characters=(commit_characters : Array(String) | Nil) #

[View source]
def data : JSON::Any | Nil #

[View source]
def data=(data : JSON::Any | Nil) #

[View source]
def detail : String | Nil #

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


[View source]
def detail=(detail : String | Nil) #

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


[View source]
def documentation : String | MarkupContent | Nil #

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


[View source]
def documentation=(documentation : String | MarkupContent | Nil) #

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


[View source]
def filter_text : String | Nil #

[View source]
def filter_text=(filter_text : String | Nil) #

[View source]
def insert_text : String | Nil #

[View source]
def insert_text=(insert_text : String | Nil) #

[View source]
def insert_text_format : InsertTextFormat | Nil #

[View source]
def insert_text_format=(insert_text_format : InsertTextFormat | Nil) #

[View source]
def kind : CompletionItemKind | Nil #

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.


[View source]
def kind=(kind : CompletionItemKind | Nil) #

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.


[View source]
def label : String #

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


[View source]
def label=(label : String) #

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


[View source]
def preselect : Bool | Nil #

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.


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

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.


[View source]
def sort_text : String | Nil #

[View source]
def sort_text=(sort_text : String | Nil) #

[View source]
def tags : Array(CompletionItemTag) | Nil #

Tags for this completion item.


[View source]
def tags=(tags : Array(CompletionItemTag) | Nil) #

Tags for this completion item.


[View source]
def text_edit : TextEdit | Nil #

[View source]
def text_edit=(text_edit : TextEdit | Nil) #

[View source]