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) {