mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -05:00
Update typings for getAzureFunctions request (#19556)
This commit is contained in:
@@ -44,7 +44,7 @@ export async function launchAddSqlBindingQuickpick(uri: vscode.Uri | undefined):
|
||||
}
|
||||
|
||||
// get all the Azure functions in the file
|
||||
const azureFunctions = getAzureFunctionsResult.azureFunctions;
|
||||
const azureFunctions = getAzureFunctionsResult.azureFunctions.map(af => typeof (af) === 'string' ? af : af.name);
|
||||
|
||||
if (azureFunctions.length === 0) {
|
||||
void vscode.window.showErrorMessage(constants.noAzureFunctionsInFile);
|
||||
|
||||
Reference in New Issue
Block a user