Skip to content

Force restore option broken in VSC Bicep extension #20058

Description

Bicep version
Bicep CLI version 0.45.6 (6c73ad6)
Bicep CLI version 0.45.15 (6a4a640)

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status
Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions