TL:DR; Only related files are modified.
Only files directly related to the updated component will be modified, including imported shared components if needed. All changes are visible before you accept.