feat: add descriptions to plugin host enable toggles

This commit is contained in:
LukeGus committed 2026-09-27 14:14:51 -05:00
1 parent c7fd900732
commit 7b1e0294aa
18 files changed
+53 -6

No files matched your search

@@ -301,6 +301,21 @@ describe("contributes.settings", () => {
expect(errors.join(" ")).toContain("enableLabelKey");
});
it("accepts an enableDescriptionKey and rejects an empty one", () => {
const host = { enableKey: "enableThing", enableLabelKey: "k", fields: [] };
expect(
validateManifest(
withSettings({ host: { ...host, enableDescriptionKey: "d" } }),
),
).toEqual([]);
expect(
validateManifest(
withSettings({ host: { ...host, enableDescriptionKey: "" } }),
).join(" "),
).toContain("enableDescriptionKey");
});
it("rejects a key that would not be index-safe", () => {
const errors = validateManifest(
withSettings({