reqlanOverviewIdeasFilesCode filesClustersAttributesGraphPrint

Printable idea sheet

comment_reference_import_root_alias

reqlan rq/extension/language/comment-references/functional-code-comment-references.rq:133

Katz 0.235

Qualified comment references use the same path forms as imports, including import-root aliases such as `@/`.
`rq:idea` resolves against the alias's import-root directory ( workspace folder by default ), not the source file directory.
`@reqs` without a following `/` is not an alias. Configured aliases and roots follow configuration_import_root_alias and configuration_import_roots.
The language server applies this when resolving comment references in `.rq` files. The extension applies the same core resolver for `rq:…` links in non- `.rq` source.
Related: comment_reference, references_in_functional_code_comments, import_paths.

implementation
reqlan-path-resolve.ts, reqlan-comment-diagnostics.ts, reqlan-comment-resolver.ts, comment-reference-path-context.ts, register-comment-reference-links.ts, comment.rs, path.rs
status
done
tests
comment-reference-resolution.test.ts:creates a document link for an import-root aliased comment reference, as a path relative to the source file, comment-reference-resolution.test.ts:resolves a configured alias in a comment reference, comment-reference-resolution.test.ts:accepts an import-root aliased comment reference in a loaded document, path-resolve.test.ts:resolveAuthoredFsPath joins aliased remainder to the workspace folder, path-resolve.test.ts:pathResolveContextFromWorkspaceFolders picks the longest matching folder, against the workspace folder for extension comment links, comment.rs:resolves_aliased_qualified_comment_path, session.rs:comment_links_share_one_resolution

Interactive page: comment_reference_import_root_alias