Editing a packaged IP in IP Packager and then discarding those edits might not completely remove all HDL file edits.
This issue arises when I do the following:
When closing down the IP Packager GUI, I receive the following prompts.
"Do you want to re-package your IP and upgrade any matching IP Instance?"
I select No.
"Do you want to save your changes?"
I select No.
Afterwards I see that the HDL modifications were maintained and not removed.
The component.xml file was not changed, but the HDL files used by that component.xml file were modified.
This issue is due to the cancellation only being applied to the package structure itself, and not to changes made in the individual files of the packaged IP.
A future update of Vivado should either revert the HDL back to the original packaged HDL files or warn the user that their HDL modifications have been applied.