Unity Issue Tracker - C# file opens in a new VS Code window when a VS Code Workspace is already open
Open
UUM-145606
C# file opens in a new VS Code window when a VS Code Workspace is already open
Unity: CodeEditors
Open
6.0.X
2022.3.X
Won't Fix
2021.3.X
Unity 2021.3 has reached its end of life and will not receive further updates. If you need additional fixes, please upgrade to a newer Unity version.
Reproduction steps:
1. Open the “VSWorkspaceExample” folder
2. Open the “VSWorkspaceExample.code-workspace” using VS Code
3. Make sure that the “ImportantCode.cs” script is opened inside the “Packages > example_package > Scripts” in VS Code
4. Open the “DemoUnityProject” using Unity from the “VSWorkspaceExample” folder
5. Open the "SampleScene" inside the “Scenes” folder
6. Enter Play Mode
7. Click on the error inside the Console window
8. Observe the VS Code editor window
Expected results: The C# file opens in the previously opened VS Code Workspace
Actual results: The C# file opens in a new VS Code window