Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

Add textDocument/rename support #56

Description

@Jason-Abbott

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions