aliasadidev / vscode-npm-gui

vscode nuget package manager gui https://marketplace.visualstudio.com/items?itemName=aliasadidev.nugetpackagemanagergui
MIT License
46 stars 17 forks source link

Packages from Azure DevOps Artifacts Shows in Reverse Order #36

Closed tilicon closed 2 years ago

tilicon commented 2 years ago

When loading package versions the oldest version shows as newest.

Screenshot 2022-03-22 at 18 29 08

This is not an issue when loading packages from NuGet, only our Azure DevOps Artifacts.

Here's a snippet from the feed which looks fine to me. { "@type": "Package", "id": "#redacted#", "version": "1.0.0.18456", "versions": [ { "@id": "#redacted#", "downloads": 0, "version": "1.0.0.18456" }, { "@id": "#redacted#", "downloads": 0, "version": "1.0.0.18454" } ] }

aliasadidev commented 2 years ago

Thanks for reporting. I think I need to write a strong function to handle unordered list( I think only Azure has this behavior) I will fix it in the next release.

{
    "@type": "Package",
    "id": "#redacted#",
    "version": "1.0.0.18456",
    "versions": [
        {
            "@id": "#redacted#",
            "downloads": 0,
            "version": "1.0.0.18456"
        },
        {
            "@id": "#redacted#",
            "downloads": 0,
            "version": "1.0.0.18454"
        }
    ]
}
aliasadidev commented 2 years ago

The problem is fixed. I will prepare a PR for it.

aliasadidev commented 2 years ago

you can test it in version 2.0.2

tilicon commented 2 years ago

Works like a charm! Thank you for an awesome product.