From 49b51b32b2a9c32f34c00746c2013dbde86d1ef3 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Tue, 30 Jul 2019 11:41:09 +0200 Subject: [PATCH] Run wslCode with electron (fixes vscode-remote-release#914) --- resources/win32/bin/code.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/win32/bin/code.sh b/resources/win32/bin/code.sh index 23a5afe8e71e9..4bc4677e1e483 100644 --- a/resources/win32/bin/code.sh +++ b/resources/win32/bin/code.sh @@ -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 $? \ No newline at end of file +exit $?