Файли
openidea/crates/ide-plugin/tests/fixtures/settings-controls
Bruno Valladares c1d552e578 feat(plugins): radio, segmented, slider, color and checkbox-list controls for plugin settings (#7693)
Plugin API 1.21 adds optional settings schema fields: presentation (select, radio, segmented, slider, color, checkbox-list), enumOptions (label, description, icon per enum value), minimum / maximum / step, and when conditions on another setting of the page. New src/ui primitives RadioGroup, SegmentedControl, CheckboxGroup, Slider and ColorInput. Schemas that use none of them render as before; manifests admitting an older API keep ignoring JSON Schema bounds.

Review changes: the fields are gated on API 1.21 (1.20 shipped in 0.1.57), and the colour swatch fill is stretched inside its button.

Part of #7688.

Co-authored-by: Bruno0416 <[email protected]>
2026-12-03 21:00:11 +08:00
..

Settings controls fixture (API 1.21)

A declarative plugin (no code) whose settings page uses every control of API 1.21:

  • density: a segmented control whose options have labels, a hint and light/dark icons;
  • rowHeight: an integer slider shown only while density is custom (when … equals);
  • folders: radio buttons with a hint under each option;
  • folderColor: a #rrggbb colour shown only for some folders values (when … in);
  • packs: a checkbox list of a string list's enum, with an option icon;
  • opacity: a number slider with a fractional step;
  • arrows: an ordinary drop-down that shows enumOptions labels instead of the values.

locales/zh-CN.json translates the titles and option labels. Install or link this directory with openidea-plugin link and open Settings › Plugins › Settings Controls.