class LSProtocol::ApplyWorkspaceEditResult
- LSProtocol::ApplyWorkspaceEditResult
- Reference
- Object
Overview
The result returned from the apply workspace edit request.
@since 3.17 renamed from ApplyWorkspaceEditResponse
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(applied : Bool | Nil, failed_change : UInt32 | Nil = nil, failure_reason : String | Nil = nil)
Instance Method Summary
-
#applied : Bool
Indicates whether the edit was applied or not.
-
#failed_change : UInt32 | Nil
Depending on the client's failure handling strategy
failedChange
might contain the index of the change that failed. -
#failure_reason : String | Nil
An optional textual description for why the edit was not applied.
Constructor Detail
def self.new(applied : Bool | Nil, failed_change : UInt32 | Nil = nil, failure_reason : String | Nil = nil)
#
Instance Method Detail
def failed_change : UInt32 | Nil
#
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.
def failure_reason : String | Nil
#
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.