class LSProtocol::DocumentHighlight

Overview

A document highlight is a range inside a text document which deserves special attention. Usually a document highlight is visualized by changing the background color of its range.

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(range : Range | Nil, kind : DocumentHighlightKind | Nil = nil) #

[View source]

Instance Method Detail

def kind : DocumentHighlightKind | Nil #

The highlight kind, default is DocumentHighlightKind#Text.


[View source]
def range : Range #

The range this highlight applies to.


[View source]