Skip to main content

handle_edit_replace

Function handle_edit_replace 

Source
pub async fn handle_edit_replace(
    name: &str,
    code: &str,
    client: &mut LspClient,
    file_tracker: &mut FileTracker,
    project_root: &Path,
    dirty_files: &DirtyFiles,
) -> Result<Value>
Expand description

Replace a symbol’s body with code.

§Errors

Returns an error if the symbol can’t be found or the file can’t be written.