-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Go to definition" not working with declarationMap
and projects references
#25662
Comments
@weswigham I just tested this with 3.0.1 and I can still reproduce. Any ideas? Can we re-open? |
@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. |
Can 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 |
@weswigham This is not fixed. Just tested with TS 3.0.3. Full repro: https://github.com/OliverJAsh/typescript-3-client-server-shared |
Please can we re-open this issue? /cc @weswigham @mhegazy (Sorry to pester here but I think this needs attention, as it's a very basic use case.) |
Is there any way to help figuring this out. I have 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. |
@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). |
Just tested, it works! Thanks 🎉 |
TypeScript Version: 3.0.0-rc
Search Terms:
Code
Full reproduction case
tsc --build ./src/client/
Expected behavior:
"Go to definition" should work for
foo
identifier insrc/client/main.ts
.Actual behavior:
"Go to definition" does not work for
foo
identifier insrc/client/main.ts
.The text was updated successfully, but these errors were encountered: