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
- #insert_text : String | StringValue
-
#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.