Skip to content

Transparent go-to-def doesn't work in VS #23827

Closed
@RyanCavanaugh

Description

@RyanCavanaugh

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 DocumentItems, but there is no Document for bar.ts in foo.ts's project

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions