mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
committed by
intellij-monorepo-bot
parent
e9a16628da
commit
ef6ceb73a7
+1
-1
@@ -321,7 +321,7 @@ fun XDebugSessionImpl.getSessionEventsFlow(
|
||||
}
|
||||
|
||||
override fun settingsChanged() {
|
||||
rawEvents.trySend { XDebuggerSessionEvent.SettingsChanged }
|
||||
rawEvents.trySend { XDebuggerSessionEvent.SettingsChanged(currentSession.state()) }
|
||||
}
|
||||
|
||||
override fun settingsChangedFromFrontend() {
|
||||
|
||||
+3
-1
@@ -301,7 +301,9 @@ class FrontendXDebuggerSession(
|
||||
currentStackFrame.value = StackFrameUpdate.notifyChanged(newFrame)
|
||||
}
|
||||
is XDebuggerSessionEvent.BreakpointsMuted -> {}
|
||||
XDebuggerSessionEvent.SettingsChanged -> {}
|
||||
is XDebuggerSessionEvent.SettingsChanged -> {
|
||||
updateState()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user