Add some logging to debug CTRL-click issue

This commit is contained in:
Kris De Volder
2019-08-02 11:03:53 -07:00
parent 3a03f3041d
commit 618a75e09c

View File

@@ -358,7 +358,6 @@ public class SimpleTextDocumentService implements TextDocumentService, DocumentE
@Override
public CompletableFuture<Either<List<? extends Location>, List<? extends LocationLink>>> definition(
TextDocumentPositionParams position) {
DefinitionHandler h = this.definitionHandler;
if (h != null) {
return async.invoke(() -> {
@@ -367,6 +366,7 @@ public class SimpleTextDocumentService implements TextDocumentService, DocumentE
// vscode client does not like to recieve null result. See: https://github.com/spring-projects/sts4/issues/309
locations = ImmutableList.of();
}
log.info("Found {} definitions", locations.size());
return Either.forLeft(locations);
});
}