Skip to content

Provide a public API to set the environment to a given path #16994

@brettcannon

Description

@brettcannon

Discussed in #16504

Originally posted by brettcannon June 16, 2021
I have an extension that currently changes the python executable being used by setting it in the user or workspace settings.json (depending how the user chooses to do it).

In the description of https://github.com/microsoft/vscode-python/wiki/AB-Experiments#deprecatepythonpath, I can't really see any way for an extension to update the python used by the vscode-python extension after the move to stop using the settings.json.

So, this is a request to provide an API/command to provide parity with what was already available prior to this change (or if there is already a way to do it, document it in https://github.com/microsoft/vscode-python/wiki/AB-Experiments#deprecatepythonpath).

Originally posted by @fabioz in a discussion

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsarea-internalLabel for non-user facing issuescommunity askFeature request that the community expressed interest infeature-requestRequest for new features or functionalityneeds proposalNeed to make some design decisionson-testplanAdded to test plan

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions