Файли
openidea/crates/ide-plugin/tests
LU XIANGRUIтаwildcatDownstairs c13cb2bf27 feat(plugins): add customEditor.toolbar menu above split/preview text editors (#8164)
Adds the `customEditor.toolbar` menu location (plugin API 1.21). A `[[contributes.menus]]` entry with `view` naming one of the plugin's own split or preview custom editors puts its command as an icon button in a thin strip above the text half of that editor; `when` works as for other menus. The host rejects a missing or unknown `view`, a tab-layout editor, unknown commands and submenus at install time. Buttons use the command's icon (else the plugin icon), the command title as tooltip and aria-label, and run with the same editor context as editor.title; the strip is hidden in preview-only mode and when nothing applies.

Closes #7796

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-05 14:05:54 +08:00
..