View Source GenLSP.Structures.ApplyWorkspaceEditResult (gen_lsp v0.10.0)

The result returned from the apply workspace edit request.

@since 3.17 renamed from ApplyWorkspaceEditResponse

Link to this section Summary

Functions

Fields

  • applied: Indicates whether the edit was applied or not.
  • failure_reason: 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.
  • failed_change: 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.

Link to this section Types

@type t() :: %GenLSP.Structures.ApplyWorkspaceEditResult{
  applied: boolean(),
  failed_change: GenLSP.BaseTypes.uinteger() | nil,
  failure_reason: String.t() | nil
}

Link to this section Functions

Link to this function

%GenLSP.Structures.ApplyWorkspaceEditResult{}

View Source (struct)

fields

Fields

  • applied: Indicates whether the edit was applied or not.
  • failure_reason: 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.
  • failed_change: 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.