-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add ${targetPlatform} placeholder for plugin downloads #12410
Add ${targetPlatform} placeholder for plugin downloads #12410
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from what Mark wrote, I think the feature is a little hidden at this time, can we update https://github.com/eclipse-theia/theia/tree/master/dev-packages/cli#downloading-plugins to provide some information on the feature for end-users?
updated the readme to document the feature |
795613c
to
b5f256a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
I have tested the functionality on Ubuntu and Windows machines. On both systems, the modified script downloads the respective version of the vscode extension as expected.
in plugin download urls Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
use regex escape lib, use record, updated README for new feature Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
Co-authored-by: Mark Sujew <mark.sujew@typefox.io>
Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
b5f256a
to
00c64c9
Compare
What it does
This allows the usage of placeholders in plugin urls for the
theia download:plugins
task. Specificly adds the ${targetPlatform} placeholder to download non universal plugins by the bundling machines operating system and cpu arcitecture.usage looks like this:
How to test
"rust-analyzer": "https://open-vsx.org/api/rust-lang/rust-analyzer/${targetPlatform}/0.4.1473/file/rust-lang.rust-analyzer-0.4.1473@${targetPlatform}.vsix"
to your theiaPluginsrust-analyzer
plugin in theplugins
folder is using the correct system binary.Review checklist
Reminder for reviewers