Feedback for proposed public API for environment/interpreter access #18888
Replies: 9 comments 9 replies
-
You can find details on the proposed API here: |
Beta Was this translation helpful? Give feedback.
-
Following up from this comment in #11039 Would it be possible to expose environment activation details via the new API? |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
FYI a couple of additional utilities are exposed, not via the API surface and via commands:
|
Beta Was this translation helpful? Give feedback.
-
Funny, I was just looking for such an API yesterday for my (as yet unpublished) extension -- great timing! My use case is really simple and easy to implement with the API: make sure my custom notebook editor is using a particular Conda environment.
Thanks for this! |
Beta Was this translation helpful? Give feedback.
-
Just as a quick update: we are still actively working on this and going through our internal API design group right now to make sure we nail this appropriately as we don't want to break anyone by needing to change the API later. |
Beta Was this translation helpful? Give feedback.
-
Hi, I now use the API in my internal VSCode extension. Works great. My scenario is also pretty simple. I just use Thanks a lot for adding it 🙏 Greetings |
Beta Was this translation helpful? Give feedback.
-
Hey folks note the API is now changed: https://github.com/microsoft/vscode-python/blob/main/src/client/proposedApiTypes.ts. So any previous used APIs may stop working soon, and you may need to update your extension to use the latest ones. @tonka3000 @rdeline @jepperaskdk We have plans to test this with #19886 after which we'll finalize the new design and release it for all users, thanks! |
Beta Was this translation helpful? Give feedback.
-
API has now been finalized: https://github.com/microsoft/vscode-python/wiki/Python-Environment-APIs |
Beta Was this translation helpful? Give feedback.
-
Example usage can be found in here.
You can find details on the proposed API here:
https://github.com/microsoft/vscode-python/wiki/Proposed-Environment-APIs
Beta Was this translation helpful? Give feedback.
All reactions