Skip to content

declarationMap does not work when finding references of some module to a project that consumed it #33323

Closed
@Tyriar

Description

@Tyriar

TypeScript Version: 3.6.2

Search Terms: declarationMap

Code

Finding references here:

https://github.com/xtermjs/xterm.js/blob/91691085f666a712b268bf74b90d6684e1829b16/src/common/input/Keyboard.ts#L38

Expected behavior:

Should find the reference in Terminal.ts because declarationMap is true. Here is find all references from the declaration file which is what I expect when using it on the implementation:

image

Actual behavior:

It doesn't find outside of the common project:

image

This is one of the issues that must be fixed before I would recommend adopting project references inside VS Code.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions