class

LSProtocol::DocumentHighlight

Inherits JSON::Serializable / Reference / Object

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.

Constructors

new(pull : JSON::PullParser)
Source
new(range : Range | Nil, kind : DocumentHighlightKind | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

kind

The highlight kind, default is DocumentHighlightKind#Text.

Source
range

The range this highlight applies to.

Source