Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor workspace context creation logic #17885

Open
wants to merge 8 commits into
base: v15/dev
Choose a base branch
from

Conversation

nielslyngsoe
Copy link
Member

@nielslyngsoe nielslyngsoe commented Jan 3, 2025

Instead of the specific Main Workspace Context creating extra Workspace Context Extensions, then this PR moves the logic so it happens by the initialization of the Workspace. Enabling Workspace Context Extensions to always be initialized no matter the specific Workspace API(Workspace Context) implementation.

This moves the single mode as a feature of extension-slot to a feature of the Extension Initializers. And as part of that work started implementing args object to be parsed for those. This is thought only done for the Single Mode, but could for v.16 be adopted for all args.

This fixes so any Workspace, will get extensions of type Workspace Contexts initialized.

If you initialized a Workspace Context without the use of the workspace element () then you will now need to implement a Workspace Context initialization on your own.

Here is a example of how that can be done:
new UmbExtensionsApiInitializer(api, umbExtensionsRegistry, 'workspaceContext', [api]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant