File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/vs/workbench/contrib/notebook/browser/view/renderers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -982,19 +982,18 @@ export class BackLayerWebView<T extends ICommonCellInfo> extends Themable {
982
982
}
983
983
984
984
if ( href . startsWith ( '/' ) ) {
985
+ linkToOpen = await this . pathService . fileURI ( href ) ;
985
986
const folders = this . workspaceContextService . getWorkspace ( ) . folders ;
986
987
if ( folders . length ) {
987
- linkToOpen = ( await this . pathService . fileURI ( href ) ) . with ( {
988
+ linkToOpen = linkToOpen . with ( {
988
989
scheme : folders [ 0 ] . uri . scheme ,
989
990
authority : folders [ 0 ] . uri . authority
990
991
} ) ;
991
- } else {
992
- linkToOpen = await this . pathService . fileURI ( href ) ;
993
992
}
994
993
} else if ( href . startsWith ( '~' ) ) {
995
994
const userHome = await this . pathService . userHome ( ) ;
996
995
if ( userHome ) {
997
- linkToOpen = URI . parse ( osPath . join ( userHome . fsPath , href . substring ( 1 ) ) ) ;
996
+ linkToOpen = userHome . with ( { path : osPath . join ( userHome . fsPath , href . substring ( 1 ) ) } ) ;
998
997
}
999
998
} else {
1000
999
if ( this . documentUri . scheme === Schemas . untitled ) {
You can’t perform that action at this time.
0 commit comments