[rd debugger] IJPL-233473 Fix pause action supported passing

(cherry picked from commit 43a87b61067d6e72d6d43b0ea40da76b6f95270e)

IJ-CR-192067

GitOrigin-RevId: 7e21733d3ba01f2020c9cbfa486d60df444f4a77
This commit is contained in:
Maksim Zuev
2026-02-20 00:07:22 +00:00
committed by intellij-monorepo-bot
parent e9a16628da
commit ef6ceb73a7
4 changed files with 9 additions and 3 deletions
@@ -321,7 +321,7 @@ fun XDebugSessionImpl.getSessionEventsFlow(
}
override fun settingsChanged() {
rawEvents.trySend { XDebuggerSessionEvent.SettingsChanged }
rawEvents.trySend { XDebuggerSessionEvent.SettingsChanged(currentSession.state()) }
}
override fun settingsChangedFromFrontend() {
@@ -301,7 +301,9 @@ class FrontendXDebuggerSession(
currentStackFrame.value = StackFrameUpdate.notifyChanged(newFrame)
}
is XDebuggerSessionEvent.BreakpointsMuted -> {}
XDebuggerSessionEvent.SettingsChanged -> {}
is XDebuggerSessionEvent.SettingsChanged -> {
updateState()
}
}
}
@@ -126,7 +126,9 @@ sealed interface XDebuggerSessionEvent {
) : EventWithState
@Serializable
object SettingsChanged : XDebuggerSessionEvent
class SettingsChanged(
override val state: XDebugSessionState,
) : EventWithState
@Serializable
data class BreakpointsMuted(val muted: Boolean) : XDebuggerSessionEvent
@@ -297,7 +297,9 @@ class XDebugSessionImpl @JvmOverloads constructor(
}
override fun setPauseActionSupported(isSupported: Boolean) {
if (sessionData.isPauseSupported == isSupported) return
sessionData.isPauseSupported = isSupported
myDispatcher.getMulticaster().settingsChanged()
}
var isReadOnly: Boolean