-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter out pre-release versions #18
Comments
Versions have the following property in
Maybe there's a way to apply a filter in the POST request. |
I confirm that stable versions don't contain
Latest version that doesn't contain What do you think? |
What you said makes sense. I don't have much time to work on this repo now because we're approaching the end of the semester in my university. I can work on it in the summer if no one else does. |
Side note to this: The Marketplace API also reports the minimum required VSCode version (somewhere 👼, maybe in "Microsoft.VisualStudio.Code.Engine"?). It happened to me quite a few times that I updated to the latest extension versions, just to realize that they're not compatible to the (too old) VSCode version I was using. Would be awesome if it'd be possible to select the latest extension version based on the VSCode version in use. |
@twz123 , I'll add the information about the required minimal engine version into cache. Then, it'll be possible to filter out the extensions that require a version of VSCode that's greater than a specified one. |
This query gave me all versions of cat <<'EOF' | curl -sSL -H 'Accept: application/json;api-version=6.1-preview.1' -H 'Content-Type: application/json' https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery? -d @- > eamodio-gitlens.json
{
"assetTypes": [],
"filters": [
{
"criteria": [
{
"filterType": 8,
"value": "Microsoft.VisualStudio.Code"
},
{
"filterType": 7,
"value": "eamodio.gitlens"
}
],
"pageNumber": 1,
"pageSize": 2
}
],
"flags": 1073
}
EOF |
Biggest pain for us right now is the gitlens extension, which we have to update every other day because
nix-vscode-extensions
points to a pre-release version and new pre-release versions require updating the extension otherwise the extension gets deactivated.I wonder if the API that is crawled has more information about stable vs. pre-release versions.
The text was updated successfully, but these errors were encountered: