Skip to content

Conversation

siketyan
Copy link
Member

@siketyan siketyan commented Jul 8, 2025

Fixes #180

When a project has multiple root folders, the plugin couldn't find the correct base directory which contains the opened file. Project.guessProjectDir() doesn't support multi-root projects, so I replaced it with Project.getBaseDirectories().

Manually tested in both a simple project (sandbox) and a multi-root project (the reproduction repo)

@siketyan siketyan requested review from denbezrukov and ematipico July 8, 2025 12:48
@siketyan siketyan self-assigned this Jul 8, 2025
Copy link

@PatrykMilewski PatrykMilewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@siketyan siketyan merged commit 08ab30f into main Jul 9, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

🐛 Reformatting doesn't work in an IntelliJ project with multiple modules

3 participants