Skip to content
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

Show overview of all added extensions and versions #37

Open
mayrholu opened this issue Apr 18, 2024 · 2 comments
Open

Show overview of all added extensions and versions #37

mayrholu opened this issue Apr 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@mayrholu
Copy link

Hi Guys,

thanks for providing a marketplace solution for closed environments!

It would be great if there was something like code-marketplace list/overview which returns an overview of extensions and their versions are on the marketplace. This would make it easier to clean up (i.e. remove old versions).

It could look something like this:

vadimcn.vscode-lldb
- 1.9.0
- 1.10.0
DavidAnson.vscode-markdownlint
- 0.54.0
- 0.55.0 
... and so on.
@coder-labeler coder-labeler bot added the enhancement New feature or request label Apr 18, 2024
@code-asher
Copy link
Member

As a workaround, you could do this with a query against the API and parse with jq, although you can only query a maximum of 50 extensions at a time.

λ curl -s 'http://localhost:3001/api/extensionquery' --data-raw '{"filters":[{"criteria":[{"filterType":8,"value":"Microsoft.VisualStudio.Code"}],"pageSize":50}],"flags":439}' | jq '.results[0].extensions[] | "\(.extensionId) \(.versions[].version)"'
"esbenp.prettier-vscode 10.1.0"
"esbenp.prettier-vscode 10.0.0"
"esbenp.prettier-vscode 9.20.0"
"esbenp.prettier-vscode 9.19.0"
"esbenp.prettier-vscode 9.18.0"
"ms-python.python 2023.19.12791027"
"ms-python.python 2023.19.12781014"
"ms-python.python 2023.19.12771010"
"ms-python.python 2023.19.12761007"
"ms-python.python 2023.18.0"
"vscodevim.vim 1.26.0"

Come to think of it, with jq you could skip the first version and get all the old versions:

λ curl -s 'http://localhost:3001/api/extensionquery' --data-raw '{"filters":[{"criteria":[{"filterType":8,"value":"Microsoft.VisualStudio.Code"}],"pageSize":50}],"flags":439}' | jq '.results[0].extensions[] | "\(.extensionId) \(.versions | del(.[0])[].version)"'
"esbenp.prettier-vscode 10.0.0"
"esbenp.prettier-vscode 9.20.0"
"esbenp.prettier-vscode 9.19.0"
"esbenp.prettier-vscode 9.18.0"
"ms-python.python 2023.19.12781014"
"ms-python.python 2023.19.12771010"
"ms-python.python 2023.19.12761007"
"ms-python.python 2023.18.0"

@mayrholu
Copy link
Author

Thanks for the workaround! Nevertheless it would be great to have this convenience feature as part of code-marketplace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants