I’m using `@Language("")` so IntelliJ will <inject...
# intellij
a
I’m using
@Language("")
so IntelliJ will inject languages into strings. When I add a new
@Language
annotation IntelliJ will suggest the available injections. I want to use one of these suggestions as an annotation arg. Is there a tag I can use so that IntelliJ will suggest the available injections?
m
Not sure I understand the question. From the gif on the documentation page it looks like you don't have to type
@Language
as it will be inserted by IntelliJ IDEA when you select the language to inject from intention actions (Alt+Enter). Do you mean you would like to have code completion inside the
@Language("<code completion here>")
tag?
a
I was worried it wasn’t clear :) I’ll try explaining how I got here.
@Language
isn’t available in Kotlin Multiplatform, so I’m re-implementing it (like how Kotlinx Serialization did) I’ve set this up, and it works correctly, however I don’t get any auto-compete to select an injection type in the new KMP annotation (see screenshot). It’s a really minor point, but I wanted to ask in case I missed something