Skip to content

download-plugins: report a failure in case of unsupported file type#8797

Merged
vince-fugnitto merged 1 commit intoeclipse-theia:masterfrom
perrinjerome:fix/download-plugin-unsupported
Dec 7, 2020
Merged

download-plugins: report a failure in case of unsupported file type#8797
vince-fugnitto merged 1 commit intoeclipse-theia:masterfrom
perrinjerome:fix/download-plugin-unsupported

Conversation

@perrinjerome
Copy link
Contributor

What it does

If a plugin url listed in theiaPlugins in package.json is not supported,
it should be reported as a failure and not only logged.

How to test

Change theiaPlugins in package.json to have an incorrect extension

  "theiaPlugins": {
    "vscode-builtin-bat-incorrect-extension": "https://open-vsx.org/api/vscode/bat/1.44.2/file/vscode.bat-1.44.2.vsix.incorrect-extension"
  }

Run yarn download:plugins, an error should be reported ( with #8788 is applied, the build should fail )

Review checklist

Reminder for reviewers

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.

Makes sense to me, LGTM.

@vince-fugnitto vince-fugnitto added builtins Issues related to VS Code builtin extensions theia-cli issues related to the theia-cli labels Nov 30, 2020
@vince-fugnitto
Copy link
Member

@perrinjerome do you mind rebasing this pull-request as well to the latest master?

If a plugin url listed in theiaPlugins in package.json is not supported,
it should be reported as a failure and not only logged.

Signed-off-by: Jérome Perrin <perrinjerome@gmail.com>
@perrinjerome perrinjerome force-pushed the fix/download-plugin-unsupported branch from 06ce66c to 395dbbb Compare December 7, 2020 05:30
@perrinjerome
Copy link
Contributor Author

@vince-fugnitto Thank you, I just rebased on master

Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

Thank you for the changes @perrinjerome !

@vince-fugnitto vince-fugnitto merged commit d145b05 into eclipse-theia:master Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builtins Issues related to VS Code builtin extensions theia-cli issues related to the theia-cli

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants