File cache conflict: avoid message

Hi everyone!

In my plugin after external compilation I have a listener to reformat the generated code by compiler and refresh de gen directory.

Now, after reformat the code I refresh the gen directory asynchronous and recursively.

The problem is that since I reformat the generated code, I guess the file cache is invalidated and the IDE shows a message of "File cache conflict" with the 3 tipical options.

The question is:
Is there any way to refresh a directory recursively indicating to always load File System Changes?? or,

exists any other better way to achieve my purposes??

Thanks!!!!

2 comments
Comment actions Permalink

When you invoke an asynchronous refresh, you can pass a Runnable which will get executed after the refresh is done. You should perform your reformatting in that runnable.

0
Comment actions Permalink

It works! Thanks!

0

Please sign in to leave a comment.