fix: wait for slot declaration via slots.inject and id list-slot entries
This commit is contained in:
@@ -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"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user