mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 17:22:51 -05:00
New UI for deploying SQL project to a new Azure server (#18833)
This commit is contained in:
@@ -307,6 +307,18 @@ export async function getVscodeMssqlApi(): Promise<vscodeMssql.IExtension> {
|
||||
return ext.activate();
|
||||
}
|
||||
|
||||
export type AzureResourceServiceFactory = () => Promise<vscodeMssql.IAzureResourceService>;
|
||||
export async function defaultAzureResourceServiceFactory(): Promise<vscodeMssql.IAzureResourceService> {
|
||||
const vscodeMssqlApi = await getVscodeMssqlApi();
|
||||
return vscodeMssqlApi.azureResourceService;
|
||||
}
|
||||
|
||||
export type AzureAccountServiceFactory = () => Promise<vscodeMssql.IAzureAccountService>;
|
||||
export async function defaultAzureAccountServiceFactory(): Promise<vscodeMssql.IAzureAccountService> {
|
||||
const vscodeMssqlApi = await getVscodeMssqlApi();
|
||||
return vscodeMssqlApi.azureAccountService;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns the default deployment options from DacFx, filtered to appropriate options for the given project.
|
||||
*/
|
||||
@@ -441,7 +453,7 @@ export async function retry<T>(
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
outputChannel.appendLine(constants.retryMessage(name, err));
|
||||
outputChannel.appendLine(constants.retryMessage(name, getErrorMessage(err)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user