We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5fccda commit 3e25597Copy full SHA for 3e25597
src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.ts
@@ -982,7 +982,15 @@ export class BackLayerWebView<T extends ICommonCellInfo> extends Themable {
982
}
983
984
if (href.startsWith('/')) {
985
- linkToOpen = await this.pathService.fileURI(href);
+ const folders = this.workspaceContextService.getWorkspace().folders;
986
+ if (folders.length) {
987
+ linkToOpen = (await this.pathService.fileURI(href)).with({
988
+ scheme: folders[0].uri.scheme,
989
+ authority: folders[0].uri.scheme
990
+ });
991
+ } else {
992
+ linkToOpen = await this.pathService.fileURI(href);
993
+ }
994
} else if (href.startsWith('~')) {
995
const userHome = await this.pathService.userHome();
996
if (userHome) {
0 commit comments