struct

LSP::Message::SignatureHelp::Result

Inherits JSON::Serializable < Struct < Value < Object

TODO: allow null result when nothing to show

Constructors

new(pull : JSON::PullParser)
Source
new(signatures : Array(LSP::Data::SignatureInformation) = [] of Data::SignatureInformation, active_signature : Int64 = 0_i64, active_parameter : Int64 = 0_i64)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

active_parameter

The active parameter of the active signature. If omitted or the value lies outside the range of signatures[activeSignature].parameters defaults to 0 if the active signature has parameters. If the active signature has no parameters it is ignored. In future version of the protocol this property might become mandatory to better express the active parameter if the active signature does have any.

Source
active_parameter=(active_parameter : Int64)

The active parameter of the active signature. If omitted or the value lies outside the range of signatures[activeSignature].parameters defaults to 0 if the active signature has parameters. If the active signature has no parameters it is ignored. In future version of the protocol this property might become mandatory to better express the active parameter if the active signature does have any.

Source
active_signature

The active signature. If omitted or the value lies outside the range of signatures the value defaults to zero or is ignored if signatures.length === 0. Whenever possible implementors should make an active decision about the active signature and shouldn't rely on a default value. In future version of the protocol this property might become mandatory to better express this.

Source
active_signature=(active_signature : Int64)

The active signature. If omitted or the value lies outside the range of signatures the value defaults to zero or is ignored if signatures.length === 0. Whenever possible implementors should make an active decision about the active signature and shouldn't rely on a default value. In future version of the protocol this property might become mandatory to better express this.

Source
signatures

One or more signatures.

Source
signatures=(signatures : Array(Data::SignatureInformation))

One or more signatures.

Source