class LanguageServer::Protocol::Interface::CompletionContext


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

def initialize(trigger_kind:, trigger_character: nil)

def initialize(trigger_kind:, trigger_character: nil)
  @attributes = {}
  @attributes[:triggerKind] = trigger_kind
  @attributes[:triggerCharacter] = trigger_character if trigger_character
  @attributes.freeze
end

def to_hash

def to_hash
  attributes
end

def to_json(*args)

def to_json(*args)
  to_hash.to_json(*args)
end

def trigger_character

Returns:
  • (string) -
def trigger_character
  attributes.fetch(:triggerCharacter)
end

def trigger_kind

Returns:
  • (CompletionTriggerKind) -
def trigger_kind
  attributes.fetch(:triggerKind)
end