Repository: vscode
Issue: Cannot launch new terminals in multi-root workspace on a remote machine unless 'terminal.integrated.cwd' is unset
Labels: bug,remote,confirmed,terminal-process


Type: <b>Bug</b>

## Steps to reproduce:

1. Connect to a remote machine with the 'Remote - SSH' extension
2. Add a folder to workspace that is outside the workspace root
3. Click '+' in the Terminal tab, then select which directory to create a new terminal (works)
4. Right-click eithe of the directories in the workspace, "Copy Path"
5. Paste into the setting "terminal.integrated.cwd"
6. Click '+' in the Terminal tab

## Expected:

* A new terminal opens, with the copy/pasted directory as its cwd

## Actual:

* `The terminal process failed to launch: Starting directory (cwd) "/global/u2/d/dtdoer" does not exist.`

## `settings.json` (for remote machine):
```json
{
    "terminal.integrated.profiles.linux": {
        "bash": {
            "path": "/usr/bin/bash",
            "icon": "terminal-bash",
        },
        "zsh": {
            "path": "/usr/bin/zsh",
            "icon": "terminal",
        },
        "tmux": {
            "path": "/global/homes/d/dtdoer/code-tmux",
            // "path": "/usr/bin/tmux",
            "icon": "terminal-tmux",
        },
    },
    "terminal.integrated.shellIntegration.enabled": false,
    "python.defaultInterpreterPath": "/global/homes/d/dtdoer/.conda/envs/myenv/bin/python",
}
```

Extension version: 0.102.0
VS Code version: Code 1.80.1 (Universal) (74f6148eb9ea00507ec113ec51c489d6ffb4b771, 2023-07-12T17:20:23.298Z)
OS version: Darwin x64 21.6.0
Modes:
Remote OS version: Linux x64 5.14.21-150400.24.46_12.0.73-cray_shasta_c

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|3, 4, 4|
|Memory (System)|16.00GB (0.03GB free)|
|Process Argv|--crash-reporter-id a8407867-c653-4587-a890-060d33075ed7|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: perlmutter.nersc.gov|
|OS|Linux x64 5.14.21-150400.24.46_12.0.73-cray_shasta_c|
|CPUs|AMD EPYC 7713 64-Core Processor (256 x 2000)|
|Memory (System)|503.14GB (392.56GB free)|
|VM|0%|
</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vscaat:30438848
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30610679
3biah626:30602489
f6dab269:30613381
showlangstatbar:30737416
vsctsb:30748421
03d35959:30757346
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
hideindicator:30785051
pythongtdpath:30769146
i26e3531:30792625
pythonnosm12tcf:30779713
pythonidxpt:30784022
pythonnoceb:30776495
e537b577:30795824
dsvsc013:30795093
cmakesidepanelv2:30779593

```

</details>

<!-- generated by issue reporter -->