fix: wait for slot declaration via slots.inject and id list-slot entries

This commit is contained in:
2026-09-04 15:22:37 +08:00
parent ef9508e597
commit 92289b17ed
3 changed files with 32 additions and 6 deletions
+14 -2
View File
@@ -556,11 +556,23 @@ function WorkbenchOverlay() {
function apply(ctx) {
injectStyles();
ctx.effect(
() => ctx.slots.register({ name: "sidebar.footer.action" }, WorkbenchFooterAction),
() => ctx.slots.inject(
"sidebar.footer.action",
() => ctx.slots.register(
{ name: "sidebar.footer.action", id: "gyxx-workbench.footer" },
WorkbenchFooterAction
)
),
"gyxx-workbench: footer action"
);
ctx.effect(
() => ctx.slots.register({ name: "shell.overlay" }, WorkbenchOverlay),
() => ctx.slots.inject(
"shell.overlay",
() => ctx.slots.register(
{ name: "shell.overlay", id: "gyxx-workbench.overlay" },
WorkbenchOverlay
)
),
"gyxx-workbench: overlay"
);
}
File diff suppressed because one or more lines are too long