microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.59k stars 28.14k forks source link

Poetry VENV is not getting restored with terminal history after Code restart #216723

Open mitsukuri opened 2 weeks ago

mitsukuri commented 2 weeks ago

When Code is closed with an existing terminal that had a correct Poetry VENV set up, the VENV won't restore on restart, and it is necessary to close the restored terminal and launch a new one in order to get the VENV picked up again.

Not sure if this belongs to the PyLance repo, so trying here first.

https://github.com/microsoft/vscode/assets/88905839/290a7ed6-c192-45f1-9fb4-9fe8c47ddaba

Ubuntu 22.04, Code 1.92, PyLance 2024.6.1

mitsukuri commented 2 weeks ago

So it seems it's just a matter of calling source <venv-path> or failing to do so automatically

meganrogge commented 2 days ago

which zsh file is that script sourced in?