feat: give plugins their own settings and one settings screen

This commit is contained in:
LukeGus committed 2026-09-22 18:31:19 -05:00
1 parent cc15559ea1
commit 49f0286a14
66 files changed
+36497 -451

No files matched your search

+5
View File
@@ -19,6 +19,7 @@ import { Bot } from "lucide-react";
import { unregisterRailItem } from "@/sidebar/rail-items";
import { unregisterTabComponent } from "@/shell/tabUtils";
import { getPlugins, type PluginSummary } from "@/api/plugins-api";
import { syncHostPluginsTab } from "@/settings/host-plugins-tab";
import {
declareActionSlot,
registerAction,
@@ -122,6 +123,10 @@ export function applyPluginState(plugins: PluginSummary[]): void {
pluginEnabled = nextEnabled;
disabledTabTypes = nextDisabledTabs;
applyFirstPartyActions(nextEnabled);
// The host editor's Plugins tab exists only while something fills it, so it
// is re-synced whenever the plugin list changes rather than declared once.
syncHostPluginsTab(plugins);
}
export async function refreshPluginState(): Promise<PluginSummary[]> {