Skip to main content

Module rename

Module rename 

Source

Structs§

RenameEdit
RenameResult

Enums§

RenameScope

Functions§

apply_edits
Apply edits to files on disk. Edits are sorted by byte offset descending per file and applied back-to-front to preserve offsets. RenameEdit is also used by LSP WorkspaceEdit text edits, so this handles insertions and multi-line replacements when old_text spans a range.
find_all_word_matches
Find ALL word-boundary matches of symbol_name across the project. Unlike search_for_pattern, this returns multiple matches per line via find_iter.
rename_symbol
Rename a symbol across one file or the entire project.