casid / jte-intellij

IntelliJ plugin for jte template files.
https://github.com/casid/jte
Apache License 2.0
23 stars 5 forks source link

Add Import for nested classes does not work #44

Open casid opened 9 months ago

casid commented 9 months ago

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.

don41382 commented 9 months ago

True. Would be nice if it could be fixed somehow.