Skip to content

Commit

Permalink
Support opening links from Studio extension pages (intersystems-commu…
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano authored Mar 6, 2024
1 parent 9e2d826 commit dec3d35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ export class StudioActions {
if (message.result && message.result === "done") {
answer = "1";
panel.dispose();
} else if (typeof message.href == "string") {
const linkUri = vscode.Uri.parse(message.href);
// Only open http(s) links
if (/^https?$/.test(linkUri.scheme)) vscode.env.openExternal(linkUri);
}
});
panel.onDidDispose(() => resolve(answer));
Expand Down

0 comments on commit dec3d35

Please sign in to comment.