Skip to content

Commit

Permalink
Handle errors coming from LS responses for completion items
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Jul 18, 2024
1 parent 0e16bf1 commit ed01fc9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int
if (isIncomplete) {
anyIncomplete.set(true);
}
}).exceptionally(t -> {
LanguageServerPlugin.logError("'%s' LS failed to compute completion items.".formatted(w.serverDefinition.label), t); //$NON-NLS-1$
return null;
}));
cancellationSupport.execute(completionLanguageServersFuture);
this.cancellationSupport = cancellationSupport;
Expand Down

0 comments on commit ed01fc9

Please sign in to comment.