Skip to main content

UpdateWorkspaceFoldersAndNotify

Function UpdateWorkspaceFoldersAndNotify 

Source
pub fn UpdateWorkspaceFoldersAndNotify(
    State: &State,
    Folders: Vec<WorkspaceFolderStateDTO>,
)
Expand description

Convenience wrapper: update the state and fire the delta in one call.

Spawns the notification on the current tokio runtime so callers in sync contexts (Tauri command handlers, boot-time seeding) don’t have to build an async scope just to reach Cocoon. If no runtime is available (very early boot, unit tests), the notification is dropped - the state still mutates.