mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Run wslCode with electron (fixes vscode-remote-release#914)
This commit is contained in:
parent
7765589c86
commit
49b51b32b2
|
@ -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
|
||||
|
@ -52,4 +51,4 @@ else
|
|||
CLI="$VSCODE_PATH/resources/app/out/cli.js"
|
||||
fi
|
||||
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
|
||||
exit $?
|
||||
exit $?
|
||||
|
|
Loading…
Reference in a new issue