From ae4f05cf62d079a2e03254cc356ed63c1523bc1c Mon Sep 17 00:00:00 2001 From: Yan Zhulanow Date: Fri, 30 Nov 2018 16:39:01 +0900 Subject: [PATCH] Remove unneeded usage of the blocking `invokeInManagerThread()` (KT-24282) --- .../idea/debugger/stepping/KotlinSteppingCommandProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/stepping/KotlinSteppingCommandProvider.kt b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/stepping/KotlinSteppingCommandProvider.kt index 356ac09bf16..879f8dc9d3f 100644 --- a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/stepping/KotlinSteppingCommandProvider.kt +++ b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/stepping/KotlinSteppingCommandProvider.kt @@ -93,7 +93,7 @@ class KotlinSteppingCommandProvider : JvmSteppingCommandProvider() { } val file = sourcePosition.elementAt.containingFile - val location = suspendContext.debugProcess.invokeInManagerThread { suspendContext.frameProxy?.location() } ?: return null + val location = suspendContext.frameProxy?.location() ?: return null if (isInSuspendMethod(location) && !isOnSuspendReturnOrReenter(location) && !isLastLineLocationInMethod(location)) { return DebugProcessImplHelper.createStepOverCommandWithCustomFilter( suspendContext, ignoreBreakpoints, KotlinSuspendCallStepOverFilter(sourcePosition.line, file, ignoreBreakpoints)