From 81d8c364507acabe88e3d4761d3d86eda4071a5e Mon Sep 17 00:00:00 2001 From: azerr Date: Thu, 5 Oct 2023 18:58:34 +0200 Subject: [PATCH] fix: Deadlock with IDEA EAP 2023-3 EAP Fixes #1192 Signed-off-by: azerr --- .../intellij/lsp4ij/internal/PromiseToCompletableFuture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/redhat/devtools/intellij/lsp4ij/internal/PromiseToCompletableFuture.java b/src/main/java/com/redhat/devtools/intellij/lsp4ij/internal/PromiseToCompletableFuture.java index cc293b508..9f830956b 100644 --- a/src/main/java/com/redhat/devtools/intellij/lsp4ij/internal/PromiseToCompletableFuture.java +++ b/src/main/java/com/redhat/devtools/intellij/lsp4ij/internal/PromiseToCompletableFuture.java @@ -91,7 +91,7 @@ private void bind(CancellablePromise> promise) { promise.onError(ex -> { if (ex instanceof ProcessCanceledException || ex instanceof CancellationException) { // Case 2: cancel the completable future - this.cancel(true); + super.cancel(true); } else { // Other case..., mark the completable future as error this.completeExceptionally(ex);