class LSProtocol::InlayHintLabelPart
- LSProtocol::InlayHintLabelPart
- Reference
- Object
Overview
An inlay hint label part allows for interactive and composite labels of inlay hints.
@since 3.17.0
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(value : String | Nil, command : Command | Nil = nil, location : Location | Nil = nil, tooltip : MarkupContent | String | Nil = nil)
Instance Method Summary
-
#command : Command | Nil
An optional command for this label part.
-
#location : Location | Nil
An optional source code location that represents this label part.
-
#tooltip : MarkupContent | String | Nil
The tooltip text when you hover over this label part.
-
#value : String
The value of this label part.
Constructor Detail
Instance Method Detail
An optional command for this label part.
Depending on the client capability inlayHint.resolveSupport
clients
might resolve this property late using the resolve request.
An optional source code location that represents this label part.
The editor will use this location for the hover and for code navigation features: This part will become a clickable link that resolves to the definition of the symbol at the given location (not necessarily the location itself), it shows the hover that shows at the given location, and it shows a context menu with further code navigation commands.
Depending on the client capability inlayHint.resolveSupport
clients
might resolve this property late using the resolve request.
The tooltip text when you hover over this label part. Depending on
the client capability inlayHint.resolveSupport
clients might resolve
this property late using the resolve request.