You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That saves a step in the setup and avoids running an initial build to generate AppComponentMerged. The downside is that the IDE doesn't know that AppComponent will implement the contributed components and inheritance in the IDE doesn't work properly. The inheritance chain from:
Note that the situation for Anvil itself is different, because it's able to modify source code.
I'm curious: Would a compiler plugin be able to automatically add the Merged component as a base type from which to inherit? I.e., provide the best of both worlds?
Right now the API for components looks like this:
We could turn it into the follow and generate the real component ourselves:
That saves a step in the setup and avoids running an initial build to generate
AppComponentMerged
. The downside is that the IDE doesn't know thatAppComponent
will implement the contributed components and inheritance in the IDE doesn't work properly. The inheritance chain from:To this:
There is no connection between
ContributedComponent
andAppComponent
.I personally prefer giving the IDE more power and add the interface manually.
Note that the situation for Anvil itself is different, because it's able to modify source code.
The text was updated successfully, but these errors were encountered: