Idea detail
rename_file
reqlan rq/extension/mutation/mutation-hooks.rq:20
block
Summary
this should update any referencess in rq files ( imports, inline references, etc )
it should also update any inline references in functional code files - per functional-code-comment-references.rq and comment_reference_refactor_support
Renaming a folder updates references to that folder and to every file inside it.
The index watcher must not drop the pre-move file before inbound import planning
( refactor_file_moves ).
See also refactor_file_moves and refactor_changes.
Implemented by file-move-plan.ts, expand-renamed-paths.ts, register-file-mutation-hooks.ts, pending-rename-paths.ts, file-path-rewrite.ts, and collect-inbound-referencers.ts.
Navigation
Attributes
| Key | Value |
|---|---|
| tests | file-path-rewrite.test.ts:updates inbound import path when the target file moves, file-path-rewrite.test.ts:updates a folder reference when the folder is renamed, expand-renamed-paths.test.ts:pairs each file under a renamed folder with its old path, pending-rename-paths.test.ts:suppresses watcher delete of the pre-move file until cleared |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | refactor_file_moves | reqlan rq/extension/mutation/refactor_support.rq | rename_file |
| references | comment_reference_refactor_support | reqlan rq/extension/mutation/refactor_support.rq | rename_file |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…