Skip to main content

preview_edits

Function preview_edits 

Source
pub fn preview_edits(
    path: &str,
    edits: &[Replacement],
    cwd: &Path,
) -> Result<String, String>
Expand description

pi’s computeEditsDiff: the diff edits would make to the file at path (resolved against cwd), or why they cannot apply. Nothing is written.