class

LSProtocol::InlineCompletionItem

Inherits JSON::Serializable / Reference / Object

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

@since 3.18.0 @proposed

Constructors

new(pull : JSON::PullParser)
Source
new(insert_text : String | StringValue | Nil, command : Command | Nil = nil, filter_text : String | Nil = nil, range : Range | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

command

An optional Command that is executed after inserting this completion.

Source
filter_text

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

Source
insert_text

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

Source
range

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

Source