class LSProtocol::InlineCompletionContext
- LSProtocol::InlineCompletionContext
- Reference
- Object
Overview
Provides information about the context in which an inline completion was requested.
@since 3.18.0 @proposed
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(trigger_kind : InlineCompletionTriggerKind | Nil, selected_completion_info : SelectedCompletionInfo | Nil = nil)
Instance Method Summary
-
#selected_completion_info : SelectedCompletionInfo | Nil
Provides information about the currently selected item in the autocomplete widget if it is visible.
-
#trigger_kind : InlineCompletionTriggerKind
Describes how the inline completion was triggered.
Constructor Detail
def self.new(trigger_kind : InlineCompletionTriggerKind | Nil, selected_completion_info : SelectedCompletionInfo | Nil = nil)
#
Instance Method Detail
def selected_completion_info : SelectedCompletionInfo | Nil
#
Provides information about the currently selected item in the autocomplete widget if it is visible.