mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
Plugin API 1.15 adds a caret-moved event through the existing events.other channel (no WIT interface or signature change): {path, line, col, settled} with 0-based UTF-16 positions for the focused editor. The frontend batches caret moves after 120 ms (only the latest position per file) and sends one settled event 600 ms after the caret rests; queued and delayed events are dropped when the editor, document, path or project changes. editor-focused now carries the focused editor (path, language, selections) through an optional argument on plugin_set_active_file, which the remote adapter forwards. Requires the events capability; components and fixtures are rebuilt for 1.15.
Co-authored-by: charli117 <24435100+charli117@users.noreply.github.com>
22 lines
858 B
Plaintext
22 lines
858 B
Plaintext
package openidea:plugin@1.15.0;
|
|
|
|
/// 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>;
|
|
}
|