Tell IntelliJ to reload generated project files

We have a custom build system with some configuration. When the configuration changes, we have a script that can generate updated iml files and files under the .idea folder.

I've noticed that if I just allow this script to run from my plugin, not all changes seem to always be properly loaded.

Is there a method I can call somewhere that will tell IntelliJ to reload all project files after I edit them?

0
2 comments
Avatar
Permanently deleted user

VirtualFileSystem.refresh() should do the trick.  You could make a project listener, too, but it doesn't sound to me like you'd need that.

1
Avatar
Permanently deleted user

Thanks!~

0

Please sign in to leave a comment.