class

LSProtocol::SignatureHelpContext

Inherits JSON::Serializable / Reference / Object

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

@since 3.15.0

Constructors

new(is_retrigger : Bool | Nil, trigger_kind : SignatureHelpTriggerKind | Nil, active_signature_help : SignatureHelp | Nil = nil, trigger_character : String | Nil = nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

active_signature_help

The currently active SignatureHelp.

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

Source
is_retrigger

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.

Source
trigger_character

Character that caused signature help to be triggered.

This is undefined when triggerKind !== SignatureHelpTriggerKind.TriggerCharacter

Source
trigger_kind

Action that caused signature help to be triggered.

Source