class LanguageServer::Protocol::Interface::ApplyWorkspaceEditParams

Attributes

attributes[R]

Public Class Methods

new(label: nil, edit:) click to toggle source
# File lib/language_server/protocol/interface/apply_workspace_edit_params.rb, line 5
def initialize(label: nil, edit:)
  @attributes = {}

  @attributes[:label] = label if label
  @attributes[:edit] = edit

  @attributes.freeze
end

Public Instance Methods

edit() click to toggle source

The edits to apply.

@return [WorkspaceEdit]

# File lib/language_server/protocol/interface/apply_workspace_edit_params.rb, line 28
def edit
  attributes.fetch(:edit)
end
label() click to toggle source

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]

# File lib/language_server/protocol/interface/apply_workspace_edit_params.rb, line 20
def label
  attributes.fetch(:label)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/apply_workspace_edit_params.rb, line 34
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/apply_workspace_edit_params.rb, line 38
def to_json(*args)
  to_hash.to_json(*args)
end