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) => {

View File

@@ -206,6 +206,7 @@ export class ResourceTypePickerDialog extends DialogBase {
}
this._installToolButton.hidden = true;
if (this.toolRequirements.length === 0) {
this._toolsLoadingComponent.loading = false;
this._dialogObject.okButton.enabled = true;
this._toolsTable.data = [[localize('deploymentDialog.NoRequiredTool', "No tools required"), '']];
this._tools = [];