Skip to content

Commit

Permalink
Run wslCode with electron (fixes vscode-remote-release#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Jul 30, 2019
1 parent 7765589 commit 49b51b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions resources/win32/bin/code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ if grep -qi Microsoft /proc/version; then
if [ -n "$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")
"$WSL_CODE" "$COMMIT" "$QUALITY" "$WIN_CODE_CMD" "$APP_NAME" "$DATAFOLDER" "$@"
"$WSL_CODE" "$COMMIT" "$QUALITY" "$ELECTRON" "$APP_NAME" "$DATAFOLDER" "$@"
exit $?
fi
else
Expand All @@ -52,4 +51,4 @@ else
CLI="$VSCODE_PATH/resources/app/out/cli.js"
fi
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
exit $?
exit $?

0 comments on commit 49b51b3

Please sign in to comment.