mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
global bus
This commit is contained in:
parent
28c6320cd6
commit
d88912abf0
1 changed files with 4 additions and 0 deletions
|
|
@ -35,6 +35,10 @@ export namespace Bus {
|
|||
for (const sub of [...wildcard]) {
|
||||
sub(event)
|
||||
}
|
||||
GlobalBus.emit("event", {
|
||||
directory: Instance.directory,
|
||||
payload: event,
|
||||
})
|
||||
},
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue