Skip to content

Commit

Permalink
Code-insiders started from WSL doesn't return to console/ doesn't con…
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Sep 6, 2019
1 parent fe44d14 commit 68c1123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/win32/bin/code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if grep -qi Microsoft /proc/version; then
WSL_BUILD=0
fi

if [ $WSL_BUILD -ge 41955 -a $WSL_BUILD -lt 41959 ]; then
if [ $WSL_BUILD -ge 17063 ]; then
# $WSL_DISTRO_NAME is available since WSL builds 18362, also for WSL2
# WSLPATH is available since WSL build 17046
# WSLENV is available since WSL build 17063
Expand All @@ -26,7 +26,7 @@ if grep -qi Microsoft /proc/version; then
# use the Remote WSL extension if installed
WSL_EXT_ID="ms-vscode-remote.remote-wsl"

if [ $WSL_BUILD -ge 41955 ]; then
if [ $WSL_BUILD -ge 41955 -a $WSL_BUILD -lt 41959 ]; then
# WSL2 in workaround for https://github.com/microsoft/WSL/issues/4337
CWD="$(pwd)"
cd "$VSCODE_PATH"
Expand Down

0 comments on commit 68c1123

Please sign in to comment.