Skip to content

Commit

Permalink
re #138666
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Dec 20, 2021
1 parent b074f69 commit 5155301
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ var requirejs = (function() {
case 'clicked-link':
{
let linkToOpen: URI | string | undefined;
if (matchesSomeScheme(data.href, Schemas.http, Schemas.https, Schemas.mailto)) {
if (matchesSomeScheme(data.href, Schemas.http, Schemas.https, Schemas.mailto, Schemas.command)) {
linkToOpen = data.href;
} else if (!/^[\w\-]+:/.test(data.href)) {
if (this.documentUri.scheme === Schemas.untitled) {
Expand Down Expand Up @@ -649,7 +649,7 @@ var requirejs = (function() {
}

if (linkToOpen) {
this.openerService.open(linkToOpen, { fromUserGesture: true });
this.openerService.open(linkToOpen, { fromUserGesture: true, allowCommands: true });
}
break;
}
Expand Down

0 comments on commit 5155301

Please sign in to comment.