Sha256: 04ae0d5bb87a8d5f2b56cb8b100672fc6f30f9725cc7a75776bd59da0cc834ab
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
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_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
language_server-protocol-0.5.0 | lib/language_server/protocol/interface/did_change_text_document_params.rb |