Go To Definition across projects via declarationMap leads to wrong line/column #28307
Labels
Bug
A bug in TypeScript
Fixed
A PR has been merged for this issue
Scenario: Monorepos & Cross-Project References
Relates to composite projects (a.k.a references between "medium sized projects")
TypeScript Version: 3.2.0-dev.20181101
Search Terms: tsc build across project reference declarationMap .d.ts.map go to definition f12 wrong line col column position
Code
Main project,
main/main.ts
:Dependency project,
dependency/fns.ts
:Full repro zip: badf12repro.zip. Run
npm install
thennpm run build
.Expected behavior:
F12 (Go To Definition) on
fnN
inmain.ts
should position cursor at the beginning of the name of the corresponding function infns.ts
.Actual behavior:
Go To Definition positions cursor in an incorrect position higher up in the file in each case aside from
fn1
. Gif:As I can repro this in both VS Code and Atom I assume it's TypeScript itself doing the heavy lifting here, but I could be wrong.
The text was updated successfully, but these errors were encountered: