mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Merge from vscode e3c4990c67c40213af168300d1cfeb71d680f877 (#16569)
This commit is contained in:
@@ -43,7 +43,7 @@ function code() {
|
||||
export ELECTRON_ENABLE_LOGGING=1
|
||||
|
||||
# Launch Code
|
||||
exec "$CODE" . --no-sandbox "$@"
|
||||
exec "$CODE" . "$@"
|
||||
}
|
||||
|
||||
function code-wsl()
|
||||
@@ -71,7 +71,12 @@ function code-wsl()
|
||||
fi
|
||||
}
|
||||
|
||||
if ! [ -z ${IN_WSL+x} ]; then
|
||||
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