Skip to content
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

Fails to detect external refactoring usages #21

Closed
max-ellis opened this issue May 25, 2021 · 1 comment
Closed

Fails to detect external refactoring usages #21

max-ellis opened this issue May 25, 2021 · 1 comment

Comments

@max-ellis
Copy link
Collaborator

Context

In projects that have submodules, we cannot detect refactoring usages outside of the file that it occurs in.

Solution

Use the IntelliJ project structure API to add a submodule to the project structure as a source folder.

@max-ellis
Copy link
Collaborator Author

I have resolved this by using the IntelliJ ModuleRootManager API. I add the source and test root for each refactoring. If the root already exists in the module, I skip that root to avoid unnecessary indexing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant