fix: preserve plugin activation errors

This commit is contained in:
imccyu
2026-07-30 18:54:35 +08:00
committed by imccyu
parent 77567b22a1
commit a691e2ab16
12 changed files with 89 additions and 36 deletions
+3 -2
View File
@@ -160,10 +160,11 @@ export class Entry {
} finally {
this._initTask = undefined
}
this.fiber?.await().finally(() => {
const notify = () => {
if (this.loader.getTasks().length) return
this.ctx.reflect.notify(['loader'])
})
}
void this.fiber?.await().then(notify, notify)
}
private async _init() {