Files
openidea/crates/ide-plugin/tests/fixtures/grouped-views/plugin.toml
Arnaud Ritti da3d996e10 feat(plugins): group views and apply visibility conditions (#2019)
Closes #1949. Plugin API 1.3: views from several plugins can share one tool window (shown as tabs) and a view can declare a visibility condition (e.g. only when the project contains a file, or for the active file) so it appears only when it applies. Additive within API 1.x, with a fixture plugin, regression tests and docs.

Co-authored-by: arnaud-ritti <[email protected]>
2026-11-08 02:04:10 +08:00

38 lines
717 B
TOML

id = "grouped-views"
name = "Grouped Views"
version = "0.1.0"
engines.openidea = "^1.3"
wasm = "dist/plugin.wasm"
activation = ["on-command:*", "on-view:*"]
[[contributes.commands]]
id = "show"
title = "Grouped Views: Show"
[[contributes.commands]]
id = "hide"
title = "Grouped Views: Hide"
[[contributes.commands]]
id = "reveal"
title = "Grouped Views: Reveal"
[[contributes.views]]
id = "overview"
title = "Grouped Views"
location = "right"
group = "demo"
when = "plugin.grouped-views.ready"
[[contributes.views]]
id = "files"
title = "Project Files"
location = "right"
group = "demo"
when = "workspaceContains:grouped-views.txt"
[[contributes.views]]
id = "legacy"
title = "Ungrouped View"
location = "left"