Skip to main content

Module rename

Module rename 

Source

Functions§

prepare_rename
Returns the range of the word at position if it’s a renameable symbol. Used for textDocument/prepareRename.
rename
Compute a WorkspaceEdit that renames every occurrence of word to new_name across all open documents (including the declaration site).
rename_property
Rename a property (->prop / ?->prop / class declaration) across all indexed documents. Unlike variable rename, properties are not scope-bound and may appear in many files.
rename_variable
Rename a $variable (or parameter) within its enclosing function/method scope. Only produces edits within the single document uri; variables don’t cross files.