Add option to create sdk style project (#19290)

* update sql proj api

* remove extra spaces

* simplify check
This commit is contained in:
Barbara Valdez
2022-05-04 15:21:13 -07:00
committed by GitHub
parent ae8d3ab1bf
commit 742232ddd5
2 changed files with 7 additions and 2 deletions

View File

@@ -1225,7 +1225,7 @@ export class ProjectsController {
newProjName: projectInfo.projectName,
folderUri: vscode.Uri.file(projectInfo.outputFolder),
projectTypeId: constants.emptySqlDatabaseProjectTypeId,
sdkStyle: false
sdkStyle: !!options?.isSDKStyle
});
const project = await Project.openProject(newProjFilePath);

View File

@@ -68,7 +68,12 @@ declare module 'sqldbproj' {
/**
* If true then the project will not be opened in the workspace after being created
*/
doNotOpenInWorkspace?: boolean
doNotOpenInWorkspace?: boolean,
/**
* Create SQL Project SDK style or non SDK style. The default is non SDK style.
*/
isSDKStyle?: boolean
};
export interface ISqlProject {