Idea detail
file_ref_missing_quick_fix
reqlan rq/extension/language/support/features-imports.rq:261
Summary
" Could not resolve file reference " diagnostics offer Quick Fix code actions.
A body qualified reference `idea` whose path does not resolve emits this same diagnostic across the whole reference ( path plus idea ), not an idea-unresolved diagnostic on the idea token. Its quick fix rewrites only the quoted path segment, keeping the `.idea` suffix. The source file itself is not offered as a candidate.
Fixes:
- Replace the missing path with a relative path to an existing workspace file.
- Candidates are ranked by shared trailing characters ( suffix match ) between the missing path and candidate file paths. Tiebreaker is shorter path length.
- The top candidate ( when score > 0 ) is marked `isPreferred: true`.
- A " Search for file … " command fallback invokes `reqlan.searchReference` to let the user browse the workspace.
code_actions
quick_fixes
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | diagnostics.rs, code_actions.rs, session.rs |
| status | done |
| tests | code_actions.rs:offers_file_ref_quick_fix_for_missing_file_reference, code_actions.rs:top_file_ref_quick_fix_is_preferred_on_trailing_match, code_actions.rs:file_ref_quick_fix_for_qualified_reference_with_missing_path, parity.rs:missing_qualified_rq_file_reports_unresolved_idea |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…