mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Add option to create sdk style project (#19290)
* update sql proj api * remove extra spaces * simplify check
This commit is contained in:
@@ -1225,7 +1225,7 @@ export class ProjectsController {
|
|||||||
newProjName: projectInfo.projectName,
|
newProjName: projectInfo.projectName,
|
||||||
folderUri: vscode.Uri.file(projectInfo.outputFolder),
|
folderUri: vscode.Uri.file(projectInfo.outputFolder),
|
||||||
projectTypeId: constants.emptySqlDatabaseProjectTypeId,
|
projectTypeId: constants.emptySqlDatabaseProjectTypeId,
|
||||||
sdkStyle: false
|
sdkStyle: !!options?.isSDKStyle
|
||||||
});
|
});
|
||||||
|
|
||||||
const project = await Project.openProject(newProjFilePath);
|
const project = await Project.openProject(newProjFilePath);
|
||||||
|
|||||||
@@ -68,7 +68,12 @@ declare module 'sqldbproj' {
|
|||||||
/**
|
/**
|
||||||
* If true then the project will not be opened in the workspace after being created
|
* 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 {
|
export interface ISqlProject {
|
||||||
|
|||||||
Reference in New Issue
Block a user