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

feat: Allow to use OpenVSX instance from the plug-in registry #85

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Jul 29, 2022

If OpenVSX URL is empty, use the OpenVSX from the plug-in registry, else use the link provided (that should be open-vsx.org)

Requires eclipse-che/che-plugin-registry#1324

Part of eclipse-che/che#20549
Fixes eclipse-che/che#21601

Should then be updated to match new fields of CheCluster CR eclipse-che/che#21598

image

you can see in top left that extensions are coming from the che plug-in registry URL

Change-Id: I9c349f435a399e23c38819e9f3d2d80e7b9a85b0
Signed-off-by: Florent Benoit fbenoit@redhat.com

@benoitf benoitf changed the title feat: use OpenVSX instance from the plug-in registry feat: Allow to use OpenVSX instance from the plug-in registry Jul 29, 2022
@github-actions
Copy link

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-85-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-85-dev-amd64

@benoitf benoitf marked this pull request as draft August 3, 2022 05:58
OPENVSX_URL="$CHE_PLUGIN_REGISTRY_ROOT_URL/openvsx/vscode"
sed -i -r -e "s|\"serviceUrl\": \"..*\"|\"serviceUrl\": \"${OPENVSX_URL}/gallery\"|" product.json
sed -i -r -e "s|\"itemUrl\": \"..*\"|\"itemUrl\": \"${OPENVSX_URL}/item\"|" product.json
sed -i -e "s|serviceUrl:\".*\",itemUrl:\".*\"},version|serviceUrl:\"${OPENVSX_URL}/gallery\",itemUrl:\"${OPENVSX_URL}/item\"},version|" vs/workbench/workbench.web.main.js
Copy link
Contributor

@l0rd l0rd Aug 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the initcontainer is stated I get in the logs:

sed: can't read vs/workbench/workbench.web.main.js: No such file or directory

and locally

$ docker run -ti --entrypoint cat quay.io/che-incubator-pull-requests/che-code:pr-85-amd64 /checode/checode-linux-libc/vs/workbench/workbench.web.main.js
cat: /checode/checode-linux-libc/vs/workbench/workbench.web.main.js: No such file or directory

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a missing out prefix
out/vs/workbench/workbench.web.main.js

@github-actions
Copy link

github-actions bot commented Aug 5, 2022

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-85-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-85-dev-amd64

@github-actions
Copy link

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-85-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-85-dev-amd64

@github-actions
Copy link

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-85-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-85-dev-amd64

@github-actions
Copy link

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-85-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-85-dev-amd64

empty: use OpenVSX from the plug-in registry
defined: use that link

Change-Id: I9c349f435a399e23c38819e9f3d2d80e7b9a85b0
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
@github-actions
Copy link

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-85-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-85-dev-amd64

2 similar comments
@github-actions
Copy link

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-85-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-85-dev-amd64

@github-actions
Copy link

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-85-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-85-dev-amd64

@benoitf benoitf marked this pull request as ready for review August 24, 2022 15:18
Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested and it works as expected. There 4 extensions, as it's configured in https://github.com/eclipse-che/che-plugin-registry/blob/main/openvsx-sync.json

image

@benoitf benoitf merged commit c7472cd into che-incubator:main Aug 24, 2022
@che-bot che-bot added this to the 7.53 milestone Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use either OpenVSX.org or local OpenVSX instance when starting VS Code
4 participants