Hello, for example in PhpStorm it’s possible to mark a directory as a Resource Root or Source Root, etc. What’s the best way to obtain the list of resource roots in my plugin?
ModuleRootManager
and also ProjectRootManager
should provide what you need.
There’s BaseProjectDirectories
if you’re only interested in the top-level directories of a project.