pub(crate) async fn remove_tab(
state: &AppState,
cmd: CommandPaneTabData,
) -> Result<PaneTabEditResult, String>Expand description
pane.removeTab: take block_id out of its pane — that one tab of a
stack, or the pane with its last tab (Command::LayoutDeleteNodeByBlock) —
then queue the delete under the caller’s action id. The block itself is
closed by ClosePane, which the caller sends next. A block in no pane is a
no-op: nothing is queued and the revision is 0.