Skip to main content

edit_code

Function edit_code 

Source
pub fn edit_code(
    project_root: &Path,
    params: &EditCodeInput,
    propagation_state: &Mutex<PropagationState>,
    lsp_analyzer: &Mutex<Option<Box<dyn Analyzer + Send>>>,
) -> Result<EditCodeOutput, String>
Expand description

Applies line-hash anchored edits and records propagation review events.

ยงErrors

Returns an error if an edit is invalid or cannot be applied.