I was using the I2C Configuration dialog today, and i messed things up, so i hit the Restore Default button at the bottom of the I2C peripheral properties dialog.
When i regenerated my project, it compiled with errors, because all my pin User Labels reset too!!!!
Even ones that had nothing to do with I2C, like buttons and LEDs, etc....
I am using v4.22.1. This is a bug!!!
The button on a peripheral config dialog should only reset the peripheral.
Its debatable if it should reset, the associated pins that have been given user labels.
It definitely should not reset other stuff, without a warning!