Open tomaxsas opened 3 years ago
I'll see what are the options of integrating with the Python (base) extension, but at a glance, I can't find a way to get that value (it is now stored in the internal storage of the extension).
Built in terminal sources venv when selected so worth look at it
Built in terminal sources venv when selected so worth look at it
Ah, that's a good lead - there might be a clue somewhere there.
I've looked into this, and it's not going to be easy to implement:
python.pythonPath
setting (the source of truth up till now) is getting deprecatedMiddleware
to ensure that python.pythonPath
is exposed as a virtual setting (something like here)And I'm also considering that some projects will have multiple different Python virtual environments for various Python scripts, and only a single venv for Ansible, so distinguishing this by having a separate setting makes sense in such case; ability to choose between these sources of Python interpreter path should be implemented.
All in all, I might implement this in the future (depending on the demand from the community), but currently this is not a priority.
Problem
Currently manually need enter virtual env activation script
Solution
Take activation script from python or use selected python env.
Alternatives
No response
Additional context
No response