Skip to content

Commit 9f38b63

Browse files
committed
fix vscode notebook links
1 parent ea6f9fb commit 9f38b63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ var requirejs = (function() {
536536
console.warn('Command links are deprecated and will be removed, use messag passing instead: https://github.com/microsoft/vscode/issues/123601');
537537
}
538538

539-
if (matchesScheme(link, Schemas.http) || matchesScheme(link, Schemas.https) || matchesScheme(link, Schemas.mailto)
539+
if (matchesScheme(link, Schemas.vscodeNotebookCell) || matchesScheme(link, Schemas.http) || matchesScheme(link, Schemas.https) || matchesScheme(link, Schemas.mailto)
540540
|| matchesScheme(link, Schemas.command)) {
541541
this.openerService.open(link, { fromUserGesture: true, allowContributedOpeners: true, allowCommands: true });
542542
}
@@ -658,7 +658,7 @@ var requirejs = (function() {
658658
case 'clicked-link':
659659
{
660660
let linkToOpen: URI | string | undefined;
661-
if (matchesSomeScheme(data.href, Schemas.http, Schemas.https, Schemas.mailto, Schemas.command)) {
661+
if (matchesSomeScheme(data.href, Schemas.http, Schemas.https, Schemas.mailto, Schemas.command, Schemas.vscodeNotebookCell, Schemas.vscodeNotebook)) {
662662
linkToOpen = data.href;
663663
} else if (!/^[\w\-]+:/.test(data.href)) {
664664
if (this.documentUri.scheme === Schemas.untitled) {

0 commit comments

Comments
 (0)