Chaning the name of server in deploy option if target is Azure (#18828)

This commit is contained in:
Leila Lali
2022-03-28 15:07:09 -07:00
committed by GitHub
parent 893015010d
commit aad20bc338
6 changed files with 66 additions and 40 deletions

View File

@@ -339,14 +339,14 @@ export class ProjectsController {
* Create flow for Publishing a database using only VS Code-native APIs such as QuickPick
*/
private async publishDatabase(project: Project): Promise<void> {
const publishTarget = await launchPublishTargetOption();
const publishTarget = await launchPublishTargetOption(project);
// Return when user hits escape
if (!publishTarget) {
return undefined;
}
if (publishTarget === constants.publishToDockerContainer) {
if (publishTarget === constants.PublishTargetType.docker) {
const deployProfile = await launchPublishToDockerContainerQuickpick(project);
if (deployProfile?.deploySettings) {
await this.publishToDockerContainer(project, deployProfile);