Skip to main content

reuse_editor_pane

Function reuse_editor_pane 

Source
pub(super) async fn reuse_editor_pane(
    state: &AppState,
    cmd: &CommandPaneOpenData,
    named: Option<&str>,
    viewer: Option<&'static str>,
) -> Result<Option<PaneOpenResult>, String>
Expand description

Add the requested file as a tab of an Editor pane that is already open, when the caller asked for reuse.