Skip to content

IntelliJ IDEA (2024.1) stops detecting TS usages if Gradle modules are involved.

Notifications You must be signed in to change notification settings

cannonrush/ts-usages-with-modules

Repository files navigation

"Unused" warning for TypeScript in a Gradle module

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.

  1. Open the project in IDEA and run pnpm install -r to set up the pnpm workspace
  2. Navigate to exportedFunction declaration and observe that it's usage in app module is not recognised.
  3. Open settings.gradle.kts and comment out the includes(...) statements, then load Gradle changes and see that "usages" are working as expected

About

IntelliJ IDEA (2024.1) stops detecting TS usages if Gradle modules are involved.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published