mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fix code.sh script in wsl2+gui
This commit is contained in:
parent
67561036cf
commit
11a1f705db
|
@ -71,7 +71,8 @@ function code-wsl()
|
|||
fi
|
||||
}
|
||||
|
||||
if ! [ -z ${IN_WSL+x} ]; then
|
||||
if [ "$IN_WSL" == "true" ] && [ -z "$DISPLAY" ]; then
|
||||
code-wsl "$@"
|
||||
fi
|
||||
code "$@"
|
||||
exit $?
|
||||
|
|
Loading…
Reference in a new issue