Check if the opener can open a uri.
The uri being opened. This is the uri that the user clicked on. It has not yet gone through port forwarding.
Cancellation token indicating that the result is no longer needed.
Priority indicating if the opener can open the external uri.
Open a uri.
This is invoked when:
canOpenExternalUri
is called and if the user selects this opener, then openExternalUri
is called.The uri to open. This uri may have been transformed by port forwarding, so it
may not match the original uri passed to canOpenExternalUri
. Use ctx.originalUri
to check the
original uri.
Additional information about the uri being opened.
Cancellation token indicating that opening has been canceled.
Thenable indicating that the opening has completed.
Handles opening uris to external resources, such as http(s) links.
Extensions can implement an
ExternalUriOpener
to openhttp
links to a webserver inside of the editor instead of having the link be opened by the web browser.Currently openers may only be registered for
http
andhttps
uris.