How to Refresh Project Tool Window Follow
Hi, it's me again.
I have a folder in project tree:
And I can generate an xml in ChangeLog folder. But I can't see generated xml files until I clicked on ChangeLog folder and re-open it. It triggers my BunkFileListener, so I need to auto-refresh for Project Tool Window or at least ChangeLog folder.
Is there a way to do it in code or is it a bug or something?
Please sign in to leave a comment.
You need to refresh the virtual file system. VirtualFileManager.getInstance().asyncRefresh(null) is the easiest way to do that.
Thanks for the reply, it worked.