posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.83k stars 91 forks source link

Provide an easier way to refresh interpreters #4269

Open isabelizimm opened 3 months ago

isabelizimm commented 3 months ago

Part of #3944

Describe the issue:

Currently, the way to find newly created interpreters is to go to the Command Palette -> Python: Select Interpreter -> click small 🔄 in top right. It would be nice to surface this in a more obvious way; perhaps as its own Command Palette line or in the interpreter selector UI.

Note: some interpreters can be auto-found, eg, venv, conda, when created from the Create new environment option in the command palette.

Could potentially be part of #1391, but would be nice outside of it as well.

jmcphers commented 3 months ago

I think this is more general than Python -- it should be possible to ask R to refresh its list, too. Could be a language-specific gesture, or even a global one (re-scan for interpreters).

petetronic commented 3 months ago

A command that re-scans interpreters for a given language seems like a good addition. Further UI work, though, should be broken out to a different issue.