Skip to content

Commit e40623f

Browse files
committed
Revert "Failure to launch VSCode from WSL2. Fixes microsoft/vscode-remote-release#914"
This reverts commit 0288def.
1 parent e1d3dd5 commit e40623f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

resources/win32/bin/code.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ if grep -qi Microsoft /proc/version; then
3434
if [ -n "$WSL_EXT_WLOC" ]; then
3535
# replace \r\n with \n in WSL_EXT_WLOC
3636
WSL_CODE=$(wslpath -u "${WSL_EXT_WLOC%%[[:cntrl:]]}")/scripts/wslCode.sh
37-
"$WSL_CODE" "$COMMIT" "$QUALITY" "$ELECTRON" "$APP_NAME" "$DATAFOLDER" "$@"
37+
WIN_CODE_CMD=$(wslpath -w "$VSCODE_PATH/bin/$APP_NAME.cmd")
38+
"$WSL_CODE" "$COMMIT" "$QUALITY" "$WIN_CODE_CMD" "$APP_NAME" "$DATAFOLDER" "$@"
3839
exit $?
3940
fi
4041
else

0 commit comments

Comments
 (0)