Code reference detail
imports.rs
reqlan rq/extension/mutation/crates/reqlan-parse/src/refactor/imports.rs
| Idea | Status | Tags | Summary | Katz |
|---|---|---|---|---|
| refactor_native_planner | done | Move and delete edit plans are pure text in the parse crate. The host supplies source text, destination text, and extra file texts. It applies the returned edits and reindexes. The planner does not read the disk, the index, or a Langium document. [refactor_symbol_move] [refactor_symbol_delete] | 0.108 | |
| refactor_symbol_move | done | An idea can move to another existing `.rq` file from a code action or the [command_palette]. Palette commands use the idea under the cursor, or a pick list when the cursor is not on an idea. 1. Move idea ( `reqlan.refactor.moveIdea` ) - Cut the declaration from the source file. - Insert it into the destination file. - Remove source imports that the move makes unused. - Add the imports that the moved idea needs to the destination. - If the source file still refers to the idea, import it from the destination. - Rewrite comment references per [comment_reference_refactor_support]. - Reindex without duplicate idea rows for the old hosting file. 2. Move idea content ( `reqlan.refactor.moveIdeaContent` ) - Do the same as ( 1 ). - Always import the destination file in the source. - Leave a one-liner stub in the source: `idea_name [alias.idea_name]`. Do not overlap [decompose]: decompose writes a new file. Move and decompose share the resolve-plan-apply sequence in ["../../../packages/extension/src/mutation_module/refactor/idea-extract-flow.ts"]. [refactor_support] [refactor_changes] | 0.128 |
Reference labels
refactor_native_planner, refactor_symbol_move