-
Notifications
You must be signed in to change notification settings - Fork 221
Position of code mining annotation need to be removed with delay #3170
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
Position of code mining annotation need to be removed with delay #3170
Conversation
should we merge this so that it's part of M3 (promotion is tomorrow) ? |
Yes, please try to get this merged if folks are comfortable with the change. Testing for M3 can only be a good thing. |
Let me try to motivate why I did the change. Following steps are executed In the video of the issue #3121.
I see on my machine (Windows) following call sequence after the user presses the enter key to insert the javadoc block comment: First a CodeMiningManager.renderCodeMinings is called to update the code minings. The stack shows that the CodeMiningLineHeaderAnnotation is removed from the AnnotationModel.
Afterwards several document change events are triggered and the DefaultPositionUpdater is called which has the task to update the positions of the annotations. The position of the org.eclipse.jface.internal.text.codemining.CodeMiningLineHeaderAnnotation@f28d969 is not updated because it is already removed via the previous call.
In the end we see an AnnotationPainter.updatePainting call which catches up the annotation model and draws also all code minings (take a look at the asyncCall at AnnotationPainter.java:1083). The call
|
would be good to hear @mickaelistria opinion on this change |
#3121 (comment) say that this fixes the issue. |
to fix issue #3121