Workspace with TS packages: Go to references IDE command is simply not working #9802
Replies: 4 comments 3 replies
-
Hey, this does look like an interesting edge case. A few thoughts:
|
Beta Was this translation helpful? Give feedback.
-
Also, my guess is that it does not only affect "Go to references" but this should also impact every code action like renaming, auto update import path when moving file etc... |
Beta Was this translation helpful? Give feedback.
-
I tried with WebStorm IDE, it works perfectly. Most likely because they load in memory all the packages. Which I am OK with so I wish VSCode would offer that option 🤔 |
Beta Was this translation helpful? Give feedback.
-
Are there any updates on this? Or is the best option still to set it up like in the video? |
Beta Was this translation helpful? Give feedback.
-
Summary
I found that since Turborepo advises not to use typescript references and not to have a root tsconfig, tsserver can't know about package references. So if I open my project on VSCode and try to see all the references of a function, it won't list anything until the referenced project is opened.
I am wondering what are your thoughts on this, can the DX be improved in some ways that I am not aware of?
CleanShot.2025-01-25.at.11.48.48.mp4
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions