mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
fix code.sh script in wsl2+gui
This commit is contained in:
@@ -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 $?
|
||||
|
||||
Reference in New Issue
Block a user