struct LSP::Message::Hover::Result

Overview

TODO allow null result when nothing to show

Included Modules

Defined in:

lsp/message.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

[View source]

Instance Method Detail

def contents : Data::MarkupContent #

The hover's content


[View source]
def contents=(contents : Data::MarkupContent) #

The hover's content


[View source]
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.


[View source]
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.


[View source]