IntelliJ IDEA (2024.1) stops detecting TS usages if Gradle modules are involved. This means:
- "Find usages" shows no results
- Refactoring operations do not work correctly
- "Unused function" warning is shown
This is a minimal reproducible example of the issue.
- Open the project in IDEA and run
pnpm install -r
to set up the pnpm workspace - Navigate to exportedFunction declaration and observe that it's usage in app module is not recognised.
- Open settings.gradle.kts and comment out the
includes(...)
statements, then load Gradle changes and see that "usages" are working as expected