Language Injection
Answered
Trying to set up a rule that any call to the method getDbSql in a class called DbResource automatically injects the sql. This seems to work but only partially. For instance, the following kotlin code
val dbr = DbResource()
dbr.getDbSql("""select * from WorkOrders""")...
This code works fine and I get the type-assist and everything. However, when I hit enter, all of that goes away and the only way to get it back is to hit alt+enter at the end and then choose SQL from the entire list.
DbResource is a java class.
Please sign in to leave a comment.
Does the issue occur only when editing Kotlin code? I'd report a bug at https://youtrack.jetbrains.com/newIssue?project=KT.
Similar issue on java side:
There is a known issue for Kotlin: https://youtrack.jetbrains.com/issue/KT-13233. But I can't find the one for Java.
Thanks...I followed the issue and added an additional comment to it.