-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
fix: remove annotation from the pretty-printed string if it is deleted from the model #4282
Conversation
This comment has been minimized.
This comment has been minimized.
seems you have the core idea of the fix :) |
@monperrus, and here comes this fix! When all annotations are deleted, Note that I also removed the the listener just after |
@monperrus @slarse @nharrand need your reviews. The tests have passed. |
nice, LGTM. thanks @algomaster99 there are many more test cases in #4018, does this fix make them all pass? |
@monperrus I think I linked the wrong issue. 🤦♂️ Let me find the correct one. |
@monperrus I found it. It was #4218 instead of 4018. Let me reword the first commit message before we merge. I am doing that just for the logs even though it won't matter because we shall squash and merge. |
aad06a9
to
069eba3
Compare
069eba3
to
dacf525
Compare
@monperrus Some certifcate has expired which is making tests fail.
Do you know what certificate are they talking about? Failing step. |
Fixes #4218
I am still looking for a fix for this, but I think the problem could be with the
changeCollector
. The size of the mapelementToChangeRole
is0
, which is unusual as we have altered the type by deleting the annotation attached to it. Thus, I am concluding that it fails to listen for deletion of annotation in the model build for the resource file in this PR.EDIT:
onChange
is not being called when I delete an annotation, however, it is called when I delete an instance ofCtField
inside aCtType
. This should confirm that what I am saying above is right.