diff --git a/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/IgnoredFileCache.java b/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/IgnoredFileCache.java index e3f15e0bac27..d0ed91c37b67 100644 --- a/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/IgnoredFileCache.java +++ b/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/IgnoredFileCache.java @@ -48,6 +48,9 @@ class IgnoredFileCache { @Override public void before(@NotNull List events) { // during VFS event processing the system may be in inconsistent state, don't cache it + if (!myEnableCache) { + LOG.error("VFS before event received without a matching after: " + events); + } myEnableCache = false; clearCacheForChangedFiles(events); }