class LSProtocol::AnnotatedTextEdit

Overview

A special text edit with an additional change annotation.

@since 3.16.0.

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(annotation_id : ChangeAnnotationIdentifier | Nil, new_text : String | Nil, range : Range | Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def annotation_id : ChangeAnnotationIdentifier #

The actual identifier of the change annotation


[View source]
def new_text : String #

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


[View source]
def range : Range #

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


[View source]