Sha256: 70fad5fd0d045f3926a7cf1b34e7fd16b8c9692877f882806f8c05791684c58d
Contents?: true
Size: 875 Bytes
Versions: 7
Compression:
Stored size: 875 Bytes
Contents
module LanguageServer module Protocol module Interfaces class DidSaveTextDocumentParams def initialize(text_document:, text: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:text] = text if text @attributes.freeze end # # The document that was saved. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # Optional the content when saved. Depends on the includeText value # when the save notifcation was requested. # # @return [string] def text attributes.fetch(:text) end attr_reader :attributes def to_json(*args) attributes.to_json(*args) end end end end end
Version data entries
7 entries across 7 versions & 2 rubygems