Buckets:
Sleepyfx/my-trading-vscode / vscode /code-server /extensions /ms-python.vscode-python-envs-1.28.0-universal /pythonEnvironmentsApi /README.md
| # @vscode/python-environments | |
| This package provides type declarations and a helper to access the API exposed by the [Python Environments](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-python-envs) extension for VS Code. | |
| ## Usage | |
| 1. Install the package and add an `extensionDependencies` entry in your extension's `package.json`: | |
| ```jsonc | |
| // package.json | |
| { | |
| "extensionDependencies": ["ms-python.vscode-python-envs"] | |
| } | |
| ``` | |
| 2. Install the npm package: | |
| ``` | |
| npm install @vscode/python-environments | |
| ``` | |
| 3. Import and use the API in your extension: | |
| ```typescript | |
| 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); | |
| } | |
| } | |
| ``` | |
Xet Storage Details
- Size:
- 925 Bytes
- Xet hash:
- 8aa1da0b8cf39a9156349e46d284395abdb05cbbf419f6a4a264ec68e53e23f1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.