reqlanOverviewIdeasFilesCode filesClustersAttributesGraphPrint

Printable idea sheet

file_inbound_code_lens

reqlan rq/extension/language/syntax/features-syntax-highlighting.rq:560

Katz 0.120

The editor shows inbound file references in a codelens at the top of the file.
The CodeLens uses the same `@referenced-by: (name, …)` list form as idea inlay hints
( view_references_as_inlay_hints ).
Idea declarations keep `@referenced-by` for idea-to-idea inbound.
The file CodeLens lists ideas that point at this file with a
file_reference ( path-only and path-with-symbol ).
Click the CodeLens to open the inbound referencers summary for this file.
Hide the CodeLens when the file has no inbound file references.
Read referencers from the SQLite inbound snapshot
( unify_inbound_indexes ).
Show the CodeLens when that snapshot arrives
( lazy_features_after_outbound ).
Do not scan Langium IndexManager.
The file CodeLens is independent of the outbound classification toggle on
code_lens_reference_types.
Applies to `.rq` files and to other indexed files that ideas reference.
Implemented by reqlan-code-lens-provider.ts,
reqlan-file-inbound-code-lens.ts,
reqlan-inbound-snapshot.ts,
inbound-file-referencers.ts,
sqlite-store.ts,
inbound-file-snapshot.ts,
register-inbound-sqlite-sync.ts,
register-file-inbound-code-lens.ts,
register-webview.ts,
and reqlan-inlay-hint-settings.ts.
view_references_as_inlay_hints
file_inbound_code_lens
inbound_inlay_index_performance

status
done
tests
code-lens.test.ts:shows file inbound referenced-by CodeLens at the top of the file, code-lens.test.ts:omits file inbound CodeLens when the snapshot has no file referencers, code-lens.test.ts:truncates file inbound CodeLens names the same way as idea inlays, inbound-file-referencers.test.ts, inbound-file-referencers.test.ts:resolves relative file_reference edges onto the target file, inbound-file-snapshot.test.ts, queries.rs:inbound_for_file_returns_file_reference_targeting_file, queries.rs:inbound_for_file_returns_file_reference_targeting_code_file

Interactive page: file_inbound_code_lens