IDEA-141464 Debugger popup dissappears when trying to hover mouse on "+"
authorEgor.Ushakov <egor.ushakov@jetbrains.com>
Thu, 25 Jun 2015 05:01:26 +0000 (08:01 +0300)
committerEgor.Ushakov <egor.ushakov@jetbrains.com>
Thu, 25 Jun 2015 05:01:26 +0000 (08:01 +0300)
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/evaluate/quick/common/ValueLookupManager.java

index a3c591b667cf52513507ee5f92cbb4af836afdc6..2bde90428dd22cb3ffd7e61ca1db7b8c3c215cd1 100644 (file)
@@ -119,7 +119,7 @@ public class ValueLookupManager extends EditorMouseAdapter implements EditorMous
               showHint(handler, editor, point, type);
             }
           }
-        }, handler.getValueLookupDelay(myProject));
+        }, getDelay(handler));
       }
     }
     else {
@@ -127,6 +127,14 @@ public class ValueLookupManager extends EditorMouseAdapter implements EditorMous
     }
   }
 
+  private int getDelay(QuickEvaluateHandler handler) {
+    int delay = handler.getValueLookupDelay(myProject);
+    if (myRequest != null && !myRequest.isHintHidden()) {
+      delay = Math.max(100, delay); // if hint is showing, delay should not be too small, see IDEA-141464
+    }
+    return delay;
+  }
+
   public void hideHint() {
     if (myRequest != null) {
       myRequest.hideHint();