class LSProtocol::Hover

Overview

The result of a hover request.

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(contents : Array(MarkedString) | MarkedString | MarkupContent | Nil, range : Range | Nil = nil) #

[View source]

Instance Method Detail

def contents : Array(MarkedString) | MarkedString | MarkupContent #

The hover's content


[View source]
def range : Range | Nil #

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


[View source]