struct LSP::Message::Hover::Result
- LSP::Message::Hover::Result
- Struct
- Value
- Object
Overview
TODO allow null result when nothing to show
Included Modules
- JSON::Serializable
Defined in:
lsp/message.crConstructors
- .new(pull : JSON::PullParser)
- .new(contents : LSP::Data::MarkupContent = Data::MarkupContent.new, range : LSP::Data::Range | Nil = nil)
Instance Method Summary
-
#contents : Data::MarkupContent
The hover's content
-
#contents=(contents : Data::MarkupContent)
The hover's content
-
#range : Data::Range | Nil
An optional range is a range inside a text document that is used to visualize a hover, e.g.
-
#range=(range : Data::Range | Nil)
An optional range is a range inside a text document that is used to visualize a hover, e.g.
Constructor Detail
def self.new(contents : LSP::Data::MarkupContent = Data::MarkupContent.new, range : LSP::Data::Range | Nil = nil)
#
Instance Method Detail
def range : Data::Range | Nil
#
An optional range is a range inside a text document that is used to visualize a hover, e.g. by changing the background color.
def range=(range : Data::Range | Nil)
#
An optional range is a range inside a text document that is used to visualize a hover, e.g. by changing the background color.