mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
scripts/code.sh: disable gpu on wslg
This commit is contained in:
@@ -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 $?
|
||||
|
||||
Reference in New Issue
Block a user