Skip to content

Commit

Permalink
Filter out cancellation exception
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Jul 19, 2024
1 parent a3d0eda commit a523ea6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int
anyIncomplete.set(true);
}
}).exceptionally(t -> {
LanguageServerPlugin.logError("'%s' LS failed to compute completion items.".formatted(w.serverDefinition.label), t); //$NON-NLS-1$
if (!CancellationUtil.isRequestCancelledException(t)) {
LanguageServerPlugin.logError("'%s' LS failed to compute completion items.".formatted(w.serverDefinition.label), t); //$NON-NLS-1$
}
return null;
}));
cancellationSupport.execute(completionLanguageServersFuture);
Expand Down

0 comments on commit a523ea6

Please sign in to comment.