reqlanOverviewIdeasFilesCode filesClustersAttributesGraphPrint

Printable idea sheet

comment_reference_resolution_error_state

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

Katz 0.053

comment_reference_resolution_error
The language server must share one resolution result for clickable links and the error underline.
Resolve comment references once against the loaded idea index, then reuse that result for both consumers.
When you create an idea that matches a comment reference, the language server must clear the underline and the missing-idea message.
Resolution and the index should be performed once and shared between consumers.

implementation
reqlan-comment-diagnostics.ts, reqlan-neighbor-parse.ts, reqlan-document-builder.ts, reqlan-document-link-provider.ts, reqlan-validator.ts, register-comment-reference-links.ts, session.rs, comment.rs
status
done
tests
comment-reference-resolution.test.ts:shares one presentation so a matching idea clears the underline and adds a link, comment-reference-resolution.test.ts:publishes a missing-idea diagnostic and no document link until the idea exists, comment-reference-resolution.test.ts:clears the underline and creates a link after a matching idea is added, comment-reference-resolution.test.ts:relinks comment references only when the target file changes, comment-reference-resolution.test.ts:revalidates comment-reference underlines when a matching idea is created on disk, outbound-hop.test.ts:comment references confirm the neighbor idea without loading Langium, session.rs:comment_links_share_one_resolution, session.rs:comment_definition_follows_a_resolved_rq_reference

Interactive page: comment_reference_resolution_error_state