From a8700c117152ccd39b4963ac08c9b51ee63506cd Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Mon, 23 Apr 2018 12:57:58 +0300 Subject: [PATCH] schedule visual update for validating state - IDEA-190220 --- .../src/com/intellij/xdebugger/impl/XDebugSessionImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java index 6599a2d6711f..4f6c284340ce 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java @@ -395,9 +395,10 @@ public class XDebugSessionImpl implements XDebugSession { boolean active = ReadAction.compute(() -> isBreakpointActive(b)); if (active) { synchronized (myRegisteredBreakpoints) { - CustomizedBreakpointPresentation validatingPresentation = new CustomizedBreakpointPresentation(); - validatingPresentation.setIcon(b.getType().getValidatingIcon()); - myRegisteredBreakpoints.put(b, validatingPresentation); + myRegisteredBreakpoints.put(b, new CustomizedBreakpointPresentation()); + if (b instanceof XLineBreakpoint) { + updateBreakpointPresentation((XLineBreakpoint)b, b.getType().getValidatingIcon(), null); + } } handler.registerBreakpoint(b); }