class LSProtocol::Hover
- LSProtocol::Hover
- Reference
- Object
Overview
The result of a hover request.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(contents : Array(MarkedString) | MarkedString | MarkupContent | Nil, range : Range | Nil = nil)
Instance Method Summary
-
#contents : Array(MarkedString) | MarkedString | MarkupContent
The hover's content
-
#range : Range | Nil
An optional range inside the text document that is used to visualize the hover, e.g.
Constructor Detail
def self.new(contents : Array(MarkedString) | MarkedString | MarkupContent | Nil, range : Range | Nil = nil)
#
Instance Method Detail
The hover's content
An optional range inside the text document that is used to visualize the hover, e.g. by changing the background color.