BrowserURLOpener.open should only handle !openExternal uris

This commit is contained in:
João Moreno 2021-06-28 15:37:17 +02:00
parent 6ab9dcec2e
commit 498aea6ba2

View file

@ -46,6 +46,10 @@ class BrowserURLOpener implements IOpener {
) { }
async open(resource: string | URI, options?: OpenInternalOptions | OpenExternalOptions): Promise<boolean> {
if ((options as OpenExternalOptions | undefined)?.openExternal) {
return false;
}
if (!matchesScheme(resource, this.productService.urlProtocol)) {
return false;
}