class LSProtocol::SignatureHelpContext

Overview

Additional information about the context in which a signature help request was triggered.

@since 3.15.0

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(is_retrigger : Bool | Nil, trigger_kind : SignatureHelpTriggerKind | Nil, active_signature_help : SignatureHelp | Nil = nil, trigger_character : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def active_signature_help : SignatureHelp | Nil #

The currently active SignatureHelp.

The activeSignatureHelp has its SignatureHelp.activeSignature field updated based on the user navigating through available signatures.


[View source]
def is_retrigger : Bool #

true if signature help was already showing when it was triggered.

Retriggers occurs when the signature help is already active and can be caused by actions such as typing a trigger character, a cursor move, or document content changes.


[View source]
def trigger_character : String | Nil #

Character that caused signature help to be triggered.

This is undefined when triggerKind !== SignatureHelpTriggerKind.TriggerCharacter


[View source]
def trigger_kind : SignatureHelpTriggerKind #

Action that caused signature help to be triggered.


[View source]