microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.67k stars 290 forks source link

Distro list expects UTF16 from WSL even if WSL_UTF8 is 1 #8881

Open aescomputer opened 1 year ago

aescomputer commented 1 year ago

Type: Bug

VS Code suddenly stopped connecting to my WSL2 distros. I found out my recent setting of setx WSL_UTF8 1 prevents VS Code from listing the distros and I am guessing it is because the js function VS Code uses to list distros requires UTF16 encoding. A more detailed explanation with pictures is at Stack Overflow

Extension version: 0.81.0 VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z) OS version: Windows_NT x64 10.0.19045 Modes: Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2

donvipre commented 1 year ago

Is this maybe related to #8924 ?

aescomputer commented 1 year ago

Similar behavior, but not sure if the root cause is the same