No intellisense for output type in user-defined functions
I don't know if this is broken or haven't been implemented. So maybe this should be a feature request.
Bicep version v0.28.1
Describe the bug A clear and concise description of what the bug is vs what you expected to happen When writing an user-defined function, you get intellisense in VS code for the input object type (user-defined type or resource reference which is in preview yet), but you don't get intellisense for the output object type. I expect that I have guidance and errors while creating the function output.
type archiveLifeCycleType = {
name: string
tierToArchive_daysAfterModificationGreaterThan: int?
delete_daysAfterModificationGreaterThan: int?
prefixMatch: string[]
}
func composeBlockBlobArchiveRule(archiveLifeCycle archiveLifeCycleType
) resource<'Microsoft.Storage/storageAccounts/managementPolicies@2023-05-01'>.properties.policy.rules[*] => {
name: archiveLifeCycle.name
definition: {
actions: {
baseBlob: {
tierToArchive: {
daysAfterModificationGreaterThan: archiveLifeCycle.tierToArchive_daysAfterModificationGreaterThan
}
delete: {
daysAfterModificationGreaterThan: archiveLifeCycle.delete_daysAfterModificationGreaterThan
}
}
}
filters: {
blobTypes: [
'blockBlob'
]
prefixMatch: archiveLifeCycle.prefixMatch
}
}
type: 'Lifecycle'
enabled: true
}
To Reproduce
Steps to reproduce the behavior: Change the value for type for example. Only Lifecycle is allowed, but you don't get any message. Also intellisense for other actions is not available. This is not just related to the resourceDerivedTypes, userDefinedTypes as output also don't have intellisense.
Additional context This is not just related to the resourceDerivedTypes, userDefinedTypes as output also don't have intellisense.