class LanguageServer::Protocol::Interface::ApplyWorkspaceEditResponse
Attributes
attributes[R]
Public Class Methods
new(applied:, failure_reason: nil, failed_change: nil)
click to toggle source
# File lib/language_server/protocol/interface/apply_workspace_edit_response.rb, line 5 def initialize(applied:, failure_reason: nil, failed_change: nil) @attributes = {} @attributes[:applied] = applied @attributes[:failureReason] = failure_reason if failure_reason @attributes[:failedChange] = failed_change if failed_change @attributes.freeze end
Public Instance Methods
applied()
click to toggle source
Indicates whether the edit was applied or not.
@return [boolean]
# File lib/language_server/protocol/interface/apply_workspace_edit_response.rb, line 19 def applied attributes.fetch(:applied) end
failed_change()
click to toggle source
Depending on the client's failure handling strategy `failedChange` might contain the index of the change that failed. This property is only available if the client signals a `failureHandlingStrategy` in its client capabilities.
@return [number]
# File lib/language_server/protocol/interface/apply_workspace_edit_response.rb, line 40 def failed_change attributes.fetch(:failedChange) end
failure_reason()
click to toggle source
An optional textual description for why the edit was not applied. This may be used by the server for diagnostic logging or to provide a suitable error for a request that triggered the edit.
@return [string]
# File lib/language_server/protocol/interface/apply_workspace_edit_response.rb, line 29 def failure_reason attributes.fetch(:failureReason) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/apply_workspace_edit_response.rb, line 46 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/apply_workspace_edit_response.rb, line 50 def to_json(*args) to_hash.to_json(*args) end