mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
deployment extensibility (#7394)
* rename button and update dialog button width * make deployment resource type contributable * conflicts * fix card width hight issue * comments
This commit is contained in:
@@ -5,12 +5,12 @@
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as nls from 'vscode-nls';
|
||||
import { DialogInfo } from './interfaces';
|
||||
import { NotebookBasedDialogInfo } from './interfaces';
|
||||
import { NotebookService } from './services/notebookService';
|
||||
import { PlatformService } from './services/platformService';
|
||||
import { ResourceTypeService } from './services/resourceTypeService';
|
||||
import { ToolsService } from './services/toolsService';
|
||||
import { NotebookInputDialog } from './ui/notebookInputDialog';
|
||||
import { DeploymentInputDialog } from './ui/deploymentInputDialog';
|
||||
import { ResourceTypePickerDialog } from './ui/resourceTypePickerDialog';
|
||||
|
||||
const localize = nls.loadMessageBundle();
|
||||
@@ -33,7 +33,7 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
if (filtered.length !== 1) {
|
||||
vscode.window.showErrorMessage(localize('resourceDeployment.UnknownResourceType', 'The resource type: {0} is not defined', resourceTypeName));
|
||||
} else {
|
||||
const dialog = new ResourceTypePickerDialog(context, toolsService, resourceTypeService, filtered[0]);
|
||||
const dialog = new ResourceTypePickerDialog(toolsService, resourceTypeService, filtered[0]);
|
||||
dialog.open();
|
||||
}
|
||||
};
|
||||
@@ -44,11 +44,11 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
vscode.commands.registerCommand('azdata.resource.sql-bdc.deploy', () => {
|
||||
openDialog('sql-bdc');
|
||||
});
|
||||
vscode.commands.registerCommand('azdata.resource.deploy', () => {
|
||||
openDialog('sql-bdc');
|
||||
vscode.commands.registerCommand('azdata.resource.deploy', (resourceType: string = 'sql-image') => {
|
||||
openDialog(resourceType);
|
||||
});
|
||||
vscode.commands.registerCommand('azdata.openNotebookInputDialog', (dialogInfo: DialogInfo) => {
|
||||
const dialog = new NotebookInputDialog(notebookService, dialogInfo);
|
||||
vscode.commands.registerCommand('azdata.openNotebookInputDialog', (dialogInfo: NotebookBasedDialogInfo) => {
|
||||
const dialog = new DeploymentInputDialog(notebookService, dialogInfo);
|
||||
dialog.open();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user