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:
import { fn1, fn2, fn3, fn4, fn5 } from '../dependency/fns'
fn1();
fn2();
fn3();
fn4();
fn5();
Dependency project, dependency/fns.ts:
export function fn1() { }
export function fn2() { }
export function fn3() { }
export function fn4() { }
export function fn5() { }
Full repro zip: badf12repro.zip. Run npm install then npm run build.
Expected behavior:
F12 (Go To Definition) on fnN in main.ts should position cursor at the beginning of the name of the corresponding function in fns.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.
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 installthennpm run build.Expected behavior:
F12 (Go To Definition) on
fnNinmain.tsshould 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.