-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
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
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue