Relative path does not in Typescript/Javascript cells in vscode Notebooks. #196172
Labels
bug
Issue identified by VS Code Team member as probable bug
help wanted
Issues identified as good community contribution opportunities
notebook
Milestone
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
export const a = 1
import {a} from './a.ts'
go to definition
Expected:
go to definition
lead you to the file next to itActually:
TS(2307) Cannot find module
go to definition
lead you to a error page that has a nonsense path like thisNote:
It seems this is caused by the way typescript language extension handles virtual paths.
The typescript language extension put all virtual path under
^/{protocol}/{authority}/{file-path}#{cell-id}
Which end up being treated as
{workspace root}/^/{protocol}/{authority}/{file-path}#{cell-id}
by the language serverAnd thus broke all relative paths.
I made a experiment about appending the cell id and authority to file name instead, and it seems fix this issue.
mmis1000@bb9910b
Related issue: DonJayamanne/typescript-notebook#79
The text was updated successfully, but these errors were encountered: