Repository: vscode
Issue: Windows: WSL prompt option only shows in terminal add menu if you add another terminal 
Labels: bug,terminal-profiles


Type: <b>Bug</b>

I  have WSL (v2) set up on my machine. Whenever I pull up code and click the New Terminal profile menu (the down caret next to the "+" in the terminal panel), the WSL option will not show until I select a different profile (e.g., PowerShell) and open a new terminal. 

STR:
0) Make sure WSL (v2) is installed, set up and ready to go. Restart to ensure a pristine/clean boot.
1) Launch VS Code with any workspace loaded.
2) Make sure the Terminal panel is showing/enabled. Make sure WSL is not already loaded (though having a WSL terminal in the list doesn't affect the issue).
3) Click on the arrow/caret by the New Terminal "+" to see available options.
4) See that WSL is not an option. Select another option (e.g., PowerShell).
5) New terminal is added successfully.
6) Check the profile list again (arrow/caret menu by the New Terminal "+").
7) Notice that "Ubuntu (WSL)" (or whatever flavor you installed with WSL) now displays.

This is 100% reproducible and consistent. Might be related to the fact that WSL has not been run yet on the machine during that session but not sure how you're determining those options.

I've experienced this for quite a while (months if not years). I just deal with it since the workaround is to do what I stated above in the steps to reproduce. It's just very annoying.

VS Code version: Code 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-04T19:33:54.889Z)
OS version: Windows_NT x64 10.0.22631
Modes:

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

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|31.93GB (12.92GB free)|
|Process Argv|--file-uri file:///c%3A/Development/LFG/Clients/2Belive/local/2belive.workspace.code-workspace --crash-reporter-id 86a03ff3-8129-46f9-84cc-b8e9a46e8542|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (15)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-tailwindcss|bra|0.10.5
vscode-eslint|dba|2.4.4
prettier-vscode|esb|10.4.0
vscode-github-actions|git|0.26.3
bootstrap-intellisense|hos|1.4.2
easy-less|mrc|2.0.0
vscode-docker|ms-|1.29.1
vscode-kubernetes-tools|ms-|1.3.16
remote-containers|ms-|0.369.0
remote-wsl|ms-|0.88.2
vscode-speech|ms-|0.10.0
sql-developer|Ora|24.1.1
vscode-yaml|red|1.14.0
vscode-gradle|vsc|3.13.5
volar|Vue|2.0.10


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelt:31048053
dsvsc021:30996838
01bff139:31013167
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecationcf:31061161
pythonprt:31056678
dwnewjupyter:31046869
26j00206:31048877

```

</details>

<!-- generated by issue reporter -->