Go to definition for protos
It would be great if there was some way to directly jump to the source proto file when hovering under a symbol generated from a proto.
This could be done by 'post processing' the code location returned by the language server. Generated proto classes usually have this comment at the top:
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: foo.proto
It shouldn't be too hard to take a symbol like Foo.barBaz, transform it into the proto name Foo.bar_baz, and then look for it in the file pointed to by the comment.
Is coc-java the right place for this, or should this go in a different layer of the stack? If I wanted to write a PR for this functionality, where would I start?
:h CocAction('definitionHover') it requires server returns definitionLink for definition request
Another problem is coc.nvim doesn't support parse location with jdk protocol
Need support by language server
Use command :CocList -I --input=Foo.bar_baz symbols to search symbols.