Azure / Azure/bicep

Unhelpful Auto Completion on keyvault network defaultAction

Open
#12,257 0 comments 0 reactions 0 assignees View on GitHub
bug investigate Quality Sprint
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**

![image](https://github.com/Azure/bicep/assets/289860/8ad6723f-b8b4-446a-8179-a2275c464053)

Now type `d` (or `D`)

![image](https://github.com/Azure/bicep/assets/289860/60f16b1b-1163-4b26-beaf-43da592b717b)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.