a few fixes for dacpac extension (#10595)

This commit is contained in:
Kim Santiago
2020-05-27 18:14:29 -07:00
committed by GitHub
parent 032b625ed1
commit d59411c191
3 changed files with 18 additions and 5 deletions

View File

@@ -76,7 +76,14 @@ export abstract class BasePage {
usr = loc.defaultText;
}
let finalName = `${srv} (${usr})`;
let finalName;
// show connection name if there is one
if (c.options.connectionName) {
finalName = `${c.options.connectionName}`;
} else {
finalName = `${srv} (${usr})`;
}
return {
connection: c,
displayName: finalName,

View File

@@ -108,7 +108,7 @@ export abstract class DacFxConfigPage extends BasePage {
// Handle database changes
this.databaseDropdown.onValueChanged(async () => {
this.model.database = (<azdata.CategoryValue>this.databaseDropdown.value).name;
this.model.database = <string>this.databaseDropdown.value;
this.fileTextBox.value = this.generateFilePathFromDatabaseAndTimestamp();
this.model.filePath = this.fileTextBox.value;
});