Support for filtering extensions by a specific Code OSS 'engine' value
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start by locating the extension detail page and the API endpoints that expose extension versions, then trace where engine values are available for each version. The issue proposes displaying the minimum engine version and filtering by it on both the website and API; done means agreeing on scope and supporting the requested display and filtering. The thread has had no comment for 202 days, so check for a current maintainer response before starting.
Written by the indexing model from the issue text.
Description
tldr:
For users who have to download extensions directly from the OpenVSX website to use them in offline/airgapped environments since their IDE cannot directly query OpenVSX API:
- I think it's worth exposing the minimum engine version on each extensions page
- It would be ideal to be able to filter the website and API for extensions based on a minimum engine version
Background
.vsix extensions have an engine value that determines the minimum version of the IDE that is required to be compatible with that particular extension.
This is returned in the raw JSON of an extension when requesting a specific version and is used by the IDE to install the appropriate version of an extension for the current IDE version.
# check IDE version
$ code --version
1.94.1
# from OpenVSX extension API JSON
"engines": {
"vscode": "^1.37.0"
},
However, users in air-gapped or offline environments are not able to query OpenVSX directly from their IDE. They would need to go to OpenVSX in a separate browser, download an extension and attempt to install it in their Code OSS-based IDE. If it fails due to an engine mismatch, they would need to then go to the next version, and repeat the process until finding a compatible version.
More adventurous users might use the OpenVSX API to loop across the various versions and find a compatible version. For an example with the path-intellisense extension, with most of the extra JSON trimmed off, as seen if using an API request against: https://open-vsx.org/api/christian-kohler/path-intellisense/2.8.0
{
"namespaceUrl": "https://open-vsx.org/api/christian-kohler",
"name": "path-intellisense",
"namespace": "christian-kohler",
"targetPlatform": "universal",
"version": "2.8.0",
...
"unrelatedPublisher": false,
"namespaceAccess": "restricted",
"allVersions": {
"latest": "https://open-vsx.org/api/christian-kohler/path-intellisense/latest",
"2.8.0": "https://open-vsx.org/api/christian-kohler/path-intellisense/2.8.0",
"2.7.0": "https://open-vsx.org/api/christian-kohler/path-intellisense/2.7.0",
...
},
...
##### <--- Here is the engine version ---> #####
"vscode": "^1.43.0"
}
Friction points
This is useful information, but it requires querying the API many time per extension as the engine data is only exposed at each individual version rather than including it within some allVersion sub field. This is wasteful of OpenVSX resources as a request for even say 10 extensions might turn into 100 API calls (10 per extension) as it pages through the various calls to find a compatible engine version.
Additionally, users or administrators are required to make these requests via curl or equivalent as the website doesn't display the minimum engine version:
Suggestion
For users who have to download extensions to use them in offline/airgapped environments:
- I think it's worth exposing the minimum engine version on each extensions page
- It would be ideal to be able to filter the website and API for extensions based on a minimum engine version
- Dominant language
- Java
- Stars
- 2.1k
- Forks
- 362
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 44
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-openvsx/openvsx
-
`ovsx verify` fails for a version older than the 100 newest of an extensionPossibly taken @trivikr claimed this today. Opencli
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
eclipse-openvsx/openvsx#2482 · 2 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
eclipse-openvsx/openvsx#2469 ·
Maintainers usually reply within 1 day
-
cli
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
eclipse-openvsx/openvsx#2423 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
eclipse-openvsx/openvsx#2476 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
eclipse-openvsx/openvsx#2439 · 2 comments ·
Maintainers usually reply within 1 day
All issues in eclipse-openvsx/openvsx
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Magic-team-jvav/confluence#281 ·
-
area/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
Difficulty 1/5 Under an hour Newbie friendliness 67/100
Maintainers usually reply within 2 days
-
[DEFECT] AsciiDoc builders write a stray ## before every schema member when the namespace prefixes file binds the schema's own namespacePossibly taken @Beehtrix claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cimug-org/CIMTool#427 · 1 comment ·
Maintainers usually reply within 1 day
-
userRaised
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
eclipse-openj9/openj9#25285 ·
Maintainers usually reply within 1 day
-
Range type (eg Condition.onsetRange) fails IPS $summary + Observation.valueQuantity only render value in narrativePossibly taken @xmhorsehead claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
hapifhir/hapi-fhir#8952 · 2 comments ·
Maintainers usually reply within 1 day