fix(plugins): restore activation state wrapper

This commit is contained in:
Peter Steinberger
2026-04-03 15:59:16 +01:00
parent 0b74755894
commit 7e2b26f77b

View File

@@ -197,6 +197,10 @@ export function resolvePluginActivationState(params: {
config: params.sourceConfig ?? params.config,
rootConfig: params.sourceRootConfig ?? params.rootConfig,
});
const explicitlyConfiguredBundledChannel =
params.origin === "bundled" &&
explicitSelection.explicitlyEnabled &&
explicitSelection.reason === "channel enabled in config";
if (!params.config.enabled) {
return {
@@ -245,7 +249,7 @@ export function resolvePluginActivationState(params: {
reason: "selected memory slot",
};
}
if (params.config.allow.length > 0 && !explicitlyAllowed) {
if (params.config.allow.length > 0 && !explicitlyAllowed && !explicitlyConfiguredBundledChannel) {
return {
enabled: false,
activated: false,