pub fn SaveAllDocuments(
IncludeUntitled: bool,
) -> ActionEffect<Arc<dyn DocumentProvider>, CommonError, Vec<bool>>Expand description
Creates an effect that, when executed, will save all documents that have unsaved changes.
It uses the DocumentProvider capability from the environment to perform
the operation. This involves iterating through all open documents, checking
their dirty state, and writing the modified ones to disk.
§Parameters
IncludeUntitled: Iftrue, the operation will also attempt to save untitled documents. This will typically trigger a “Save As…” dialog (via theUserInterfaceProvider) for each untitled document.
§Returns
An ActionEffect that resolves with a Vec<bool>, where each boolean
corresponds to the success of saving a particular document.