From 1817b439cf3ef5488b14d22a49984223d3abcb2e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 7 Oct 2009 21:00:19 +0400 Subject: [PATCH] since we have background index updates, we can increase the amount of files in a refresh for which we need to show progress --- .../src/com/intellij/openapi/vfs/newvfs/RefreshSessionImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/RefreshSessionImpl.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/RefreshSessionImpl.java index 6fa9ebea5e09..6055bf174800 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/RefreshSessionImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/RefreshSessionImpl.java @@ -159,7 +159,7 @@ public class RefreshSessionImpl extends RefreshSession { final SyncSession syncSession = synchronizer.collectFilesToUpdate(); int filesCount = syncSession.getFilesToUpdate().size(); if (filesCount > 0) { - boolean runWithProgress = !ApplicationManager.getApplication().isUnitTestMode() && filesCount > 5; + boolean runWithProgress = !ApplicationManager.getApplication().isUnitTestMode() && filesCount > 50; if (runWithProgress) { Runnable process = new Runnable() { public void run() {