Add getEnvironmentVariables and onDidEnvironmentVariablesChange to IExtensionApi #15112
Labels
area-environments
Features relating to handling interpreter environments
area-intellisense
LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
feature-request
Request for new features or functionality
needs PR
Ready to be worked on
on-testplan
Added to test plan
Milestone
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
getExecutionDetails
andonDidChangeExecutionDetails
, I'd like to havegetEnvironmentVariables
andonDidEnvironmentVariablesChange
available 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).
The text was updated successfully, but these errors were encountered: