Reproduction steps:
1. Open the attached project "ReproProj"
2. In the Project window, move “/Assets/FolderB/InputHolder.inputactions“ to “/Assets/FolderA“
3. Rename “InputHolder.inputactions“ to “ClassA“
4. Observe “ClassA.cs“
Expected result: Contents of “ClassA.cs“ remains the same
Actual result: Contents are replaced inside “ClassA.cs“
Reproducible with: 1.7.0 (2022.3.15f1), 1.11.2 (2022.3.53f1, 6000.0.29f1, 6000.1.0a6)
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested