Closed
Description
Refs: #17905
- anyOS: @rchiodo
- anyOS: @DonJayamanne
Complexity: 5
Requirements
- Use Insiders build of the python extension
Test APIs exposed via IProposedExtensionAPI
See IProposedExtensionAPI
for APIs to test.
vscode-python/src/client/apiTypes.ts
Line 115 in fa16970
Example usage:
Copy over contents of https://github.com/microsoft/vscode-python/blob/fa169707810b405e8b227429e3a060959eab8ffb/src/client/apiTypes.ts as needed.
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();
}
}