fix DefaultValue getting loaded for publish profiles (#17526)

* fix DefaultValue getting loaded for publish profiles

* add comment
This commit is contained in:
Kim Santiago
2021-11-02 11:32:25 -07:00
committed by GitHub
parent d7b0b6c251
commit 0d485ffe2b
6 changed files with 44 additions and 9 deletions

View File

@@ -175,7 +175,7 @@ export class Project implements ISqlProject {
}
// find all SQLCMD variables to include
this._sqlCmdVariables = utils.readSqlCmdVariables(this.projFileXmlDoc);
this._sqlCmdVariables = utils.readSqlCmdVariables(this.projFileXmlDoc, false);
// find all database references to include
const references = this.projFileXmlDoc.documentElement.getElementsByTagName(constants.ArtifactReference);

View File

@@ -53,7 +53,7 @@ export async function load(profileUri: vscode.Uri, dacfxService: utils.IDacFxSer
const optionsResult = await dacfxService.getOptionsFromProfile(profileUri.fsPath);
// get all SQLCMD variables to include from the profile
const sqlCmdVariables = utils.readSqlCmdVariables(profileXmlDoc);
const sqlCmdVariables = utils.readSqlCmdVariables(profileXmlDoc, true);
return {
databaseName: targetDbName,