zed-industries / extensions

Extensions for the Zed editor
868 stars 374 forks source link

Add virtualenv support for python #1051

Open Lunarequest opened 3 months ago

Lunarequest commented 3 months ago

Check for existing issues

Misc notes

Python development has for a long time depended on virtualenv, in vscode you can select the virtualenv used by the language server. currently one can launch zed from inside the virtualenv and it will work but having it be seamless like vscode would be a huge upgrade for developers.

m1guer commented 3 months ago

you can set by creating an pyproject.toml file and set the path inside.

[tool.pyright]
venvPath = "../../../.cache/pypoetry/virtualenvs/"
venv= "xxxxx"