Файли
openidea/crates/ide-plugin/tests/fixtures/settings-controls/plugin.toml
T
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

10 рядки
405 B
TOML

id = "settings-controls"
name = "Settings Controls"
version = "0.1.0"
description = "Test fixture for the settings controls of API 1.21: radio, segmented, slider, colour and checkbox-list settings, labelled enum options with icons, and settings shown only for some values of another, no code."
engines.openidea = "^1.21"
[contributes.settings]
title = "Settings Controls"
schema = "settings.schema.json"