lang.documentationProvider for all languages?

Answered

Is there a way to match all languages? Our plugin gives a provider for keys that are not language specific. I've tried:

<lang.documentationProvider order="FIRST" language=""
<lang.documentationProvider order="FIRST" language="*"
<lang.documentationProvider order="FIRST" language="all"

Or is there a way to do it programmatically and not in the plugin.xml?

0
3 comments

You can register Language-agnostic DocumentationProvider via com.intellij.documentationProvider extension point.

0

Thanks for the pointer. I took that to mean change up my plugin.xml to be:

`<documentationProvider implementation="com.github.intheclouddan.intellijpluginld.LDDocumentationProvider"/>`

https://github.com/InTheCloudDan/intellij-plugin-ld/blob/master/src/main/resources/META-INF/plugin.xml#L38

And changing my `DocumentationProvider` from an `AbstractDocumentationProvider` to a `DocumentationProvider` when I try it in another other languages using IDEs like PyCharm there is still no hover showing that works in IDEA. Is there something basic I'm missing here still?

0

Got it working by overriding

getCustomDocumentationElement
0

Please sign in to leave a comment.