From f2945934774e46329fa89d1a2c7356d470f28e78 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Mon, 4 Apr 2011 22:47:09 +0200 Subject: [PATCH] change rollback --- .../openapi/vfs/impl/local/LocalFileSystemImpl.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/LocalFileSystemImpl.java b/platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/LocalFileSystemImpl.java index ccb9d2e0bb96..dfdb178a1204 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/LocalFileSystemImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/LocalFileSystemImpl.java @@ -144,13 +144,12 @@ public final class LocalFileSystemImpl extends LocalFileSystemBase implements Ap } } - // IMPORTANT! VFS refresh is a MUST here, because otherwise VirlualFile objects will be leaked in the - // components listening to VFS and relying on VFS contract - ApplicationManager.getApplication().runWriteAction(new Runnable() { - public void run() { - refresh(false); - } - }); + // grand VFS refresh significantly slows down local tests and generally not needed + //ApplicationManager.getApplication().runWriteAction(new Runnable() { + // public void run() { + // refresh(false); + // } + //}); myRootsToWatch.clear();