Sha256: dd4ce1ca549149487ed26f7c8fe45ccc2f19d6510ba95a3ec40c0d41c052d898
Contents?: true
Size: 979 Bytes
Versions: 2
Compression:
Stored size: 979 Bytes
Contents
module LanguageServer module Protocol module Interface class DidChangeTextDocumentParams def initialize(text_document:, content_changes:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:contentChanges] = content_changes @attributes.freeze end # # The document that did change. The version number points # to the version after all provided content changes have # been applied. # # @return [VersionedTextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The actual content changes. # # @return [TextDocumentContentChangeEvent[]] def content_changes attributes.fetch(:contentChanges) end attr_reader :attributes def to_json(*args) attributes.to_json(*args) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems