Implement rename refactoring to rename variables and templates across files. ## Rename targets: - **Variables**: Rename `$varName` and all references within scope - **Templates**: Rename template definition and all `{{template "name"}}` calls ## Implementation notes: - For variables: Scope-aware rename (only within declaring scope) - For templates: Cross-file rename using WorkspaceTemplateManager - Validate new name doesn't conflict with existing symbols - Use `prepareRename` to validate rename is possible at cursor ## LSP methods: - `textDocument/rename` - perform the rename, return WorkspaceEdit - `textDocument/prepareRename` - validate rename is possible, return range <!-- todo:gozer-9up1 -->
Implement rename refactoring to rename variables and templates across files.
Rename targets:
$varNameand all references within scope{{template "name"}}callsImplementation notes:
prepareRenameto validate rename is possible at cursorLSP methods:
textDocument/rename- perform the rename, return WorkspaceEdittextDocument/prepareRename- validate rename is possible, return range