Hey all, for awhile now I've had an issue being reported aganst my JIRA plugin about the plugin causing endless annoations being inserted.
I've just sat down and managed to reproduce this. What I was doing was finding the toplevel comment PsiElement, iterating its children looking for a PsiDocTag matching the JIRA issue Javadoc i'm inserting ( to check for dupes ).
However, if the javadoc contains an @param tag, I find all the next PsiDocTags are children of the @param's PsiInlineDocTag - this can be seen in the image at http://stumpy.talios.com/~amrk/psi-error.png .
Is this a bug in Psi? Or expected behaviour? The javadoc in question was looking like:
Here - the two @jira PsiDocTag's are children of @param's PsiInlineDocTag.
I would have thought the two @jira PsiDocTag's would be at the same level?