diff --git a/scripts/code.sh b/scripts/code.sh index d23fa3a550a..5acc461f51c 100755 --- a/scripts/code.sh +++ b/scripts/code.sh @@ -73,6 +73,10 @@ function code-wsl() if [ "$IN_WSL" == "true" ] && [ -z "$DISPLAY" ]; then code-wsl "$@" +elif [ -f /mnt/wslg/versions.txt ]; then + code --disable-gpu "$@" +else + code "$@" fi -code "$@" + exit $?