Sha256: 577c684f7b120260480d4fd3a25a53c543cf45719f6ce07b42472c8aedcee18e
Contents?: true
Size: 1.05 KB
Versions: 7
Compression:
Stored size: 1.05 KB
Contents
module LanguageServer module Protocol module Interfaces class WorkspaceEdit def initialize(changes: nil, document_changes: nil) @attributes = {} @attributes[:changes] = changes if changes @attributes[:documentChanges] = document_changes if document_changes @attributes.freeze end # # Holds changes to existing resources. # # @return [{ [uri: string]: TextEdit[]; }] def changes attributes.fetch(:changes) end # # An array of `TextDocumentEdit`s to express changes to specific a specific # version of a text document. Whether a client supports versioned document # edits is expressed via `WorkspaceClientCapabilites.versionedWorkspaceEdit`. # # @return [TextDocumentEdit[]] def document_changes attributes.fetch(:documentChanges) 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