jdaugherty opened a new issue, #405:
URL: https://github.com/apache/grails-intellij-plugin/issues/405

   ## **Steps to reproduce**
   
   1. In a  GSP, enter a reference to a class (that is not imported yet in that 
GSP)
   
   2. Right click: "Show Context Actions"
   
   3. Select "import class"
   
   **Expected result** *(correct result)***:**
   
   It should insert an import of the class at the top of the GSP
   
   **Actual result** *(faulty result)***:**
   
   It does insert an import, but it needlessly changes the class reference to 
the fully qualified path.
   
   e.g. if I have a class aa.bb.cc.MyClassDD
   
   and I type ${MyClassDD} into a gsp, then do Context Actions -\> Import, then 
it
   
   adds the \<%@ page import="aa.bb.cc.MyClassDD"\> up the top (correct)
   
   but it needlessly changes ${MyClassDD} to be ${aa.bb.cc.MyClassDD}
   
   Just like regular java code or groovy code, once you import a class, there 
is no reason to use the full class name in the body of the text.
   
   ## **Environment**
   
   *OS version: Windows and Linux*
   
   *IDE version (you can check via* *About dialog in the Help or App menu):*
   
   2025.1 EAP
   
   ---
   
   *Imported from 
[IDEA-368164](https://youtrack.jetbrains.com/issue/IDEA-368164) · Type: Bug · 
Votes: 0*
   *Comments, attachments, dates and reporter are not part of the export — 
follow the link above for the full history.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to