File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments