Description
When using the new sdk, a function app will throw at functio nindexing time if they do not include at least 1 function (via attribute).
The issue is that the source-gened IFunctionMetadataProvider will be skipped, leaving the DefaultFunctionMetadataProvider to be used. The default provider will throw because the new SDK does not generate function.metadata (which the provider tries to read).
We can do one of the following:
- When the source generator does not act, drop an empty
function.metadata
- Update source generator to always emit, even if no function declarations.
Preference is for 2 as it seems most straightforward.
Steps to reproduce
- Use new SDK
- Run with 0 functions
Description
When using the new sdk, a function app will throw at functio nindexing time if they do not include at least 1 function (via attribute).
The issue is that the source-gened
IFunctionMetadataProviderwill be skipped, leaving theDefaultFunctionMetadataProviderto be used. The default provider will throw because the new SDK does not generatefunction.metadata(which the provider tries to read).We can do one of the following:
function.metadataPreference is for 2 as it seems most straightforward.
Steps to reproduce