Only trigger externalAnnotator when the file system is in sync

I have an externalAnnotator for a command line tool.  Since the command line tool reads the files off the disc, when the psi file and the disc file are out of sync errors from stale versions of the file are incorrectly placed.  I have tried adding artificial delays, but that only somewhat works.  Is there a clean way to have externalAnnotator wait until the files are in sync, and only update then?

Thanks!

0
1 comment

No, there is no such way. A correct approach is saving the content of an editor to some temp. file and running an annotator on it.

0

Please sign in to leave a comment.