struct

LSP::Message::Hover::Result

Inherits JSON::Serializable < Struct < Value < Object

TODO: allow null result when nothing to show

Constructors

new(pull : JSON::PullParser)
Source
new(contents : LSP::Data::MarkupContent = Data::MarkupContent.new, range : LSP::Data::Range | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

contents

The hover's content

Source
contents=(contents : Data::MarkupContent)

The hover's content

Source
range

An optional range is a range inside a text document that is used to visualize a hover, e.g. by changing the background color.

Source
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.

Source