mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 17:22:25 -05:00
Add target platform as an option in create project api (#16035)
* add target platform as an option in create project api * add test * move constant
This commit is contained in:
@@ -57,11 +57,12 @@ export class SqlDatabaseProjectProvider implements dataworkspace.IProjectProvide
|
||||
* @param projectTypeId the ID of the project/template
|
||||
* @returns Uri of the newly created project file
|
||||
*/
|
||||
async createProject(name: string, location: vscode.Uri, projectTypeId: string): Promise<vscode.Uri> {
|
||||
async createProject(name: string, location: vscode.Uri, projectTypeId: string, targetPlatform?: sqldbproj.SqlTargetPlatform): Promise<vscode.Uri> {
|
||||
const projectFile = await this.projectController.createNewProject({
|
||||
newProjName: name,
|
||||
folderUri: location,
|
||||
projectTypeId: projectTypeId
|
||||
projectTypeId: projectTypeId,
|
||||
targetPlatform: targetPlatform
|
||||
});
|
||||
|
||||
return vscode.Uri.file(projectFile);
|
||||
|
||||
Reference in New Issue
Block a user