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

Extract plugin uri generation to injectable class #9027

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

tsmaeder
Copy link
Contributor

@tsmaeder tsmaeder commented Feb 4, 2021

Signed-off-by: Thomas Mäder tmader@redhat.com

What it does

Extracts the generation of URIs for contribution files referenced in package.json (like snippet contribution files) to an overrideable class. This would simplify handling remote plugin hosts in Che while not greatly impacting the Theia code.
See eclipse-che/che#16502

How to test

Run theia built from this PR (both electron and browser) and verify that things like snippets, etc. (see https://code.visualstudio.com/api/references/contribution-points) still work.

Review checklist

Reminder for reviewers

@vince-fugnitto vince-fugnitto added extensibility issues to simplify ability to extend Theia plug-in system issues related to the plug-in system labels Feb 4, 2021
Copy link
Member

@paul-marechal paul-marechal left a comment

Choose a reason for hiding this comment

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

LGTM once the comments are resolved.

@colin-grant-work
Copy link
Contributor

Minor: you've updated copyrights to 2020 in several places, but it should likely be 2021 now. 🎊

Copy link
Contributor

@vinokurig vinokurig left a comment

Choose a reason for hiding this comment

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

Tested it with the vscode-git plugin and it works as expected.
I can see the correct plugin uri in the browser side:
screenshot-localhost_3000-2021 02 05-15_17_32

I approve it but please address the comments above.

Copy link
Member

@paul-marechal paul-marechal left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Signed-off-by: Thomas Mäder <tmader@redhat.com>
@tsmaeder tsmaeder merged commit f1d4690 into eclipse-theia:master Feb 9, 2021
@paul-marechal paul-marechal added this to the 1.11.0 milestone Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensibility issues to simplify ability to extend Theia plug-in system issues related to the plug-in system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants