IDEA-141464 Debugger popup dissappears when trying to hover mouse on "+"

This commit is contained in:
Egor.Ushakov
2015-06-25 08:01:26 +03:00
parent 09fa2560a1
commit e7c2570fe3
@@ -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();