Repository navigation
"Go to definition" not working with declarationMap and projects references #25662
Description
Activity
- addedFixedA PR has been merged for this issueA PR has been merged for this issue
on Jul 24, 2018 OliverJAsh commented
on Aug 1, 2018 ContributorAuthorMore actionsWesley Wigham (@weswigham) I just tested this with 3.0.1 and I can still reproduce. Any ideas? Can we re-open?
Wesley Wigham (@weswigham) can you take a look.
On 3.0.1, have this issue, too.
Code checks, compiles, runs, etc. just "Go to definition" not working.
OliverJAsh commented
on Aug 11, 2018 ContributorAuthorMore actionsCan we re-open this issue whilst it is investigated again?
I just tried declarationMap option in TypeScript 3.0.1. But it doesn't work both in VS 2017 15.8.0 Preview 5.0/VS Code 1.26.0
https://github.com/Soul-Master/typescript3-composite-project/tree/declarationMap
In VS Code 1.26.0
In VS 2017 15.8.0 Preview 5.0
OliverJAsh commented
on Sep 25, 2018 ContributorAuthorMore actionsWesley Wigham (@weswigham) This is not fixed. Just tested with TS 3.0.3.
Full repro: https://github.com/OliverJAsh/typescript-3-client-server-shared
OliverJAsh commented
on Oct 10, 2018 ContributorAuthorMore actionsPlease can we re-open this issue? /cc Wesley Wigham (@weswigham) Mohamed Hegazy (@mhegazy)
(Sorry to pester here but I think this needs attention, as it's a very basic use case.)
- addedNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.and removedFixedA PR has been merged for this issueA PR has been merged for this issue
on Oct 11, 2018 Is there any way to help figuring this out. I have
declarationMapworking in a small toy project that I created to learn about how to setup a monorepo with project references.However, in our actual project repo when I use "Go To Definition" I get sent to the FILENAME.d.ts file of the referenced project. Even though I have a FILENAME.d.ts.map right next to it.
I tried setting TypeScript > TsServer:Log to verbose. And then tail the log file when I go to the definition. But nothing interesting shows up in the log file. I can't figure out if TS thought it wasn't supposed to look for a map file, if it looked but couldn't find, or if it found something but it wasn't valid.
Reacted by Patrick Vatterott, Maksim Kulichenko, Adrian Godong, Reinis Ivanovs and effectivetom- removedNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
on Mar 7, 2019 Oliver Joseph Ash (@OliverJAsh) your repro seems to be fixed in the latest versions of TS (I'm pretty sure we've had a continuous stream of improvements to this area since 3.0).
OliverJAsh commented
on Mar 14, 2019 ContributorAuthorMore actionsJust tested, it works! Thanks 🎉
- locked as resolved and limited conversation to collaborators
on Oct 21, 2025




TypeScript Version: 3.0.0-rc
Search Terms:
Code
Full reproduction case
tsc --build ./src/client/Expected behavior:
"Go to definition" should work for
fooidentifier insrc/client/main.ts.Actual behavior:
"Go to definition" does not work for
fooidentifier insrc/client/main.ts.