class LSProtocol::InlineCompletionItem
- LSProtocol::InlineCompletionItem
- Reference
- Object
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
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(insert_text : String | StringValue | Nil, command : Command | Nil = nil, filter_text : String | Nil = nil, range : Range | Nil = nil)
Instance Method Summary
-
#command : Command | Nil
An optional
Command
that is executed after inserting this completion. -
#filter_text : String | Nil
A text that is used to decide if this inline completion should be shown.
-
#insert_text : String | StringValue
The text to replace the range with.
-
#range : Range | Nil
The range to replace.
Constructor Detail
def self.new(insert_text : String | StringValue | Nil, command : Command | Nil = nil, filter_text : String | Nil = nil, range : Range | Nil = nil)
#
Instance Method Detail
An optional Command
that is executed after inserting this completion.
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.