mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Default to current controller when deploying from Arc dashboard (#14409)
This commit is contained in:
@@ -147,7 +147,12 @@ export class ControllerDashboardOverviewPage extends DashboardPage {
|
||||
|
||||
this.disposables.push(
|
||||
newInstance.onDidClick(async () => {
|
||||
await vscode.commands.executeCommand('azdata.resource.deploy', 'azure-sql-mi', ['azure-sql-mi', 'arc.postgres'], { 'azure-sql-mi': { 'mi-type': ['arc-mi'] } });
|
||||
const node = this._controllerModel.treeDataProvider.getControllerNode(this._controllerModel);
|
||||
await vscode.commands.executeCommand('azdata.resource.deploy',
|
||||
'azure-sql-mi', // Default option
|
||||
['azure-sql-mi', 'arc.postgres'], // Type filter
|
||||
{ 'azure-sql-mi': { 'mi-type': ['arc-mi'] } }, // Options filter
|
||||
{ 'CONTROLLER_NAME': node?.label });
|
||||
}));
|
||||
|
||||
// Refresh
|
||||
|
||||
Reference in New Issue
Block a user