fix NPE in LSP4E when not submitting a predicate for server capabilities
This commit is contained in:
@@ -74,7 +74,7 @@ public class HighlightsCodeLensProvider extends AbstractCodeMiningProvider {
|
||||
IDocument document = viewer.getDocument();
|
||||
|
||||
return CompletableFuture.supplyAsync(() -> {
|
||||
List<LSPDocumentInfo> docInfos = LanguageServiceAccessor.getLSPDocumentInfosFor(document, null);
|
||||
List<LSPDocumentInfo> docInfos = LanguageServiceAccessor.getLSPDocumentInfosFor(document, (x) -> true);
|
||||
if (!docInfos.isEmpty()) {
|
||||
LSPDocumentInfo info = docInfos.get(0);
|
||||
HighlightParams highlights = STS4LanguageClientImpl.currentHighlights.get(info.getFileUri().toString());
|
||||
|
||||
Reference in New Issue
Block a user