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?
Please sign in to leave a comment.
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.
Thanks!~