mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 01:25:36 -05:00
Add SDK style project option to create project from db dialog (#18243)
* add sdk style project template * update description and order * add SDK style project option to create project from db dialog * fix test * switch to checkbox * remove not used string * fix test
This commit is contained in:
@@ -1261,7 +1261,7 @@ export class ProjectsController {
|
||||
const newProjFilePath = await this.createNewProject({
|
||||
newProjName: model.projName,
|
||||
folderUri: vscode.Uri.file(newProjFolderUri),
|
||||
projectTypeId: constants.emptySqlDatabaseProjectTypeId
|
||||
projectTypeId: model.sdkStyle ? constants.emptySqlDatabaseSdkProjectTypeId : constants.emptySqlDatabaseProjectTypeId
|
||||
});
|
||||
|
||||
model.filePath = path.dirname(newProjFilePath);
|
||||
@@ -1271,7 +1271,9 @@ export class ProjectsController {
|
||||
await this.createProjectFromDatabaseApiCall(model); // Call ExtractAPI in DacFx Service
|
||||
let fileFolderList: vscode.Uri[] = model.extractTarget === mssql.ExtractTarget.file ? [vscode.Uri.file(model.filePath)] : await this.generateList(model.filePath); // Create a list of all the files and directories to be added to project
|
||||
|
||||
await project.addToProject(fileFolderList); // Add generated file structure to the project
|
||||
if (!model.sdkStyle) {
|
||||
await project.addToProject(fileFolderList); // Add generated file structure to the project
|
||||
}
|
||||
|
||||
// add project to workspace
|
||||
const workspaceApi = utils.getDataWorkspaceExtensionApi();
|
||||
|
||||
Reference in New Issue
Block a user