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

Enable installation of VSCode extensions from openvsx.org via the internal OpenVSX registry #23188

Open
Tracked by #23074
svor opened this issue Oct 9, 2024 · 0 comments
Assignees
Labels
area/open-vsx Embedded open-vsx registry kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system. team/A This team is responsible for the Che Operator and all its operands as well as chectl and Hosted Che

Comments

@svor
Copy link
Contributor

svor commented Oct 9, 2024

Is your task related to a problem? Please describe

This PR enables the setup of a private OpenVSX registry: eclipse/openvsx#1011

Watch the screencast to see how it works:
Deploy_on_OpenShift.webm

When configure Eclipse Che to use the custom OpenVSX registry, it's possible to see all extensions that are published into the internal registry and install them from the editor:
screenshot-internal-openvsx_apps_rosa_yokgv-wxv74-kjy_ezu8_p3_openshiftapps_com-2024_10_09-11_46_56
screenshot-eclipse-che_apps_rosa_yokgv-wxv74-kjy_ezu8_p3_openshiftapps_com-2024_10_09-12_15_26

In case the custom OpenVSX registry is configured to use https://open-vsx.org as an upstream registry (it's a part of application.yml server configuration file):

ovsx:
  databasesearch:
    enabled: false
  upstream:
    url: https://open-vsx.org

We can see all extensions (internal and from openvsx.org) in the custom OpenVSX UI page:
screenshot-internal-openvsx_apps_rosa_yokgv-wxv74-kjy_ezu8_p3_openshiftapps_com-2024_10_09-12_28_05

But in Che we can NOT see them in the Extensions View:
screenshot-devspaces_apps_rosa_nowi9-r8p69-p5j_y4d6_p3_openshiftapps_com-2024_10_08-15_18_14

Logs from openvsx-server pod:

2024-10-08T12:17:55.982Z ERROR [openvsx-server,f35c64024fd055f884121939131e09e2,66374e3386a84ad4] 1 --- [openvsx-server] [tp1853443923-20] [f35c64024fd055f884121939131e09e2-66374e3386a84ad4] o.e.o.adapter.UpstreamVSCodeService      : upstream: POST: https://open-vsx.org/vscode/gallery/extensionquery

org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://open-vsx.org/vscode/gallery/extensionquery": open-vsx.org:443 failed to respond
	at org.springframework.web.client.RestTemplate.createResourceAccessException(RestTemplate.java:915) ~[spring-web-6.1.5.jar:6.1.5]
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:895) ~[spring-web-6.1.5.jar:6.1.5]
	at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:730) ~[spring-web-6.1.5.jar:6.1.5]
	at org.eclipse.openvsx.adapter.UpstreamVSCodeService.extensionQuery(UpstreamVSCodeService.java:66) ~[classes/:na]
	at org.eclipse.openvsx.mirror.MirrorExtensionQueryRequestHandler.getResult(MirrorExtensionQueryRequestHandler.java:48) ~[classes/:na]
	at org.eclipse.openvsx.adapter.VSCodeAPI.extensionQuery(VSCodeAPI.java:68) ~[classes/:na]

Describe the solution you'd like

Extensions view should show extensions from upstream registry as well

@svor svor added kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system. team/A This team is responsible for the Che Operator and all its operands as well as chectl and Hosted Che labels Oct 9, 2024
@svor svor self-assigned this Oct 9, 2024
@ibuziuk ibuziuk moved this to 📅 Planned in Eclipse Che Team A Backlog Oct 9, 2024
@svor svor moved this from 📅 Planned to 🚧 In Progress in Eclipse Che Team A Backlog Oct 16, 2024
@svor svor added the area/open-vsx Embedded open-vsx registry label Oct 18, 2024
@svor svor moved this from 🚧 In Progress to 📅 Planned in Eclipse Che Team A Backlog Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/open-vsx Embedded open-vsx registry kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system. team/A This team is responsible for the Che Operator and all its operands as well as chectl and Hosted Che
Projects
Status: 📅 Planned
Development

No branches or pull requests

1 participant