You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -274,11 +274,13 @@ applies to.
274
274
275
275
| Field | Type | Required | Description |
276
276
| --- | --- | --- | --- |
277
+
|`name`|`string`| No | Non-empty path segment to use as the new environment's name. Directory separators, `.` and `..` are rejected. When supplied, the manager uses that name without prompting for another. When omitted, the manager may prompt for a name or choose a default. |
277
278
|`quickCreate`|`boolean`| No |`true` creates without any prompts. `false` means the user explicitly declined quick create, so prompts are allowed. `undefined` leaves the decision to the manager, which may offer quick create. |
278
279
|`additionalPackages`|`string[]`| No | Packages to install in addition to whatever the manager installs by default. |
|`scope`|[`CreateEnvironmentScope`](#scope-types)| Yes |`Uri` or `Uri[]` for the projects the environment is created for; `'global'` creates one outside any project. |
509
-
|`options`|[`CreateEnvironmentOptions`](#createenvironmentoptions)| No | Controls prompting (`quickCreate`) and extra packages (`additionalPackages`). |
511
+
|`options`|[`CreateEnvironmentOptions`](#createenvironmentoptions)| No | Controls the environment name (`name`), prompting (`quickCreate`), and extra packages (`additionalPackages`). |
510
512
511
513
**Returns**`Promise<PythonEnvironment | undefined>` - `undefined` when no
512
514
environment was created, for example because the user cancelled the flow.
@@ -516,6 +518,7 @@ errors as well as `undefined`.
516
518
517
519
```typescript
518
520
const created =awaitapi.createEnvironment(projectUri, {
0 commit comments