Reproduction steps:
1. Create a new project
2. In the Project window create a new C# script and open it in Visual Studio
3. Navigate back to the Unity Editor
4. Create and open a new C# script
5. Open the first script again
6. Delete the second script from the Project window
Expected result: The first script is still open in Visual Studio
Actual result: There are no open scripts in Visual Studio
Reproducible with: 2.0.15 (2019.4.39f1, 2020.3.35f1, 2021.3.4f1, 2022.1.4f1, 2022.2.0a16)
Reproduced on: Windows 10 Pro