Skip to content

Commit 42a1535

Browse files
committed
include project specifications in creation options
1 parent 5eaf48e commit 42a1535

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

src/api.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,11 +667,19 @@ export interface PythonProjectCreatorOptions {
667667
name: string;
668668

669669
/**
670-
* Optional path that may be provided as a root for the project.
670+
* Path provided as the root for the project.
671671
*/
672-
uri?: Uri;
672+
rootUri: Uri;
673+
674+
projectTemplateSpecifications?: PythonProjectTemplateSpecifications;
673675
}
674676

677+
/**
678+
* Specifications for the template set by the Python project creator. Project creators can create an object
679+
* extending this type to provide additional information about what their template need.
680+
*/
681+
export interface PythonProjectTemplateSpecifications {}
682+
675683
/**
676684
* Interface representing a creator for Python projects.
677685
*/

src/internal.api.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
EnvironmentGroupInfo,
2727
QuickCreateConfig,
2828
CreateEnvironmentOptions,
29+
PythonProjectTemplateSpecifications,
2930
} from './api';
3031
import { CreateEnvironmentNotSupported, RemoveEnvironmentNotSupported } from './common/errors/NotSupportedError';
3132
import { sendTelemetryEvent } from './common/telemetry/sender';
@@ -371,3 +372,7 @@ export interface ProjectCreators extends Disposable {
371372
registerPythonProjectCreator(creator: PythonProjectCreator): Disposable;
372373
getProjectCreators(): PythonProjectCreator[];
373374
}
375+
376+
export interface PackageTemplateSpecifications extends PythonProjectTemplateSpecifications {
377+
createVenv?: boolean;
378+
}

0 commit comments

Comments
 (0)