mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-02 04:35:22 +07:00
[rd debugger] IJPL-221120 LUX psi viewer tab
GitOrigin-RevId: 27b23e55c243db6c268a3fe9e7cdec56e0636a94
This commit is contained in:
committed by
intellij-monorepo-bot
parent
caec440e57
commit
ccdaaa8275
@@ -9,7 +9,6 @@ import com.intellij.debugger.engine.evaluation.EvaluationContextImpl
|
||||
import com.intellij.debugger.engine.events.SuspendContextCommandImpl
|
||||
import com.intellij.debugger.memory.action.DebuggerTreeAction
|
||||
import com.intellij.dev.psiViewer.PsiViewerDialog
|
||||
import com.intellij.idea.AppMode
|
||||
import com.intellij.java.dev.JavaDevBundle
|
||||
import com.intellij.lang.Language
|
||||
import com.intellij.notification.NotificationType
|
||||
@@ -40,7 +39,6 @@ internal class PsiViewerDebugAction : XDebuggerTreeBackendOnlyActionBase() {
|
||||
override fun perform(value: XValue, nodeName: @NlsSafe String, e: AnActionEvent) {
|
||||
val project = e.project ?: return
|
||||
val debugProcess = JavaDebugProcess.getCurrentDebugProcess(e)
|
||||
val debugSessionProxy = DebuggerUIUtil.getSessionProxy(e)
|
||||
val suspendContext = debugProcess?.suspendManager?.getPausedContext()
|
||||
suspendContext?.managerThread?.schedule(object : SuspendContextCommandImpl(suspendContext) {
|
||||
override fun contextAction(suspendContext: SuspendContextImpl) {
|
||||
@@ -69,14 +67,14 @@ internal class PsiViewerDebugAction : XDebuggerTreeBackendOnlyActionBase() {
|
||||
fun showDebugTab() {
|
||||
val debugSession = debugProcess.session?.xDebugSession ?: return
|
||||
// TODO: [XDebugSessionImpl.getUI] in split
|
||||
val runnerLayoutUi = debugSessionProxy?.sessionTab?.ui ?: return
|
||||
val runnerLayoutUi = debugSession.ui ?: return
|
||||
val psiViewerPanel = PsiViewerDebugPanel(project, editor, language, nodeName, debugSession, fileName)
|
||||
val id = PsiViewerDebugPanel.getTitle(nodeName, PsiViewerDebugSettings.getInstance().watchMode)
|
||||
val content = runnerLayoutUi.createContent(id, psiViewerPanel, id, null, null)
|
||||
runnerLayoutUi.addContent(content)
|
||||
runnerLayoutUi.selectAndFocus(content, true, true)
|
||||
}
|
||||
if (PsiViewerDebugSettings.getInstance().showDialogFromDebugAction || AppMode.isRemoteDevHost()) showDialog() else showDebugTab()
|
||||
if (PsiViewerDebugSettings.getInstance().showDialogFromDebugAction) showDialog() else showDebugTab()
|
||||
}
|
||||
} catch (e: EvaluateException) {
|
||||
XDebuggerManagerImpl.getNotificationGroup().createNotification(
|
||||
|
||||
Reference in New Issue
Block a user