prepare_rename
Validate rename feasibility at a specific code position before executing rename_symbol. Returns the affected range and placeholder suggestion, or indicates if rename is unsupported.
Instructions
Validate that a rename is possible at the given position before committing to rename_symbol. Returns the range that would be renamed and a placeholder name suggestion, or a message indicating rename is not supported at this position. Use this before rename_symbol to avoid attempting invalid renames. Returns null if the server does not support prepareRename.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| language_id | No | ||
| line | Yes | ||
| column | Yes |