Prevent SimpleColoredTextIcon from fetching coroutine stack frame data

(cherry picked from commit 64ffb00f4cf080017d3a4a4c5cb94e4a31a98b73)

IJ-MR-12400

GitOrigin-RevId: cff47b93000f6fb794ed2ad06e9654e5a95f4dab
This commit is contained in:
Nikita Nazarov
2021-07-29 17:28:43 +03:00
committed by intellij-monorepo-bot
parent 4b595076e4
commit 7f50e457ae
3 changed files with 3 additions and 4 deletions

View File

@@ -58,8 +58,9 @@ class CoroutineStackTraceProvider(private val executionContext: DefaultExecution
if (baseContinuationImpl != null) {
restoredBaseContinuationImpl.add(baseContinuationImpl)
observedFrame = baseContinuationImpl.nextContinuation
} else
} else {
break
}
}
return restoredBaseContinuationImpl
}

View File

@@ -113,8 +113,7 @@ class SimpleColoredTextIconPresentationRenderer {
val icon = fromState(infoData.descriptor.state)
val hasChildren = infoData.stackTrace.isNotEmpty() || infoData.creationStackTrace.isNotEmpty()
val label = SimpleColoredTextIcon(icon, hasChildren)
val label = SimpleColoredTextIcon(icon, !infoData.isCreated())
label.append("\"")
label.appendValue(infoData.descriptor.formatName())
label.append("\": ${infoData.descriptor.state}")

View File

@@ -70,7 +70,6 @@ class XCoroutineView(val project: Project, val session: XDebugSession) :
private fun createToolbar(): ActionToolbarImpl {
val framesGroup = DefaultActionGroup()
//val actionsManager = CommonActionsManager.getInstance()
framesGroup
.addAll(ActionManager.getInstance().getAction(XDebuggerActions.FRAMES_TOP_TOOLBAR_GROUP))
val toolbar = ActionManager.getInstance().createActionToolbar(