Файли
openidea/plugins/official/string-tools/dist/plugin.wasm.sources
T
LU XIANGRUIтаwildcatDownstairs 749c34df7a feat(plugins): add views.set-badge API for plugin tool window badges (#8165)
Adds `views.set-badge` (`host::set_view_badge`) to plugin API 1.21: a plugin sets or clears a short badge on the stripe icon of one of its declared `[[contributes.views]]` tool windows, per invoking window, without a capability. Text is at most 4 characters (no control characters), numbers above 99 show as "99+", and `None`, "" or "0" clear it. Badges are dropped when the plugin is disabled, reloaded or uninstalled and when the window closes; a window reads the current set with `plugin_view_badges` and follows `ViewBadgeChanged` events. Plugin views reuse the workbench `StripeBadge` (honouring Show tool window badges); grouped views show each member's badge on its tab and an aggregate on the stripe.

Closes #8006

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-05 13:58:37 +08:00

2 рядки
65 B
Plaintext

2bdcbe047cdd07e3c8975b0e05e7ea78c6518fe94d3142dfa33373bcb30c0e51