[debugger] Extended dump fix: create a SuspendContextCommand to call getAllItems when suspendContext is available.

GitOrigin-RevId: a8a37d953a42168fdd79c3d30f2c5f7e12dca5d9
This commit is contained in:
Maria Sokolova
2025-03-18 22:46:24 +00:00
committed by intellij-monorepo-bot
parent e5fdee826d
commit 08451a7a8e
@@ -122,7 +122,9 @@ class ThreadDumpAction : DumbAwareAction() {
val timeout = Registry.intValue("debugger.thread.dump.suspension.timeout.ms", 500).milliseconds
try {
suspendAllAndEvaluate(context, timeout) { suspendContext ->
getAllItems(suspendContext)
withDebugContext(suspendContext) {
getAllItems(suspendContext)
}
}
}
catch (_: TimeoutCancellationException) {