class

LSProtocol::InsertReplaceEdit

Inherits JSON::Serializable / Reference / Object

A special text edit to provide an insert and a replace operation.

@since 3.16.0

Constructors

new(insert : Range | Nil, new_text : String | Nil, replace : Range | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

insert

The range if the insert is requested

Source
new_text

The string to be inserted.

Source
replace

The range if the replace is requested.

Source