From e6665d77c174147d3b230df31d29fa1a20525b21 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 6 May 2013 18:40:05 +0200 Subject: [PATCH] an assertion for uncoupled before/after vfs events --- .../com/intellij/openapi/fileTypes/impl/IgnoredFileCache.java | 3 +++ 1 file changed, 3 insertions(+) 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); }