Add projects support for Fabric DW (#24014)

* Update STS and add new platform

* Update vsix version

* Create Fabric DW project from database

* Fix target platform name

* Address comments

* Revert projects version to 1.3.0

* Update STS to 4.9.0.22

* PR comment
This commit is contained in:
Z Chen
2023-08-28 11:16:38 -07:00
committed by GitHub
parent 57d0fa8e79
commit 98c17b85e7
4 changed files with 39 additions and 9 deletions

View File

@@ -1559,7 +1559,7 @@ export class ProjectsController {
if (utils.getAzdataApi()) {
let createProjectFromDatabaseDialog = this.getCreateProjectFromDatabaseDialog(profile as azdataType.IConnectionProfile);
createProjectFromDatabaseDialog.createProjectFromDatabaseCallback = async (model, connectionId) => await this.createProjectFromDatabaseCallback(model, connectionId);
createProjectFromDatabaseDialog.createProjectFromDatabaseCallback = async (model, connectionId) => await this.createProjectFromDatabaseCallback(model, connectionId, (profile as azdataType.IConnectionProfile)?.serverName);
await createProjectFromDatabaseDialog.openDialog();
@@ -1575,7 +1575,7 @@ export class ProjectsController {
}
const model = await createNewProjectFromDatabaseWithQuickpick(profile as mssqlVscode.IConnectionInfo);
if (model) {
await this.createProjectFromDatabaseCallback(model, profile as mssqlVscode.IConnectionInfo);
await this.createProjectFromDatabaseCallback(model, profile as mssqlVscode.IConnectionInfo, (profile as mssqlVscode.IConnectionInfo)?.server);
}
return undefined;
}
@@ -1586,7 +1586,7 @@ export class ProjectsController {
return new CreateProjectFromDatabaseDialog(profile);
}
public async createProjectFromDatabaseCallback(model: ImportDataModel, connectionInfo?: string | mssqlVscode.IConnectionInfo) {
public async createProjectFromDatabaseCallback(model: ImportDataModel, connectionInfo?: string | mssqlVscode.IConnectionInfo, serverName?: string) {
try {
const newProjFolderUri = model.filePath;
@@ -1601,7 +1601,7 @@ export class ProjectsController {
}
if (serverInfo) {
targetPlatform = await utils.getTargetPlatformFromServerVersion(serverInfo);
targetPlatform = await utils.getTargetPlatformFromServerVersion(serverInfo, serverName);
}
const newProjFilePath = await this.createNewProject({