Sha256: d6ec85491baa58475f533c982edd197be5784bfcd441bf8953754fd74315812d
Contents?: true
Size: 916 Bytes
Versions: 118
Compression:
Stored size: 916 Bytes
Contents
module LanguageServer module Protocol module Interface class ApplyWorkspaceEditParams def initialize(label: nil, edit:) @attributes = {} @attributes[:label] = label if label @attributes[:edit] = edit @attributes.freeze end # # An optional label of the workspace edit. This label is # presented in the user interface for example on an undo # stack to undo the workspace edit. # # @return [string] def label attributes.fetch(:label) end # # The edits to apply. # # @return [WorkspaceEdit] def edit attributes.fetch(:edit) 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
118 entries across 118 versions & 15 rubygems