Refs: #17905 - [x] anyOS: @rchiodo - [x] anyOS: @DonJayamanne Complexity: 5 [Create Issue](https://github.com/microsoft/vscode-python/issues/new?body=Testing+%2318348%0A%0A&assignees=karthiknadig) --- ### Requirements 1. Use Insiders build of the python extension ### Test APIs exposed via IProposedExtensionAPI See `IProposedExtensionAPI` for APIs to test. https://github.com/microsoft/vscode-python/blob/fa169707810b405e8b227429e3a060959eab8ffb/src/client/apiTypes.ts#L115 Example usage: Copy over contents of https://github.com/microsoft/vscode-python/blob/fa169707810b405e8b227429e3a060959eab8ffb/src/client/apiTypes.ts as needed. ```typescript const extension = extensions.getExtension('ms-python.python'); if (extension) { if (!extension.isActive) { await extension.activate(); } const api: IExtensionApi & IProposedExtensionAPI = extension.exports as IExtensionApi & IProposedExtensionAPI; if (api.environment) { interpreterPath = await api.environment.getActiveInterpreterPath(); } } ```
Activity
rchiodo commentedon Jan 25, 2022
LGTM except for the path based ness of it. Tried on Windows and WSL2
DonJayamanne commentedon Jan 26, 2022
Tested on WSL2