Skip to main content

use_workbench

Function use_workbench 

Source
pub fn use_workbench(
    opening: &StudioOpening,
    tree: impl FnOnce() -> FileNode,
) -> WorkbenchState
Expand description

The workbench’s state, for a host to hold: what opening opens on, over the files tree lists. The host calls it once, as it calls any hook, and hands what it returns to Workbench.