How can LanguageTextField achieve automatic prompts and syntax checking for external classes?
已计划
I extended LanguageTextField and wanted to input a piece of Java through it.
But it won't detect what my custom classes (such as the Utils and Request classes in the picture) should do. Let LanguageTextField also automatically prompt for my custom class
请先登录再写评论。
This seems to work in 2024.2.3 for Java, but not Kotlin.
If I initialize
LanguageTextField
withJavaLanguage.INSTANCE
everything works as I'd expect, but if I useKotlinLanguage.INSTANCE
the IDE can only detect Java classes in the project and everything that is inside the stdlib.Unrelated, but the syntax highlight for Kotlin is also not working perfectly. However, I see the same issue when using
@Language("kotlin")
on some string, so that's not an issue ofLanguageTextField
itself, but a more widespread problem.