Add GenerateProjectFromOpenApiSpecOptions (#18045)

* wip

* Undo string change

* more changes
This commit is contained in:
Charles Gagnon
2022-01-11 11:57:21 -08:00
committed by GitHub
parent 818a564cb8
commit 7940814e8d
4 changed files with 56 additions and 34 deletions

View File

@@ -37,6 +37,28 @@ declare module 'sqldbproj' {
openSqlNewProjectDialog(allowedTargetPlatforms?: SqlTargetPlatform[]): Promise<vscode.Uri | undefined>;
}
/**
* Options to use when generating a project from an OpenAPI spec
*/
export type GenerateProjectFromOpenApiSpecOptions = {
/**
* The OpenAPI spec file to use instead of having the user select it
*/
openApiSpecFile?: vscode.Uri,
/**
* The default name to give the generated project in the name input prompt
*/
defaultProjectName?: string,
/**
* The default location to show when the user is selecting the output location of the project
*/
defaultOutputLocation?: vscode.Uri,
/**
* If true then the project will not be opened in the workspace after being created
*/
doNotOpenInWorkspace?: boolean
};
export interface ISqlProject {
/**
* Reads the project setting and contents from the file