No intellisense (property discovery) is provided from default parameter values
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
### Discussed in https://github.com/Azure/bicep/discussions/4108
When you provide default parameter values in a Bicep template, they are not discovered with intellisense.
However intellisense is available from variable values.
Samples below:
```bicep
param stgAccountInfo2 object = {
name: 'teststorgae123'
sku: 'Standard_LRS'
}
param stgAccountInfo3 array = [
{
name: 'teststorgae123'
sku: 'Standard_LRS'
}
]
var stgAccountInfo = [
{
name: 'teststorgae123'
sku: 'Standard_LRS'
}
]
var myInfo = [for item in stgAccountInfo: item. ]
var myInfo1 = stgAccountInfo2.
var myInfo2 = [for item in stgAccountInfo3: item. ]
```
**Example 1**: using the same template - Intellisense discovery on a variable (array or object), **works**

**Example 2**: using the same template - Intellisense discovery on a parameter object **doesn't work**

**Example 3**: using the same template - Intellisense discovery on a parameter array **doesn't work**

Contributor guide
Research direction
Start with the Bicep examples in the issue and compare property completion for variable values with object and array parameter defaults. Reproduce the missing suggestions in the editor, then confirm that property discovery works for both parameter forms as it already does for variables.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100