Skip to content

VSX: Add Toolbar Menu and Support 'Install from VSIX...' Command#9184

Merged
kittaakos merged 1 commit intoeclipse-theia:masterfrom
seantan22:st/ext-more
Mar 23, 2021
Merged

VSX: Add Toolbar Menu and Support 'Install from VSIX...' Command#9184
kittaakos merged 1 commit intoeclipse-theia:masterfrom
seantan22:st/ext-more

Conversation

@seantan22
Copy link

What it does

Fixes #7538

  • Adds a _more_ toolbar menu to the extensions view to which additional commands may be registered.
  • Adds an Install from VSIX... command that supports installation of extensions from a locally available .vsix file.

image

How to test

  1. Visit open-vsx.org and download an extension as a .vsix file.
  2. Open the extensions view.
  3. Select the _more_ menu item in the toolbar and execute the Install from VSIX... command
  4. Select a local .vsix file in the file dialog and click Install.
  5. Confirm that the selected extension has been installed by checking the extensions view.

Review checklist

Reminder for reviewers

Signed-off-by: seantan22 sean.a.tan@ericsson.com

Copy link
Contributor

@kittaakos kittaakos left a comment

Choose a reason for hiding this comment

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

I tried it, and it works as expected. 👍 Could you please address my remarks, @seantan22? Thank you!

What it does
- Adds an `Install from VSIX...` command that supports installation of extensions from a locally available `.vsix` file.
- Adds a '_more_' toolbar menu to the `extensions view` to which additional commands may be registered

How to test
1. Visit open-vsx.org and download an extension as a `.vsix` file.
2. Open the `extensions` view.
3. Select the `_more_` menu item in the toolbar and execute the `Install from VSIX...` command.
4. Select a local `.vsix` file in the file dialog and click `Install`.
5. Confirm that the selected extension has been installed by checking the `extensions` view.

Signed-off-by: seantan22 <sean.a.tan@ericsson.com>
@seantan22
Copy link
Author

@kittaakos Thanks for the feedback, I've updated the pr with your suggestions.
Decided to go with Promise<void> as there seems to be no need for the method to resolve to a URI.

Copy link
Contributor

@kittaakos kittaakos 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, @seantan22 👍

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.

Install .vsix extension from UI

3 participants