Repository navigation
Add getEnvironmentVariables and onDidEnvironmentVariablesChange to IExtensionApi #15112
Copy link
Copy link
Closed
Closed
Copy link
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsarea-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.feature-requestRequest for new features or functionalityRequest for new features or functionalityneeds PRReady to be worked onReady to be worked onon-testplanAdded to test planAdded to test plan
Milestone
Description
Activity
- addedfeature-requestRequest for new features or functionalityRequest for new features or functionalitytriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jan 8, 2021 - addedarea-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.and removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jan 11, 2021 - addedneeds spikeLabel for issues that need investigation before they can be worked on.Label for issues that need investigation before they can be worked on.and removed
on Mar 10, 2021 - addedarea-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environments
on Sep 7, 2022 - Add proposed api to get custom environment variables for a workspace #19999
- Finalize proposed environment variable API: Python environment API to get environment variables for a workspace vscode#163703
- added a commit that references this issue
on Oct 13, 2022 I have decided that getting activated environment variables for a particular environment and workspace should be a separate API than this, as that seems to me like overloading the same API.
FYI Karthik Nadig (@karthiknadig) as you described this as an issue here: https://github.com/microsoft/vscode-python/wiki/Proposed-Environment-APIs#request-for-getenvironmentvariables-and-ondidchangegetenvironmentvariables
- addedneeds PRReady to be worked onReady to be worked onand removedneeds spikeLabel for issues that need investigation before they can be worked on.Label for issues that need investigation before they can be worked on.
on Oct 18, 2022 - locked as resolved and limited conversation to collaborators
on Nov 25, 2022
Metadata
Metadata
Assignees
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsarea-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.feature-requestRequest for new features or functionalityRequest for new features or functionalityneeds PRReady to be worked onReady to be worked onon-testplanAdded to test planAdded to test plan
For #15106, I'll be adding PYTHONPATH to the LS config message, like we do the actual path to the interpreter. But, our plan is to move the client out of this extension and into Pylance (similar to how pyright is run) to reduce release friction (among other benefits in abstracting to the LSP conn). This will mean that there's no way to fetch PYTHONPATH anymore as it's effectively out-of-proc.
Similarly to the addition of
getExecutionDetailsandonDidChangeExecutionDetails, I'd like to havegetEnvironmentVariablesandonDidEnvironmentVariablesChangeavailable to other extensions.The interface for the environment variables is pretty small; just the event and the function that returns a Record of the environment variables. This API is already fast (cached per workspace, but really only a file read).