class

LSProtocol::AnnotatedTextEdit

Inherits JSON::Serializable / Reference / Object

A special text edit with an additional change annotation.

@since 3.16.0.

Constructors

new(annotation_id : ChangeAnnotationIdentifier | Nil, new_text : String | Nil, range : Range | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

annotation_id

The actual identifier of the change annotation

Source
new_text

The string to be inserted. For delete operations use an empty string.

Source
range

The range of the text document to be manipulated. To insert text into a document create a range where start === end.

Source