Support for filtering extensions by a specific Code OSS 'engine' value

Abierto
#1,042 5 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
java
Área
api, search

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

search server
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:

  1. I think it's worth exposing the minimum engine version on each extensions page
  2. 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:

image

Suggestion

For users who have to download extensions to use them in offline/airgapped environments:

  1. I think it's worth exposing the minimum engine version on each extensions page
  2. It would be ideal to be able to filter the website and API for extensions based on a minimum engine version
Lenguaje dominante
Java
Estrellas
2.1k
Forks
362
Merge medio
1 d 3 h
PR fusionados (30 d)
44

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de eclipse-openvsx/openvsx

Todos los issues de eclipse-openvsx/openvsx

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.