jvolkman / intellij-protobuf-editor

Protocol Buffers for IntelliJ-based IDEs
Apache License 2.0
122 stars 15 forks source link

Add support for PsiReferenceContributor for option and type names #32

Open bas-lua opened 4 years ago

bas-lua commented 4 years ago

Hi there,

Currently, if the plugin wasn't able to resolve type name/option name, it will be marked as an error and it looks like there is no way to customise this behaviour.

However, there could be cases when such resolutions are impossible directly from IDE (i.e. when extensions appear on a build server). IDEA contains a mechanism to provide custom reference resolver via PsiReferenceContributor/PsiReferenceProvider interfaces but the plugin does not support this functionality.

jvolkman commented 4 years ago

Sounds reasonable. What will you have these names resolve to?

bas-lua commented 4 years ago

Hi, I have two options so far: create virtual files (i.e. API descriptions) and references to our web-interface.