Файли
Arnaud Ritti 112ed773fb feat(plugins): notifications with command buttons (#1974)
Adds API 1.3 `ui.notify(level, title, body, actions) -> result<_, error>`: up to three buttons, each running one of the plugin's declared commands with an optional argument in the balloon's window and dismissing the balloon. An invalid action or an undeclared command fails the call and shows nothing. The plugin `Notification` event carries the actions; SDK `host::notify_with_actions` and `NotificationAction`. Closes #1955.

Co-authored-by: arnaud-ritti <[email protected]>
2026-11-07 22:35:36 +08:00

56 рядки
1.3 KiB
TOML

# Test fixture: a tool window listing what an external program reports, and a
# terminal following one entry. Covers pinned programs (`process:`), terminals,
# settings and tree views, locally and in remote projects.
id = "jobs"
name = "Jobs"
version = "0.1.0"
description = "Test fixture: lists the jobs `jobs list` prints and follows one in the terminal."
authors = ["OpenIDEA contributors"]
engines.openidea = "^1.0"
wasm = "dist/plugin.wasm"
activation = ["on-view:jobs", "on-command:*"]
[capabilities]
required = ["process:jobs"]
optional = ["project.read", "vcs.read", "clipboard"]
[[contributes.views]]
id = "jobs"
title = "Jobs"
icon = "toolwindow-services"
location = "right"
[[contributes.commands]]
id = "follow"
title = "Jobs: Follow Selected Job"
category = "Jobs"
[[contributes.commands]]
id = "context"
title = "Jobs: Set Context"
category = "Jobs"
[[contributes.commands]]
id = "selection"
title = "Jobs: Show Selected Paths"
category = "Jobs"
[contributes.settings]
title = "Jobs"
schema = "settings.schema.json"
[[contributes.commands]]
id = "notify-actions"
title = "Jobs: Show Notification Actions"
category = "Jobs"
[[contributes.commands]]
id = "pick-directory"
title = "Pick directory"
[[contributes.commands]]
id = "open-project"
title = "Open project"
[[contributes.commands]]
id = "open-project-new"
title = "Open project in new window"