reqlanOverviewIdeasFilesCode filesClustersAttributesGraphPrint

Printable idea sheet

import_error

reqlan rq/extension/language/support/features-imports.rq:17

Katz 0.078

" Could not resolve reference " errors offer Quick Fix code actions ( lightbulb and editor right-click Quick Fix ).
Fixes:
- Add import from a matching idea found in loaded documents or the name catalog pushed from the index
- Rewrite the reference to an anonymous qualified form `path".name`
- Search the index for matching ideas, ideasets, or files ( same `reqlan.searchReference` path as code_actions / search_code_actions ), then insert an import
- Create the idea in a new. rq file and import it
general_errors
import_error
quick_fixes

implementation
reqlan-code-action-provider.ts, code_actions.rs, register-import-error-commands.ts
status
done
tests
code-actions.test.ts, import-edits.test.ts, import-edits.test.ts:inserts after an existing different-path from-import with a blank line, import-edits.test.ts:inserts after an existing from-import with no blank line, import-edits.test.ts:inserts after an existing namespace import, import-edits.test.ts:inserts at the top when the file has no imports, import-edits.test.ts:appends to an existing same-path from-import, code_actions.rs:offers_add_import_and_rewrite_when_a_matching_idea_exists_elsewhere, code_actions.rs:uses_name_catalog_matches_when_documents_are_not_loaded, code_actions.rs:search_and_create_actions_invoke_extension_commands, code_actions.rs:appends_to_an_existing_from_import_for_the_same_path, code_actions.rs:appends_after_aliased_specifier_on_existing_from_import, code_actions.rs:offers_add_import_from_the_ideas_index, code_actions.rs:inserts_new_from_import_after_existing_from_import_with_blank_line, code_actions.rs:inserts_new_from_import_after_existing_from_import_without_blank_line, code_actions.rs:inserts_new_from_import_after_existing_namespace_import, code_actions.rs:inserts_from_import_at_top_when_file_has_no_imports

Interactive page: import_error