Skip to main content

ApplyEditsToDisk

Function ApplyEditsToDisk 

Source
async fn ApplyEditsToDisk(
    UriString: &str,
    TextEdits: &[Value],
) -> Result<(), CommonError>
Expand description

Splice a list of TextEditDTO-shaped edits into the file at UriString. Edits are applied in descending start offset so each subsequent edit’s offsets stay valid. Errors propagate as CommonError::FromStandardIOError for read/write failures and CommonError::InvalidArgument for malformed edits.