fix issue 7489 and disposable handling (#7491)

This commit is contained in:
Alan Ren
2019-10-03 12:20:54 -07:00
committed by GitHub
parent cf1a09aeaf
commit d2e4e94aec
5 changed files with 19 additions and 11 deletions

View File

@@ -44,8 +44,12 @@ export function activate(context: vscode.ExtensionContext) {
vscode.commands.registerCommand('azdata.resource.sql-bdc.deploy', () => {
openDialog('sql-bdc');
});
vscode.commands.registerCommand('azdata.resource.deploy', (resourceType: string = 'sql-image') => {
openDialog(resourceType);
vscode.commands.registerCommand('azdata.resource.deploy', (resourceType: string) => {
if (typeof resourceType === 'string') {
openDialog(resourceType);
} else {
openDialog('sql-image');
}
});
vscode.commands.registerCommand('azdata.openNotebookInputDialog', (dialogInfo: NotebookBasedDialogInfo) => {
const dialog = new DeploymentInputDialog(notebookService, dialogInfo);