Skip to main content

MountainWorkspaceOpenFolder

Function MountainWorkspaceOpenFolder 

Source
pub async fn MountainWorkspaceOpenFolder(
    app_handle: AppHandle,
    state: State<'_, Arc<ApplicationState>>,
    paths: Vec<String>,
) -> Result<Vec<WorkspaceFolderPayload>, String>
Expand description

Open one or more workspace folders, replacing any currently-open set.

Returns the new folder list so Sky can update its sidebar without a round-trip. The caller should pass absolute filesystem paths; URLs are accepted and parsed, but Tauri dialog results are typically paths.