mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
add sdk-style option to exposed sql project apis (#19143)
This commit is contained in:
@@ -74,9 +74,11 @@ export class SqlDatabaseProjectProvider implements dataworkspace.IProjectProvide
|
|||||||
* @param name name of the project
|
* @param name name of the project
|
||||||
* @param location the parent directory
|
* @param location the parent directory
|
||||||
* @param projectTypeId the ID of the project/template
|
* @param projectTypeId the ID of the project/template
|
||||||
|
* @param targetPlatform the target platform of the project
|
||||||
|
* @param sdkStyle whether project is sdk-style. Default is false
|
||||||
* @returns Uri of the newly created project file
|
* @returns Uri of the newly created project file
|
||||||
*/
|
*/
|
||||||
async createProject(name: string, location: vscode.Uri, projectTypeId: string, targetPlatform?: sqldbproj.SqlTargetPlatform, sdkStyle: boolean = true): Promise<vscode.Uri> {
|
async createProject(name: string, location: vscode.Uri, projectTypeId: string, targetPlatform?: sqldbproj.SqlTargetPlatform, sdkStyle: boolean = false): Promise<vscode.Uri> {
|
||||||
|
|
||||||
if (!targetPlatform) {
|
if (!targetPlatform) {
|
||||||
const projectType = this.supportedProjectTypes.find(x => x.id === projectTypeId);
|
const projectType = this.supportedProjectTypes.find(x => x.id === projectTypeId);
|
||||||
|
|||||||
@@ -20,9 +20,10 @@ declare module 'sqldbproj' {
|
|||||||
* @param location the parent directory
|
* @param location the parent directory
|
||||||
* @param projectTypeId the ID of the project/template
|
* @param projectTypeId the ID of the project/template
|
||||||
* @param targetPlatform the target platform for the project. Default is SQL Server 2019
|
* @param targetPlatform the target platform for the project. Default is SQL Server 2019
|
||||||
|
* @param sdkStyle whether the project is sdk-style. Default is false
|
||||||
* @returns Uri of the newly created project file
|
* @returns Uri of the newly created project file
|
||||||
*/
|
*/
|
||||||
createProject(name: string, location: vscode.Uri, projectTypeId: string, targetPlatform: SqlTargetPlatform): Promise<vscode.Uri>;
|
createProject(name: string, location: vscode.Uri, projectTypeId: string, targetPlatform: SqlTargetPlatform, sdkStyle?: boolean): Promise<vscode.Uri>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens and loads a .sqlproj file
|
* Opens and loads a .sqlproj file
|
||||||
|
|||||||
Reference in New Issue
Block a user