Azure / Azure/bicep

Force restore option broken in VSC Bicep extension

Open
#20,058 1 comment 0 reactions 1 assignee Claimed by @polatengin View on GitHub
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Bicep version**
Bicep CLI version 0.45.6 (6c73ad60eb)
Bicep CLI version 0.45.15 (6a4a640fd8)

**Describe the bug**
I have a folder where I have different bicepparam files in different folders. That folder is opened in VSC. I am opening one of those bicepparam files - all other files are not opened in vscode. I press F1 -> and choose force bicep module restore command. The command restores completely some bicep (.bicep) file (seems the first file in the first folder). Depends on the contents of the folder it might ask you to choose a bicep file to restore. When I downgrade to the previous VSCode extension version and restart VSC the restore option works as expected - restore the opened active bicepparam file. It seems this is a bug in the latest extension. Note when I was using the older extension I was still using the bicep cli latest version so it is only on the extension it seems. BTW we have Restore Bicep modules (Force) on right click on bicep file. We should have the same option for bicepparam file as well.

**To Reproduce**
Scenario described

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.