Reproduction steps:
1. Open the attached project "ReproProj
2. Open the “/Assets/Scenes/GameScene.unity“
3. Set External Script Editor to Visual Studio 2022 by going to Edit > Preferences
4. In Unity, click Assets > Open C# Project
5. Make changes to any script within Assets/Scripts/
6. Save changes in Visual Studio
7. Switch back to Unity Editor, and wait for AssetDatabase to refresh
8. Repeat steps 3, 4, 5, and 6 at least 3 times
9. Observe the Editor’s memory usage
Expected result: Memory usage stays the same
Actual result: Memory usage increases after each time step 8 is repeated
Reproducible with: 2.0.18 (2023.3.0a5), 2.0.20 (2021.3.30f1, 2022.3.9f1, 2023.1.13f1, 2023.2.0b9, 2023.3.0a5)
Reproducible on: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested