From afe00d5668a02679cf224a19c6bd46be47eee3e7 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Tue, 14 Jan 2025 20:34:19 -0600 Subject: [PATCH] Update addons - add event for pause/unpause --- src/addons/addons/debugger/module.js | 7 +++++++ src/addons/generated/upstream-meta.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/addons/addons/debugger/module.js b/src/addons/addons/debugger/module.js index f3c536449f1..00d6f751171 100644 --- a/src/addons/addons/debugger/module.js +++ b/src/addons/addons/debugger/module.js @@ -101,6 +101,13 @@ export const setPaused = (_paused) => { if (didChange) { paused = _paused; eventTarget.dispatchEvent(new CustomEvent("change")); + + // TW: events for extensions + if (paused) { + vm.runtime.emit("RUNTIME_PAUSED"); + } else { + vm.runtime.emit("RUNTIME_UNPAUSED"); + } } // Don't check didChange as new threads could've started that we need to pause. diff --git a/src/addons/generated/upstream-meta.json b/src/addons/generated/upstream-meta.json index 4a91cf5a107..27f3f94c6dc 100644 --- a/src/addons/generated/upstream-meta.json +++ b/src/addons/generated/upstream-meta.json @@ -1 +1 @@ -{"commit":"0d357b5"} \ No newline at end of file +{"commit":"c237cfa"} \ No newline at end of file