Idea detail
any_file_scope
reqlan rq/extension/module/context-scope.rq:21
Summary
The active editor may be a requirement file or implementation file ( Python, TypeScript, etc. ).
current_file_context must surface requirement links even when the file contains no block ideas.
Signals for non-. rq files ( and. rq files without a caret idea ):
- file_reference_links: `.rq` ideas whose outbound `file_reference` edges target this file path ( e. g. `apythonfile.py` ).
- folder_reference_links: `.rq` ideas whose `file_reference` targets a parent folder of this file.
- comment_reference_links: ideas resolved from `rq:…` tokens in this file's comments per references_in_functional_code_comments.
- git_context: focus-centric git history ( recent commits, authors, branch ); working-tree dirty badge secondary.
Focus behaviour:
- `.rq` file with caret in a block → idea focus ( unchanged ).
- Any file with linked requirements → file focus; effective_center_id defaults to the first linked requirement.
- No links → file focus with empty related lists; graph / refs panes stay idle until a requirement is focused.
Implementation: context-model.ts uses file-path-match.ts and `file_related_requirements` analyser; comment links are also resolved from live buffer text when indexed edges are absent.
Attributes
No attributes declared.
Ancestor context
weight: 1. 0 Default enabled and expanded lens when a workspace file is active.
file_reference_linksMatched when an indexed `file_reference` edge target resolves to the active file path ( exact or suffix match ).
folder_reference_linksMatched when an indexed `file_reference` edge target is a folder prefix of the active file per [file_path_match.match_file_reference_target].
comment_reference_linksMatched from `comment_link` index edges and / or `rq:[target]` spans parsed from the active buffer.
git_contextweight: 0. 7 Should detect symbol lifecycle using symbol identity rather than line history for creation: who introduced the symbol, when it was introduced, who last meaningfully changed it, the total number of changes, and the relative change rate versus peer symbols. Default enabled when repository detected. Primary: focus-centric git history — branch, HEAD short hash, recent commits touching the focus file / idea, top authors. Summary prefers history richness ( e. g. " main · 3 commits · 2 authors " ), not staged / unstaged counts. Working-tree dirty files remain available as a demoted nested section and optional footprint contributors. Focus hero shows a history cue ( last commit age / branch ) instead of a staged / unstaged chip. Consumes [index_reqs.git_information_capture] and ["context-scope-v2.rq".development_history_signals]. UI: [activitybar.git_history_lens].
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| file_reference | file_path_match | packages/analytical/src/core/file-path-match.ts | file-path-match.ts |
| file_reference | context_model | packages/extension/src/activity_bar_module/context-model.ts | context-model.ts |
| references | comment_reference_links | reqlan rq/extension/module/context-scope.rq | comment_reference_links |
| references | current_file_context | reqlan rq/extension/module/context-scope.rq | current_file_context |
| references | file_reference_links | reqlan rq/extension/module/context-scope.rq | file_reference_links |
| references | folder_reference_links | reqlan rq/extension/module/context-scope.rq | folder_reference_links |
| references | git_context | reqlan rq/extension/module/context-scope.rq | git_context |
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | context_dimensions | reqlan rq/extension/module/context-scope.rq | any_file_scope |
| references | context_scope | reqlan rq/extension/module/context-scope.rq | any_file_scope |
| references | implementation_priority | reqlan rq/extension/module/context-scope.rq | any_file_scope |
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | effective_center_id | effective_center_id | |
| references | references_in_functional_code_comments | references_in_functional_code_comments |
Initialising graph…