Files
openidea/crates/ide-plugin/tests/fixtures/api14/plugin.toml
T
Charlie.Weiandcharli117 bf2478934e feat(plugins): deliver caret-moved events (API 1.15) (#5119)
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>
2026-11-22 10:43:27 +08:00

150 lines
2.7 KiB
TOML

id = "api14"
name = "API 1.4 host tests"
version = "0.1.0"
engines.openidea = "^1.5"
wasm = "dist/plugin.wasm"
activation = ["on-command:*", "on-event:file-closed", "on-event:settings-changed", "on-event:input-mode-changed", "on-event:caret-moved"]
[capabilities]
required = ["storage"]
optional = ["ide.commands", "project.read", "vcs.read", "events", "events.input", "editor.read", "secrets", "net:localhost", "net.http:example.com", "net:ask", "ipc:$TMPDIR/api14-*"]
[[contributes.secrets]]
name = "token"
label = "Token"
[contributes.settings]
schema = "settings.json"
[[contributes.commands]]
id = "ipc"
title = "ipc"
[[contributes.commands]]
id = "fetch"
title = "fetch"
[[contributes.commands]]
id = "window-status"
title = "window-status"
[[contributes.commands]]
id = "menu-status"
title = "menu-status"
[[contributes.commands]]
id = "bad-menu-status"
title = "bad-menu-status"
[[contributes.commands]]
id = "remove-window-status"
title = "remove-window-status"
[[contributes.commands]]
id = "global-status"
title = "global-status"
[[contributes.commands]]
id = "execute"
title = "execute"
[[contributes.commands]]
id = "oauth"
title = "oauth"
[[contributes.commands]]
id = "secret"
title = "secret"
[[contributes.commands]]
id = "delete-secret"
title = "delete-secret"
[[contributes.commands]]
id = "undeclared-secret"
title = "undeclared-secret"
[[contributes.commands]]
id = "output"
title = "output"
[[contributes.commands]]
id = "events"
title = "events"
[[contributes.commands]]
id = "process-run"
title = "process-run"
[[contributes.commands]]
id = "process-run-command"
title = "process-run-command"
[[contributes.commands]]
id = "process-start"
title = "process-start"
[[contributes.commands]]
id = "terminal"
title = "terminal"
[[contributes.commands]]
id = "log"
title = "log"
[[contributes.commands]]
id = "open-editors"
title = "open-editors"
[[contributes.commands]]
id = "open-editor"
title = "open-editor"
[[contributes.commands]]
id = "set-selections"
title = "set-selections"
[[contributes.commands]]
id = "reveal"
title = "reveal"
[[contributes.commands]]
id = "search-text"
title = "search-text"
[[contributes.commands]]
id = "read-bytes"
title = "read-bytes"
[[contributes.commands]]
id = "problems"
title = "problems"
[[contributes.commands]]
id = "decorations"
title = "decorations"
[[contributes.commands]]
id = "clear-decorations"
title = "clear-decorations"
[[contributes.commands]]
id = "file-decoration"
title = "file-decoration"
[[contributes.commands]]
id = "clear-file-decorations"
title = "clear-file-decorations"
[[contributes.commands]]
id = "vcs-log"
title = "vcs-log"
[[contributes.commands]]
id = "vcs-blame"
title = "vcs-blame"
[[contributes.commands]]
id = "vcs-diff"
title = "vcs-diff"