aliasadidev / vscode-npm-gui

vscode nuget package manager gui https://marketplace.visualstudio.com/items?itemName=aliasadidev.nugetpackagemanagergui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Packages from Azure DevOps Artifacts Shows in Reverse Order

tilicon opened this issue · comments

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" } ] }

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"
        }
    ]
}

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

you can test it in version 2.0.2

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