| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This package provides type declarations and a helper to access the API exposed by the Python Environments extension for VS Code.
npm install @vscode/python-environments
import { PythonEnvironments } from '@vscode/python-environments';
export async function activate() {
const api = await PythonEnvironments.api();
// Get all discovered environments
const envs = await api.getEnvironments('all');
for (const env of envs) {
console.log(env.displayName, env.version);
}
}| Back | FazBrowse Home | New Git URL |