Failure to launch VSCode from WSL2. Fixes microsoft/vscode-remote-release#914

This commit is contained in:
Martin Aeschlimann 2019-07-16 12:16:46 +02:00
parent eb265bbd46
commit 0288def891

View file

@ -36,7 +36,7 @@ if grep -qi Microsoft /proc/version; then
if ! [ -z "$WSL_EXT_WLOC" ]; then
# replace \r\n with \n in WSL_EXT_WLOC
WSL_CODE=$(wslpath -u "${WSL_EXT_WLOC%%[[:cntrl:]]}")/scripts/wslCode.sh
WIN_CODE_CMD=$(wslpath -w "$VSCODE_PATH/bin/$APP_NAME.cmd")
WIN_CODE_CMD=$ELECTRON
"$WSL_CODE" "$COMMIT" "$QUALITY" "$WIN_CODE_CMD" "$APP_NAME" "$DATAFOLDER" "$@"
exit $?
else