Change code in the editor quickly results in a dialog

Hi, guys!
Now if I change code in the editor quickly, a dialog is displayed that there is inconsistency in the editor and on the filesystem.
It may because I send the content in the editor to other process by WebSocket that it can’t write to the file system in time. I find this dialog in class FileResourceResolver.shouldOverwrite function. Now I want to know can I do something to avoid this dialog.
Thanks very much.