default deployment type for windows (#9959)

* change default deployment type for win32

* handling the initial deployment type
This commit is contained in:
Alan Ren
2020-04-14 10:08:35 -07:00
committed by GitHub
parent 2b2a275fb0
commit fb524af850
2 changed files with 8 additions and 1 deletions

View File

@@ -49,7 +49,13 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
if (typeof resourceType === 'string') {
openDialog(resourceType);
} else {
openDialog('sql-image');
let defaultDeploymentType: string;
if (platformService.platform() === 'win32') {
defaultDeploymentType = 'sql-windows-setup';
} else {
defaultDeploymentType = 'sql-image';
}
openDialog(defaultDeploymentType);
}
});
vscode.commands.registerCommand('azdata.openNotebookInputDialog', (dialogInfo: NotebookBasedDialogInfo) => {