Skip to content

Commit 945d678

Browse files
committed
uv_pipe_open error when starting code-insiders from WSL microsoft/vscode-remote-release#1420
1 parent 74bcfa3 commit 945d678

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

resources/win32/bin/code.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ if grep -qi Microsoft /proc/version; then
2727
WSL_EXT_ID="ms-vscode-remote.remote-wsl"
2828

2929
if [ $WSL_BUILD -ge 41955 -a $WSL_BUILD -lt 41959 ]; then
30-
# WSL2 in workaround for https://github.com/microsoft/WSL/issues/4337
30+
# WSL2 workaround for https://github.com/microsoft/WSL/issues/4337
3131
CWD="$(pwd)"
3232
cd "$VSCODE_PATH"
33-
cmd.exe /C ".\\bin\\$APP_NAME.cmd --locate-extension $WSL_EXT_ID >remote-wsl-loc.txt"
34-
WSL_EXT_WLOC="$(cat ./remote-wsl-loc.txt)"
35-
rm remote-wsl-loc.txt
33+
cmd.exe /C ".\\bin\\$APP_NAME.cmd --locate-extension $WSL_EXT_ID >%TEMP%\\remote-wsl-loc.txt"
34+
WSL_EXT_WLOC=$(cmd.exe /C type %TEMP%\\remote-wsl-loc.txt)
3635
cd "$CWD"
3736
else
38-
WSL_EXT_WLOC=$(ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --locate-extension $WSL_EXT_ID)
37+
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --locate-extension $WSL_EXT_ID >/tmp/remote-wsl-loc.txt
38+
WSL_EXT_WLOC=$(cat /tmp/remote-wsl-loc.txt)
3939
fi
4040
if [ -n "$WSL_EXT_WLOC" ]; then
4141
# replace \r\n with \n in WSL_EXT_WLOC

0 commit comments

Comments
 (0)