mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
Return BindingType directly from promptForBindingType (#19200)
* Return BindingType directly from promptForBindingType * align * Fix tests * fix compile
This commit is contained in:
@@ -40,7 +40,7 @@ export async function createAzureFunction(node?: ITreeNodeInfo): Promise<void> {
|
||||
if (!selectedBinding) {
|
||||
return;
|
||||
}
|
||||
selectedBindingType = selectedBinding.type;
|
||||
selectedBindingType = selectedBinding;
|
||||
propertyBag.bindingType = selectedBindingType;
|
||||
TelemetryReporter.createActionEvent(TelemetryViews.CreateAzureFunctionWithSqlBinding, TelemetryActions.startCreateAzureFunctionWithSqlBinding)
|
||||
.withAdditionalProperties(propertyBag).send();
|
||||
@@ -71,7 +71,7 @@ export async function createAzureFunction(node?: ITreeNodeInfo): Promise<void> {
|
||||
connectionInfo.database = selectedDatabase;
|
||||
|
||||
// prompt user for object name to create function from
|
||||
objectName = await azureFunctionsUtils.promptForObjectName(selectedBinding.type);
|
||||
objectName = await azureFunctionsUtils.promptForObjectName(selectedBinding);
|
||||
if (!objectName) {
|
||||
// user cancelled
|
||||
return;
|
||||
@@ -106,8 +106,8 @@ export async function createAzureFunction(node?: ITreeNodeInfo): Promise<void> {
|
||||
// User cancelled
|
||||
return;
|
||||
}
|
||||
selectedBindingType = selectedBinding.type;
|
||||
propertyBag.bindingType = selectedBinding.type;
|
||||
selectedBindingType = selectedBinding;
|
||||
propertyBag.bindingType = selectedBinding;
|
||||
TelemetryReporter.createActionEvent(TelemetryViews.CreateAzureFunctionWithSqlBinding, TelemetryActions.startCreateAzureFunctionWithSqlBinding)
|
||||
.withAdditionalProperties(propertyBag).withConnectionInfo(connectionInfo).send();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user