Immutable lifecycle value for LSP signature help.
The value owns response parsing, replacement, dismissal, and overload selection. MingaEditor.SignatureHelp.Presenter owns geometry.
Summary
Functions
Dismisses signature help.
Creates signature-help state from an LSP SignatureHelp response.
Cycles to the next signature overload.
Cycles to the previous signature overload.
Replaces any prior signature-help value with a fresh response value.
Types
A parsed parameter.
A parsed signature.
@type t() :: %MingaEditor.SignatureHelp{ active_parameter: non_neg_integer(), active_signature: non_neg_integer(), anchor_col: non_neg_integer(), anchor_row: non_neg_integer(), signatures: [signature()] }
Signature-help lifecycle value.
Functions
@spec dismiss(t() | nil) :: nil
Dismisses signature help.
@spec from_response(map(), non_neg_integer(), non_neg_integer()) :: t() | nil
Creates signature-help state from an LSP SignatureHelp response.
Cycles to the next signature overload.
Cycles to the previous signature overload.
Replaces any prior signature-help value with a fresh response value.