Skip to content

Commit b1c2a85

Browse files
committed
build from the userhome URI
1 parent 88236a4 commit b1c2a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ export class BackLayerWebView<T extends ICommonCellInfo> extends Themable {
993993
} else if (href.startsWith('~')) {
994994
const userHome = await this.pathService.userHome();
995995
if (userHome) {
996-
linkToOpen = userHome.with({ path: osPath.join(userHome.path, href.substring(1)) });
996+
linkToOpen = URI.joinPath(userHome, href.substring(2));
997997
}
998998
} else {
999999
if (this.documentUri.scheme === Schemas.untitled) {

0 commit comments

Comments
 (0)