chore: cleanup
parent
ae500ea01d
commit
0f30115205
|
|
@ -47,7 +47,6 @@ export namespace FileWatcher {
|
|||
const subscribe: ParcelWatcher.SubscribeCallback = (err, evts) => {
|
||||
if (err) return
|
||||
for (const evt of evts) {
|
||||
log.info("event", evt)
|
||||
if (evt.type === "create") Bus.publish(Event.Updated, { file: evt.path, event: "add" })
|
||||
if (evt.type === "update") Bus.publish(Event.Updated, { file: evt.path, event: "change" })
|
||||
if (evt.type === "delete") Bus.publish(Event.Updated, { file: evt.path, event: "unlink" })
|
||||
|
|
@ -83,7 +82,6 @@ export namespace FileWatcher {
|
|||
)
|
||||
|
||||
export function init() {
|
||||
// if (!Flag.OPENCODE_EXPERIMENTAL_WATCHER) return
|
||||
state()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue