forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Milestone
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
| export interface IProposedExtensionAPI { |
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();
}
}