Intellisesne inside lambda functions (map)
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
**Bicep version**
Bicep CLI version 0.27.1 (4b41cb6d4b)
**Describe the bug**
Intellisense is lost inside map() example. It applies to other lambda functions as well.
**To Reproduce**

```bicep
var subnets = []
resource vnet 'Microsoft.Network/virtualNetworks@2023-11-01' = {
name: 'vnet'
properties: {
subnets: map(subnets, subnet => {
})
}
}
```
Works if I use for loop:

It also should work if you have nested map() no matter how many times is nested:

```bicep
var subnets = []
resource vnet 'Microsoft.Network/virtualNetworks@2023-11-01' = {
name: 'vnet'
properties: {
subnets: map(subnets, subnet => {
name: subnet.name
properties: {
addressPrefix: subnet.addressPrefix
serviceEndpoints: map(subnet.serviceEndpoints, serviceEndpoint => {
locations: serviceEndpoint.locations
//service: serviceEndpoint.service
})
}
})
}
}
```
//cc @anthony-c-martin
**Additional context**
Add any other context about the problem here.
Contributor guide
Assessment
This issue has not been assessed yet.