class LSProtocol::CompletionContext

Overview

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

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(trigger_kind : CompletionTriggerKind | Nil, trigger_character : String | Nil = nil) #

[View source]

Instance Method Detail

def trigger_character : String | Nil #

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


[View source]
def trigger_kind : CompletionTriggerKind #

How the completion was triggered.


[View source]