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

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

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

seantan22
Copy link
Contributor

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 [email protected]

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 <[email protected]>
@seantan22
Copy link
Contributor 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