pub fn OpenDocument(
URIComponentsDTO: Value,
LanguageIdentifier: Option<String>,
Content: Option<String>,
) -> ActionEffect<Arc<dyn DocumentProvider>, CommonError, Url>Expand description
Creates an effect that, when executed, will open an existing document from a URI or create a new untitled document, potentially with initial content.
It uses the DocumentProvider capability from the environment to perform
the operation, which may involve file I/O and updating the central document
store.
§Parameters
URIComponentsDTO: Aserde_json::ValueDTO representing the URI of the document to open, ornullfor a new untitled document.LanguageIdentifier: An optional language ID, primarily for new untitled documents.Content: Optional initial content for a new untitled document.
§Returns
An ActionEffect that resolves with the canonical Url of the opened
document.