-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
app: PluginGroups and DefaultPlugins #744
Conversation
Open question: should we deprecate |
nice, way more generic than my proposition 👍
Strictly from an api point of view, it doesn't seem intuitive when I want to replace, to first |
I would say yes if you want to promote the existence / usage of other plugin groups than |
Happy to discuss it, but that was an intentional omission. I don't really want to create the idea that you are "replacing" a plugin of a given type. It produces a false correlation between the two plugins when there isn't really anything forcing them to be "the same". Additionally, registration order might need to be different for plugins that replace other plugins. Semantically I think I would prefer it if "replacement" was "disable X"+"insert Y at some location". instead of "replace X with Y"
Yeah I think you're right. I also generally like there to be "exactly one way of doing things". |
Something like |
Yeah i think for now I'd prefer it if we kept the API small. If "why can't I replace ergonomically" is a common papercut we can revisit this (and you can always use extension methods to add your own |
Resolves #65
Alternative to #721
This adds the concept of a
PluginGroup
which is an "ordered collection of plugins, where each plugin can be enabled or disabled".It migrates the "default plugins" to a
DefaultPlugins
plugin group:You can also define custom plugin groups:
Or disable plugins:
Or "replace" plugins: