Printable idea sheet
create_idea_below_idea_containing_unresolved_reference_under_cursor
reqlan rq/extension/host/features-commands.rq:186
Katz 0.074
If a local idea reference does not resolve, a Quick Fix code_actions creates a new idea below the idea that contains the reference.
The action uses the unresolved local idea names in the idea that contains the caret:
- one unresolved name: apply `Create '<name>' below` directly
- several unresolved names: offer `Create all unresolved ideas below` and one action per name
Qualified file / import references are omitted. The new idea is an empty block inserted after the containing idea.
- implementation
- reqlan-create-idea-below.ts, reqlan-code-action-provider.ts, code_actions.rs
- status
- done
- tests
- code-actions.test.ts:creates the missing idea below the containing idea when only one is unresolved, code-actions.test.ts:offers all or a specific unresolved idea when the caret idea has several, code-actions.test.ts:omits create-below when the caret idea has no unresolved local references, code-actions.test.ts:omits create-below for a qualified unresolved reference, code-actions.test.ts:omits create-below when only refactor is requested, code_actions.rs:creates_the_missing_idea_below_the_containing_idea, code_actions.rs:offers_all_or_a_specific_unresolved_idea, code_actions.rs:omits_create_below_when_the_caret_idea_has_no_unresolved_local_references, code_actions.rs:omits_create_below_for_a_qualified_unresolved_reference, code_actions.rs:omits_create_below_when_only_refactor_is_requested
Interactive page: create_idea_below_idea_containing_unresolved_reference_under_cursor