mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f7976fa52c
commit
9a2a2d9244
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user