From 9a2a2d9244ad41717cb8335786e04c5fa385b43e Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Thu, 29 Aug 2024 14:18:48 +0200 Subject: [PATCH] [debugger] refresh everything on async stack traces switch before this top frame was not refreshed and some parts of the stack may not be updated because of that GitOrigin-RevId: c3fdf4ecadf2a441c109fd701fde9d9d6532b50f --- .../intellij/debugger/actions/AsyncStacksToggleAction.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/actions/AsyncStacksToggleAction.kt b/java/debugger/impl/src/com/intellij/debugger/actions/AsyncStacksToggleAction.kt index c0dea795dd3c..f689352c4481 100644 --- a/java/debugger/impl/src/com/intellij/debugger/actions/AsyncStacksToggleAction.kt +++ b/java/debugger/impl/src/com/intellij/debugger/actions/AsyncStacksToggleAction.kt @@ -1,11 +1,11 @@ -// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.debugger.actions +import com.intellij.debugger.engine.JavaDebugProcess import com.intellij.openapi.actionSystem.ActionUpdateThread import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.project.DumbAwareToggleAction import com.intellij.openapi.util.Key -import com.intellij.xdebugger.XDebugSession import com.intellij.xdebugger.impl.XDebugSessionImpl import com.intellij.xdebugger.impl.ui.DebuggerUIUtil @@ -16,7 +16,7 @@ class AsyncStacksToggleAction : DumbAwareToggleAction() { override fun setSelected(e: AnActionEvent, state: Boolean) { ASYNC_STACKS_ENABLED.set(DebuggerUIUtil.getSessionData(e), state) - DebuggerAction.refreshViews(e.getData(XDebugSession.DATA_KEY)) + JavaDebugProcess.getCurrentDebugProcess(e)?.session?.refresh(true) } override fun update(e: AnActionEvent) {