Skip to content

Commit

Permalink
Update addons - add event for pause/unpause
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Jan 15, 2025
1 parent 5f4cbcc commit afe00d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/addons/addons/debugger/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/addons/generated/upstream-meta.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"commit":"0d357b5"}
{"commit":"c237cfa"}

0 comments on commit afe00d5

Please sign in to comment.