astral-sh / rye

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

VSCode Extension #556

Open mitsuhiko opened 5 months ago

mitsuhiko commented 5 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 3 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 4 days ago

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