options loading from profile if has profile loaded (#19791)

* options loading from profile if has profile loaded

* Removing profile file unwanted changes

* updating profiles options comment

* STS vBump

* revert STS version from this PR
This commit is contained in:
Sai Avishkar Sreerama
2022-08-08 11:19:55 -05:00
committed by GitHub
parent 4ebe4c4547
commit 66115d8f80

View File

@@ -836,6 +836,9 @@ export class PublishDatabaseDialog {
this.targetDatabaseName = result.databaseName;
}
// set options coming from the publish profiles to deployment options
this.setDeploymentOptions(result.options);
if (Object.keys(result.sqlCmdVariables).length) {
// add SQLCMD Variables table if it wasn't there before and the profile had sqlcmd variables
if (Object.keys(this.project.sqlCmdVariables).length === 0 && Object.keys(<Record<string, string>>this.sqlCmdVars).length === 0) {