astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.87k stars 468 forks source link

VSCode Extension #556

Open mitsuhiko opened 10 months ago

mitsuhiko commented 10 months ago

Rye would greatly benefit from a vscode extension that changes some behaviors that are currently in conflict with rye.

For instance it runs pip install for installing tools rather than rye add or rye install. Turns out that at least in parts this might either require patches directly to the python extension in vscode or some shims on the rye side to make it look like something that vscode already supports.

In addition for format and lint to work, the LSP would need to be proxied through (#593).

DetachHead commented 8 months ago

it would also be nice to have it recognize rye scripts as vscode tasks, like the pdm and npm extensions do:

image

jordandakota commented 5 months ago

Vscode would need to work with rye on "select python interpreter" too. You can run rye without activating the environment.