added write action assertion back for the case of process one event which was removed accidentally

This commit is contained in:
Alexey Kudravtsev
2017-06-30 17:43:07 +03:00
parent 87652a9ed0
commit 3d71a47afc
@@ -665,6 +665,7 @@ public class PersistentFSImpl extends PersistentFS implements ApplicationCompone
}
private void processEvent(@NotNull VFileEvent event) {
ApplicationManager.getApplication().assertWriteAccessAllowed();
// optimisation: skip all groupings
if (event.isValid()) {
BulkFileListener publisher = myEventBus.syncPublisher(VirtualFileManager.VFS_CHANGES);