Class ApplyWorkspaceEditResponse

java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.ApplyWorkspaceEditResponse

public class ApplyWorkspaceEditResponse extends JSONBase
A response returned from the apply workspace edit request.
  • Method Details

    • isApplied

      public boolean isApplied()
      Indicates whether the edit was applied or not.
    • setApplied

      public ApplyWorkspaceEditResponse setApplied(boolean applied)
    • getFailureReason

      public String getFailureReason()
      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.
    • setFailureReason

      public ApplyWorkspaceEditResponse setFailureReason(String failureReason)
    • getFailedChange

      public Integer getFailedChange()
      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.
    • setFailedChange

      public ApplyWorkspaceEditResponse setFailedChange(Integer failedChange)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • create

      public static ApplyWorkspaceEditResponse create(Boolean applied)