Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.23k stars 748 forks source link

Public Registry Module Versions Are Not Ordered From Latest To Oldest #14530

Open jtracey93 opened 3 months ago

jtracey93 commented 3 months ago

Describe the bug When you declare a module from the public registry and go to select a version where VS Code intellisense provides the available versions as a drop-down list; this list is not ordered from latest version to oldest (top-down). image

As you can see they are not even ordered in the matching order of the tags list from MAR/MCR: https://mcr.microsoft.com/v2/bicep/avm/res/storage/storage-account/tags/list

We should add some logic to order them in the VS Code extension/language server to always populate the list in order from latest semantic version, which should be selected by default, to oldest.

Cc: @shenglol

Related to: https://github.com/Azure/Azure-Verified-Modules/issues/1181

jtracey93 commented 3 months ago

Being noticed in community more and more now https://x.com/johnlokerse/status/1813283919367696581?s=46&t=4I1PEfJog-kNAV4zqFNBGA