load publish profile sqlcmd "value" tag and throw error if not loaded correctly (#11615)

* load publish profile sqlcmd "value" tag and throw error if not loaded correctly

* moved the read profile function to utils
This commit is contained in:
Udeesha Gautam
2020-08-03 14:16:00 -07:00
committed by GitHub
parent 9d730bd0b5
commit fbbb9ce529
7 changed files with 24 additions and 29 deletions

View File

@@ -13,7 +13,6 @@ import * as os from 'os';
import { Uri } from 'vscode';
import { promises as fs } from 'fs';
import { DataSource } from './dataSources/dataSources';
import { readSqlCmdVariables } from './publishProfile/publishProfile';
/**
* Class representing a Project, and providing functions for operating on it
@@ -81,7 +80,7 @@ export class Project {
}
// find all SQLCMD variables to include
this.sqlCmdVariables = readSqlCmdVariables(this.projFileXmlDoc);
this.sqlCmdVariables = utils.readSqlCmdVariables(this.projFileXmlDoc);
// find all database references to include
const references = this.projFileXmlDoc.documentElement.getElementsByTagName(constants.ArtifactReference);