class LSProtocol::ParameterInformation
- LSProtocol::ParameterInformation
- Reference
- Object
Overview
Represents a parameter of a callable-signature. A parameter can have a label and a doc-comment.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(label : Array(UInt32) | String | Nil, documentation : MarkupContent | String | Nil = nil)
Instance Method Summary
-
#documentation : MarkupContent | String | Nil
The human-readable doc-comment of this parameter.
-
#label : Array(UInt32) | String
The label of this parameter information.
Constructor Detail
Instance Method Detail
The human-readable doc-comment of this parameter. Will be shown in the UI but can be omitted.
The label of this parameter information.
Either a string or an inclusive start and exclusive end offsets within its containing
signature label. (see SignatureInformation.label). The offsets are based on a UTF-16
string representation as Position
and Range
does.
To avoid ambiguities a server should use the [start, end] offset value instead of using
a substring. Whether a client support this is controlled via labelOffsetSupport
client
capability.
Note: a label of type string should be a substring of its containing signature label.
Its intended use case is to highlight the parameter label part in the SignatureInformation.label
.