Class: LSP::ApplyWorkspaceEditResponse
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface ApplyWorkspaceEditResponse
/**
* Indicates whether the edit was applied or not.
*/
applied: boolean;
/**
* 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.
*/
failureReason?: string;
/**
* 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.
*/
failedChange?: number;
Instance Attribute Summary collapse
-
#applied ⇒ Object
type: boolean # type: string # type: number.
-
#failedChange ⇒ Object
type: boolean # type: string # type: number.
-
#failureReason ⇒ Object
type: boolean # type: string # type: number.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ ApplyWorkspaceEditResponse
constructor
A new instance of ApplyWorkspaceEditResponse.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ ApplyWorkspaceEditResponse
Returns a new instance of ApplyWorkspaceEditResponse.
2767 2768 2769 2770 |
# File 'lib/lsp/lsp_protocol.rb', line 2767 def initialize(initial_hash = nil) super @optional_method_names = %i[failureReason failedChange] end |
Instance Attribute Details
#applied ⇒ Object
type: boolean # type: string # type: number
2765 2766 2767 |
# File 'lib/lsp/lsp_protocol.rb', line 2765 def applied @applied end |
#failedChange ⇒ Object
type: boolean # type: string # type: number
2765 2766 2767 |
# File 'lib/lsp/lsp_protocol.rb', line 2765 def failedChange @failedChange end |
#failureReason ⇒ Object
type: boolean # type: string # type: number
2765 2766 2767 |
# File 'lib/lsp/lsp_protocol.rb', line 2765 def failureReason @failureReason end |
Instance Method Details
#from_h!(value) ⇒ Object
2772 2773 2774 2775 2776 2777 2778 |
# File 'lib/lsp/lsp_protocol.rb', line 2772 def from_h!(value) value = {} if value.nil? self.applied = value['applied'] # Unknown type self.failureReason = value['failureReason'] self.failedChange = value['failedChange'] self end |