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

Stub for proposed API: ExternalUriOpener #12539

Merged
merged 1 commit into from
May 17, 2023
Merged

Conversation

alvsan09
Copy link
Contributor

@alvsan09 alvsan09 commented May 16, 2023

What it does

Fixes: #12523

This change enables the use of the Simple Browser extension in the context of vscode API v1.77.x.

This is accomplished by stubbing missing vscode proposed API i.e. ExternalUriOpener

How to test

  1. Remove the existing version of vscode.simple-browser (previous builtin version to 1.77.2) from the the theia plugins folder
  2. Unzip the following zip file inside your plugins folder (this is the 1.77.2 version of the simple-browser plugin built from sources).
    simple-browser.zip
  3. Start theia and from the command palette execute the command Simple Browser: Show)
    -> on the input box enter the following site: https://xkcd.com/
  4. Verify that the page open as expected.

NOTE: This browser may not work for many sites, but that's a separate issue to follow up after the true implementation of this stubbed API.

See the following video clip:
https://github.com/eclipse-theia/theia/assets/76971376/d11e012d-106d-4512-a5e6-729571c896a4

Review checklist

Reminder for reviewers

@alvsan09 alvsan09 added vscode issues related to VSCode compatibility builtins Issues related to VS Code builtin extensions stub issues related to functionality being stubbed labels May 16, 2023
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.

LGTM 👍
I confirmed that:

  • the vscode.simple-browser exception is not through regarding ExternalUriOpener
  • the extension successfully previews the webpage in the browser
  • the extension successfully previews the webpage in electron

This change enables the use of the `Simple Browser` extension in the
context of `vscode` API v1.77.x.

This is accomplished by stubbing missing `vscode` proposed API
i.e. ExternalUriOpener

Signed-off-by: Alvaro Sanchez-Leon <alvaro.sanchez-leon@ericsson.com>
@alvsan09 alvsan09 force-pushed the asl/Stub_ExternalUriOpener branch from 467c6c2 to 1e9871c Compare May 17, 2023 13:06
@alvsan09
Copy link
Contributor Author

Hi @vince-fugnitto, both of your comments were applied and the branch was re-based to the current master,
Thanks !!

@alvsan09 alvsan09 requested a review from vince-fugnitto May 17, 2023 13:08
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.

LGTM 👍

@alvsan09 alvsan09 merged commit 47b946e into master May 17, 2023
@alvsan09 alvsan09 deleted the asl/Stub_ExternalUriOpener branch May 17, 2023 15:11
@github-actions github-actions bot added this to the 1.38.0 milestone May 17, 2023
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 stub issues related to functionality being stubbed vscode issues related to VSCode compatibility
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[proposed API][builtins] Theia misses proposed API: ExternalUriOpener
2 participants