mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 09:42:34 -05:00
default deployment type for windows (#9959)
* change default deployment type for win32 * handling the initial deployment type
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user