use of org.eclipse.che.api.languageserver.shared.lsapi.CompletionItemDTO in project che by eclipse.
the class LanguageServerCodeAssistProcessor method computeProposals.
private void computeProposals(String currentWord, int offset, CodeAssistCallback callback) {
List<CompletionProposal> proposals = newArrayList();
for (CompletionItemDTO item : latestCompletionResult.getCompletionList().getItems()) {
List<Match> highlights = filter(currentWord, item);
if (highlights != null) {
proposals.add(new CompletionItemBasedCompletionProposal(item, documentServiceClient, latestCompletionResult.getDocumentId(), resources, imageProvider.getIcon(item.getKind()), serverCapabilities, highlights, offset));
}
}
callback.proposalComputed(proposals);
}
Aggregations