From 5f38541f5fcdcdf2a55113a54d8fa461881a35d4 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 23 Jun 2014 13:54:28 +0200 Subject: [PATCH] DumbService queuing & cancellation logging --- .../src/com/intellij/openapi/project/DumbServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/openapi/project/DumbServiceImpl.java b/platform/platform-impl/src/com/intellij/openapi/project/DumbServiceImpl.java index f3e7da762f91..188f42c23ce4 100644 --- a/platform/platform-impl/src/com/intellij/openapi/project/DumbServiceImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/project/DumbServiceImpl.java @@ -82,6 +82,7 @@ public class DumbServiceImpl extends DumbService implements Disposable { @Override public void cancelTask(@NotNull DumbModeTask task) { + if (ApplicationManager.getApplication().isInternal()) LOG.info("cancel " + task); ProgressIndicatorEx indicator = myProgresses.get(task); if (indicator != null) { indicator.cancel(); @@ -143,6 +144,7 @@ public class DumbServiceImpl extends DumbService implements Disposable { } private void scheduleCacheUpdate(@NotNull final DumbModeTask task, boolean forceDumbMode) { + if (ApplicationManager.getApplication().isInternal()) LOG.info("schedule " + task); final Application application = ApplicationManager.getApplication(); if (application.isUnitTestMode() ||