Skip to main content

apply_workspace_edit

Function apply_workspace_edit 

Source
pub fn apply_workspace_edit(
    edit: &Value,
    project_root: &Path,
) -> Result<Vec<PathBuf>>
Expand description

Apply a JSON WorkspaceEdit to files on disk atomically.

Handles both changes (old form: {uri: [TextEdit]}) and documentChanges (new form with TextDocumentEdit).

Returns the list of absolute paths that were modified.

ยงErrors

Returns an error if any file cannot be read or written.