diff --git a/shell/lisa_shell b/shell/lisa_shell index 6c87b106b3c2d254476b4d788803bae07c413941..c89e362182bf977e1b3b66c2a2be39a4d6ba76a3 100755 --- a/shell/lisa_shell +++ b/shell/lisa_shell @@ -177,7 +177,9 @@ function lisa-venv-activate { function lisa-venv-deactivate { if [[ ! -z "$VIRTUAL_ENV" ]]; then echo "Deactivating Python venv ($VIRTUAL_ENV) ..." - deactivate + # Under vscode, deactivate starts a bash process at the end, so we want + # it to exit. Normal deactivate script ignores stdin. + echo 'exit 0' | deactivate fi }