Closed
Description
TypeScript Version: master
Search Terms: visual studio declaration source map to go to definition
Code
foo.ts
bar;
bar.d.ts
declare var bar;
bar.d.ts.map
(sourcemap saying "go to ../src/bar")
../src/bar.ts
var bar;
Expected behavior: Goes to the def
Actual behavior: Cannot navigate to symbol under caret
Playground Link: N/A
Related Issues: #22658
Root cause here is that we are eagerly deserializing the references into DocumentItem
s, but there is no Document
for bar.ts
in foo.ts
's project