Skip to content

Remove code lenses for "set as interpreter" #3854

@AlJohri

Description

@AlJohri

#736

I don't know if you have usage statistics on this but it seems more annoying than useful. I am almost always working within a virtualenv which I set by clicking on the bottom left and selecting my python interpreter.

The hashbang by design is super generic, like #!/usr/bin/env python3. Clicking "set as interpreter" just changes it to system python which is almost always not useful, especially when you're already in a virtualenv.

I recommend removing this suggestion all together or at the very least removing it when the python path is explicitly listed in settings.json

screenshot_1_3_19__1_12_pm

Metadata

Metadata

Labels

area-environmentsFeatures relating to handling interpreter environmentsfeature-requestRequest for new features or functionalitygood first issueneeds PRReady to be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions