mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
scripts/code.sh: disable gpu on wslg
This commit is contained in:
parent
af6befe1d8
commit
bae654ad1d
|
@ -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 $?
|
||||
|
|
Loading…
Reference in a new issue