Skip to content

Commit bc2b823

Browse files
authored
fix: do not propagate the CancellationException if the feature has been (#1242)
cancelled
1 parent 8ef4039 commit bc2b823

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/completion/LSContentAssistProcessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int
175175
this.errorMessage = createErrorMessage(offset, e);
176176
Thread.currentThread().interrupt();
177177
return createErrorProposal(offset, e);
178+
} catch (CancellationException e) {
179+
// return the elements already collected, if any
178180
}
179181

180182
final var completeProposals = new ArrayList<LSCompletionProposal>();

0 commit comments

Comments
 (0)