struct

LSP::Hover

Inherits JSON::Serializable < LSP::Initializer < Struct < Value < Object

The result of a hover request.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

contents

The hover's content

Source
contents=(contents : MarkedString | Array(MarkedString) | 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 : 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