Printable idea sheet
file_reference_errors
reqlan rq/extension/language/support/language-server-errors.rq:12
Katz 0.092
If a file_reference is not found, is broken, or cannot be resolved, the language server must show an underline.
Do not show the underline when comment_reference_ignore ( `//rq-ignore-error` ) is on the line before.
Missing files: error underline, no document link.
Do not underline examples inside inline_code or code_snippets.
Empty files and files with parse errors: warning underline; the document link stays.
Import-root aliases such as `@/` resolve the same way as check and configuration_import_root_alias.
Related: general_errors, comment_reference_resolution_error, inline_code,
import_does_not_exist_error,
file_references.
- implementation
- reqlan-validator.ts, reqlan-file-link-resolver.ts, reqlan-document-link-provider.ts, reqlan-ignore-error.ts, reqlan-embedded-file-references.ts, analysis.rs, path_resolve.rs
- status
- done
- tests
- linking.test.ts:missing file references do not produce document links, rq-ignore-error, linking.test.ts:remote file references are not reported as missing, linking.test.ts:empty file references produce document links and warning diagnostics, linking.test.ts:parse-error file references produce document links and warning diagnostics, ignore-error.test.ts:reports a missing file reference as an error, rq-ignore-error, ignore-error.test.ts:does not report file references inside inline code, parity.rs:import_root_alias_file_refs_match_check, parity.rs:import_root_config_file_refs_match_check, broken_references.rs:check_accepts_import_root_alias_file_refs, broken_references.rs:check_honours_import_roots_from_applying_config
Interactive page: file_reference_errors