vscode-java: Autocompletion sometimes not working for method reference

Environment

  • Operating System: Windows 10 Build 18362
  • JDK version: 12
  • Visual Studio Code version: 1.37.1
  • Java extension version: 0.47.0
Steps To Reproduce
  1. Pick a suggested method by hitting enter
  2. Try to get a list of suggested method references
Current Result

result

Expected Result

If forEach( gets written out manually (without hitting enter on the autocomplete suggestion), autocompletion for method references works. expected

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@snjeza @fbricon any news around this issue? To be honest, it has become very difficult to use “method reference” in VSCode as autocomplete breaks in the whole chain once a method reference is used:

return request.bodyToMono(type)
  .map(validator::validate) // <---- After this, autocomplete will not work. After the `;` it works again
  .flatMapMany(Flux::fromIterable)
  .map(this::errorToMessageKey)
  .map(I18n.with(request.exchange())::get)
  .collectList()
  .filter(not(List::isEmpty))
  .flatMap(unprocessableEntity()::bodyValue);

I hope this can be fixed soon. Also, I’ll be happy to help out if you point me in the right direction. 🙂

@snjeza @fbricon this seems to be solved now! I think this can be closed, at least from my side 🙂

Closing it. Feel free to reopen if this issue is still not solved.