class LanguageServer::Protocol::Interface::AnnotatedTextEdit


A special text edit with an additional change annotation.

def annotation_id

Returns:
  • (string) -
def annotation_id
  attributes.fetch(:annotationId)
end

def initialize(range:, new_text:, annotation_id:)

def initialize(range:, new_text:, annotation_id:)
  @attributes = {}
  @attributes[:range] = range
  @attributes[:newText] = new_text
  @attributes[:annotationId] = annotation_id
  @attributes.freeze
end

def new_text

Returns:
  • (string) -
def new_text
  attributes.fetch(:newText)
end

def range

Returns:
  • (Range) -
def range
  attributes.fetch(:range)
end

def to_hash

def to_hash
  attributes
end

def to_json(*args)

def to_json(*args)
  to_hash.to_json(*args)
end