/** * The workspace/applyEdit request is sent from the server to the client to modify resource on the client side. */ @JsonRequest("workspace/applyEdit") default CompletableFuture<ApplyWorkspaceEditResponse> applyEdit(ApplyWorkspaceEditParams params) { throw new UnsupportedOperationException(); }
public CompletableFuture<ApplyWorkspaceEditResponse> applyEdit(final ApplyWorkspaceEditParams params) { return this.noImpl3.applyEdit(params); }
/** * Sends a message to client to apply the given workspace edit. * This is available since LSP v3.0 should be used * only by checking the ClientCapabilities. * * @param edit */ public boolean applyWorkspaceEdit(WorkspaceEdit edit){ ApplyWorkspaceEditParams $ = new ApplyWorkspaceEditParams(); $.setEdit(edit); ApplyWorkspaceEditResponse response = client.applyEdit($).join(); return response.getApplied().booleanValue(); }