mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Initial project deploy dialog (#10288)
* connection picking dialog for deploy * add data source option * fix errors * merge fix * show connection name instead of connection string if there is one * remove unnecessary async * async (#10292) * Revert "async (#10292)" This reverts commit c94139aa45d8f1d868ebd251f3016315718b56ae. * add a few tests * addressing comments * remove cancel click handler * remove text box for generate script file path because it will just open up a new editor with the script * fix test Co-authored-by: Amir Omidi <amomidi@microsoft.com>
This commit is contained in:
@@ -18,6 +18,7 @@ import { promises as fs } from 'fs';
|
||||
import { BaseProjectTreeItem } from '../models/tree/baseTreeItem';
|
||||
import { ProjectRootTreeItem } from '../models/tree/projectTreeItem';
|
||||
import { FolderNode } from '../models/tree/fileFolderTreeItem';
|
||||
import { DeployDatabaseDialog } from '../dialogs/deployDatabaseDialog';
|
||||
|
||||
/**
|
||||
* Controller for managing project lifecycle
|
||||
@@ -118,9 +119,10 @@ export class ProjectsController {
|
||||
await this.apiWrapper.showErrorMessage(`Build not yet implemented: ${project.projectFilePath}`); // TODO
|
||||
}
|
||||
|
||||
public async deploy(treeNode: BaseProjectTreeItem) {
|
||||
public deploy(treeNode: BaseProjectTreeItem): void {
|
||||
const project = this.getProjectContextFromTreeNode(treeNode);
|
||||
await this.apiWrapper.showErrorMessage(`Deploy not yet implemented: ${project.projectFilePath}`); // TODO
|
||||
const deployDatabaseDialog = new DeployDatabaseDialog(this.apiWrapper, project);
|
||||
deployDatabaseDialog.openDialog();
|
||||
}
|
||||
|
||||
public async import(treeNode: BaseProjectTreeItem) {
|
||||
|
||||
Reference in New Issue
Block a user