mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +07:00
DS-4721 JupyterVarsFrameAccessor freeze
GitOrigin-RevId: e30ba4de7041216f4c1774cc7234f2a41f5c5022
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cdf4bfe0fc
commit
49a583aa9e
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.jetbrains.python.debugger
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.xdebugger.frame.XCompositeNode
|
||||
import com.intellij.xdebugger.frame.XValue
|
||||
import com.intellij.xdebugger.frame.XValueChildrenList
|
||||
@@ -60,15 +61,17 @@ fun addGroupValues(groupName: String,
|
||||
nameSuffix: String?) {
|
||||
val group = object : PyXValueGroup(groupName, groupType) {
|
||||
override fun computeChildren(node: XCompositeNode) {
|
||||
val list: XValueChildrenList? =
|
||||
if (groupType == ProcessDebugger.GROUP_TYPE.DEFAULT) {
|
||||
getDefaultGroupNodes(groupElements, nameSuffix)
|
||||
}
|
||||
else {
|
||||
myDebugProcess?.let { getSpecialGroupNodes(it, nameSuffix, groupType) }
|
||||
}
|
||||
|
||||
list?.let { node.addChildren(list, true) }
|
||||
if (node.isObsolete) return
|
||||
ApplicationManager.getApplication().executeOnPooledThread {
|
||||
val list: XValueChildrenList? =
|
||||
if (groupType == ProcessDebugger.GROUP_TYPE.DEFAULT) {
|
||||
getDefaultGroupNodes(groupElements, nameSuffix)
|
||||
}
|
||||
else {
|
||||
myDebugProcess?.let { getSpecialGroupNodes(it, nameSuffix, groupType) }
|
||||
}
|
||||
list?.let { node.addChildren(list, true) }
|
||||
}
|
||||
}
|
||||
|
||||
override fun getIcon(): Icon {
|
||||
|
||||
Reference in New Issue
Block a user