Noticed in IntelliJ 2023.2.2, when having a nested class inside a jte template, for instance @param Foo.Bar bar and alt+enter => "Add import for Foo.Bar" does not add an import for this class.
So far it looks like this cannot be fixed easily. In this org.jusecase.jte.intellij.language.JteJavaContentManipulator#handleContentChange gets called multiple times for each java injection in the file, but strangely not for the import injection.
So far the only workaround is to add these imports manually.
Noticed in IntelliJ 2023.2.2, when having a nested class inside a jte template, for instance @param Foo.Bar bar and alt+enter => "Add import for Foo.Bar" does not add an import for this class.
So far it looks like this cannot be fixed easily. In this
org.jusecase.jte.intellij.language.JteJavaContentManipulator#handleContentChange
gets called multiple times for each java injection in the file, but strangely not for the import injection.So far the only workaround is to add these imports manually.