class LSProtocol::InlineCompletionItem

Overview

An inline completion item represents a text snippet that is proposed inline to complete text that is being typed.

@since 3.18.0 @proposed

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(insert_text : String | StringValue | Nil, command : Command | Nil = nil, filter_text : String | Nil = nil, range : Range | Nil = nil) #

[View source]

Instance Method Detail

def command : Command | Nil #

An optional Command that is executed after inserting this completion.


[View source]
def filter_text : String | Nil #

A text that is used to decide if this inline completion should be shown. When falsy the InlineCompletionItem#insertText is used.


[View source]
def insert_text : String | StringValue #

The text to replace the range with. Must be set.


[View source]
def range : Range | Nil #

The range to replace. Must begin and end on the same line.


[View source]