Skip to main content

handle_edit_insert_after

Function handle_edit_insert_after 

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

Insert code immediately after a symbol’s end line.

Adds a blank line separator if the line after the symbol is not already blank.

§Errors

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