Unhelpful Auto Completion on keyvault network defaultAction
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 79
Description
**Bicep version**
VS Code Extension v0.22.6
**Describe the bug**
After typing `d` after `properties.networkAcls.defaultAction` on `Microsoft.KeyVault/vaults@2023-02-01` , the `Deny` autocomplete option gets demoted from being top of the auto suggestions to the end.
**To Reproduce**

Now type `d` (or `D`)

I'd have expected `Deny` to remain the top item in the list.
**Additional context**
I'm also not sure why half the other items in the list show up, none of them really make sense for an option that can only be `Allow` or `Deny`.
Contributor guide
Research direction
Reproduce the completion behavior in VS Code using Bicep Extension v0.22.6 and Microsoft.KeyVault/vaults@2023-02-01, then trace how suggestions are ranked for properties.networkAcls.defaultAction. Done means Deny remains the top suggestion after typing d or D and unrelated options are not presented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, vscode
- Domain
- cloud, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100