feat(plugins): editor decorations with their own colors (API 1.17) (#5957)

Plugin API 1.17: decorations.set-styled (SDK host::set_styled_decorations) lets editor decoration items carry their own #rrggbb / #rrggbbaa foreground and background, for colors the theme palette lacks (e.g. a TODO highlighter's user-chosen colors).

- Host validates and normalizes colors (anything else is Invalid); an item with colors may leave style empty; set ids, limits and clear are shared with set / set-markdown.
- Editor paints the range with inline color / background-color; the after label takes the foreground only; the frontend re-checks the hex format.
- SDK types, wrapper and mock (shared replace/limit helper for the three decoration kinds); decorations fixture gains a styled command.
- Package openidea:[email protected].0, engine 1.17.0, components rebuilt; docs list 1.16 as shipped with 0.1.52.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-26 03:40:40 +08:00
1 джерело e74edbcedc
коміт bfbc70a438
181 files changed
+618 -214

No files matched your search

Бінарний файл не відображається.
+1 -1
Переглянути файл
@@ -1 +1 @@
3e739b326a76f9f7788e228dbabaf90e22d6170fa88284a41d5893bd1f605363
e62e3c647e6b175ce66ab18ee1e1451be486fa5c3b586b4d508063c8d7b08fec