Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Import for nested classes does not work #44

Open
casid opened this issue Feb 2, 2024 · 1 comment
Open

Add Import for nested classes does not work #44

casid opened this issue Feb 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@casid
Copy link
Owner

casid commented Feb 2, 2024

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.

@casid casid added the enhancement New feature or request label Feb 2, 2024
@don41382
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants