class LSProtocol::AnnotatedTextEdit
- LSProtocol::AnnotatedTextEdit
- Reference
- Object
Overview
A special text edit with an additional change annotation.
@since 3.16.0.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(annotation_id : ChangeAnnotationIdentifier | Nil, new_text : String | Nil, range : Range | Nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#annotation_id : ChangeAnnotationIdentifier
The actual identifier of the change annotation
-
#new_text : String
The string to be inserted.
-
#range : Range
The range of the text document to be manipulated.
Constructor Detail
def self.new(annotation_id : ChangeAnnotationIdentifier | Nil, new_text : String | Nil, range : Range | Nil)
#
Instance Method Detail
The range of the text document to be manipulated. To insert text into a document create a range where start === end.