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);