feat(plugins): render a task menu action as a submenu (#3874)

Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
This commit is contained in:
Clément Fiere
2026-09-23 12:00:23 +02:00
committed by GitHub
parent 40b13df86d
commit f8708da1e0
34 changed files with 2491 additions and 95 deletions
+4 -1
View File
@@ -88,6 +88,9 @@ export function buildSidebarTaskCommands(ctx: TaskCommandContext): CommandItem[]
...item,
priority: 0,
disabled: item.disabled || ctx.disabled,
context: task.title,
// An item that names its own context keeps it (a plugin submenu child
// carries the trigger it came from); the task title is only the default
// second line for everything else.
context: item.context ?? task.title,
}));
}