class

LSProtocol::CompletionContext

Inherits JSON::Serializable / Reference / Object

Contains additional information about the context in which a completion request is triggered.

Constructors

new(pull : JSON::PullParser)
Source
new(trigger_kind : CompletionTriggerKind | Nil, trigger_character : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

trigger_character

The trigger character (a single character) that has trigger code complete. Is undefined if triggerKind !== CompletionTriggerKind.TriggerCharacter

Source
trigger_kind

How the completion was triggered.

Source