Printable idea sheet
create_all_unresolved_ideas
reqlan rq/extension/host/features-commands.rq:212
Katz 0.078
A Quick Fix code_actions creates every unresolved local idea in the current file.
`Create all unresolved ideas in this file` appends one empty idea block per name at the end of the file.
`Create all unresolved ideas in a new file…` asks for one path, writes those ideas in that file, and adds one from-import in the current file.
The same name is created once. Names follow first-seen order.
A qualified reference or a missing import target stays unresolved by these actions.
The actions are omitted when the file has no unresolved local idea, and when the request allows only refactor actions.
One unresolved name still offers both actions. The caret can sit outside that reference.
create_idea_below_idea_containing_unresolved_reference_under_cursor inserts under the caret idea only.
- implementation
- reqlan-create-unresolved-ideas.ts, reqlan-code-action-provider.ts, code_actions.rs, register-import-error-commands.ts
- status
- done
- tests
- code-actions.test.ts:appends every unresolved local idea at the end of the file, code-actions.test.ts:offers one new file for every unresolved local idea, code-actions.test.ts:creates one stub when the same unresolved name occurs twice, code-actions.test.ts:omits file-level create when a qualified reference is unresolved, code-actions.test.ts:omits file-level create when only refactor is requested, code-actions.test.ts:offers file-level create when the caret idea has no unresolved reference, code-actions.test.ts:keeps valid idea names for a new file, code_actions.rs:appends_every_unresolved_local_idea_at_the_end_of_the_file, code_actions.rs:offers_one_new_file_for_every_unresolved_local_idea, code_actions.rs:creates_one_stub_when_the_same_unresolved_name_occurs_twice, code_actions.rs:omits_file_level_create_when_a_qualified_reference_is_unresolved, code_actions.rs:omits_file_level_create_when_only_refactor_is_requested, code_actions.rs:offers_file_level_create_when_the_caret_idea_is_resolved
Interactive page: create_all_unresolved_ideas