-
Notifications
You must be signed in to change notification settings - Fork 83
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
Multifix resolution for removal of bundle/package from Quick Fix #685 #1196
base: master
Are you sure you want to change the base?
Multifix resolution for removal of bundle/package from Quick Fix #685 #1196
Conversation
@lathapatil - when I tested your patch I did not see any difference unfortunately! it may be that the bundle references are removed rom the I remember there is a way to sync the manifest content in the view and the in-memory copy; but forgot which one. can you pls check if there is one such thing? |
It is reflecting in manifest file as well when I test from my workspace / branch. How do I reproduce this? |
214071f
to
53b1d4d
Compare
I see only one getting removed (the pre-existing behaviour). |
@lathapatil - I don't want to block this PR just because I am unable to see the change - may be I am doing some silly mistake. So I request @HannesWell to have a look and advise. |
I'll have a look at it as soon as possible, but I'm quite busy this week, so I probably won't have the time before the weekend. |
@gireeshpunathil I've observed the same behavior you mentioned when unresolved bundles are added at the end, as in the example you provided. However, when we add them in between, it seems to work fine. I'll need to debug this case further. I'll keep you updated on my findings. |
@gireeshpunathil When I debugged this case, I found that while saving the removal of the first marker into the manifest file, the other markers were not updated properly; instead, they were deleted. Working case - Non-working case - After removal of the first bundle manifest file is being saved and when the file commit happens updateMarkers method of AbstractMarkerAnnotationModel is called and here I see the difference with annotationMap being populated in working case and empty in non-working case hence markers are not updated properly. But I do not have deeper knowledge of these annotation models. It might take more time for me to check on this.. If you already know what's happening here you can help me out ! |
@lathapatil - it is possible that we (not your changes, but the original design itself) are missing to for example:
so looks like you are in the right direction, focus on how the markers are selected for update - if we are moving forward in the document for searching of markers, we need to do it in both directions - at least in this case. does it make sense at all? |
Fixes #685