дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-26 20:46:22 +02:00
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.
22 рядки
858 B
Plaintext
22 рядки
858 B
Plaintext
package openidea:[email protected];
|
|
|
|
/// What other plugins contributed to the extension points this plugin declares
|
|
/// (`[[extension-points]]` in `plugin.toml`; the contributors list this plugin
|
|
/// in `[[depends]]`). A change is announced by the `extensions-changed` event.
|
|
interface extensions {
|
|
use types.{error};
|
|
|
|
record contribution {
|
|
/// The contributing plugin's id.
|
|
plugin: string,
|
|
/// Its `[[contributes."<point>"]]` table as JSON, checked by the host
|
|
/// against the fields the point declares.
|
|
data: string,
|
|
}
|
|
|
|
/// The contributions to `point`, in the order the plugins started. Only the
|
|
/// plugin that declares `point` may read it (`denied` otherwise); `not-found`
|
|
/// when no running plugin declares it.
|
|
contributions: func(point: string) -> result<list<contribution>, error>;
|
|
}
|