I've set up a monorepo with typescript using Lerna, but I'm encountering a bug or misconfiguration related to the "find usages" feature.
You can find a demo of the issue in my GitHub repo here: https://github.com/mcclaskc/IntellijLernaExample
Let's say we have package A with function a()
, and package B which depends on A in its package.json file and uses a()
.
In Intellij, when I try to "find usages" of a()
at its declaration in package A, it doesn't show any results. However, if I click on the usage of a()
within package B and then try to "go to declaration" of a()
, it successfully navigates me back to the declaration in package A.
Given that "go to declaration" is working, I believe Intellij recognizes the dependency in one direction, but I need to determine how to make it work in both directions for "find usages".
So far, I've tried modifying the scope options in Find Usages, but without success.