struct

LSP::TextDocumentContentChangeEvent

Inherits JSON::Serializable < Struct < Value < Object

An event describing a change to a text document. If only a text is provided it is considered to be the full content of the document.

Constructors

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

Instance methods

range

The range of the document that changed.

Source
range=(range : Range | Nil)

The range of the document that changed.

Source
range_length

The optional length of the range that got replaced.

@deprecated use range instead.

Source
range_length=(range_length : UInt32 | Nil)

The optional length of the range that got replaced.

@deprecated use range instead.

Source
text

The new text of the whole document.

Source
text=(text : String)

The new text of the whole document.

Source