Repository navigation
Done
Labels
area: ideThe Electron + Monaco IDE (apps/ide)area: xr-sceneBrowser runtimes of the XR scenes and LivePanel (A-Frame/BabiaXR, templates/components)stream: ide-powertfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Description
Part of #163 · P1 · Effort L · Builds on #16
User story
As a developer using the Code-XR IDE,
I want to see each function's metrics above it in the editor and jump from the code to its place in the XR scene,
so that the analysis is part of reading code, not a separate window.
Scope
- CodeLens above each analysed function:
CCN 7 · NLOC 42 · 3 params, coloured by the same thresholds as the scene; clicking opens the LivePanel row. - A thin complexity heat strip in the overview ruler / gutter.
- "Reveal in XR scene" (editor context menu + command): highlights the file's or function's element in the open scene and moves the camera to it.
- Values refresh after each re-analysis; the lens is hidden when the file changed since the last analysis (shown as "stale" instead of wrong numbers).
Acceptance criteria
- Opening an analysed Python file shows a lens over every function the analysis reported.
- Reveal in XR scene focuses the right element in the deep scene.
- Turning the lens off in settings removes it without reload.
Delivered
- Part 1: PR feat(ide): Code-XR metrics in the editor, lenses and complexity strip (#178, part 1) #213 (IDE) and PR feat: function metrics in the VS Code extension, shared with the IDE (#173, #178) #229 (VS Code extension, parity rule).
- Part 2: PR Reveal a file in the XR scene from the IDE and the VS Code extension (#178) #236 (IDE and VS Code extension).
Where the delivery differs from the scope above:
- Clicking a lens filters the Problems panel to that function instead of opening the LivePanel row.
- "Reveal in XR scene" works at file level. It marks the element with a marker and its legend, or pins the file's card in the dependency graph. It does not move the camera: moving the viewpoint of a person in a headset is disorienting.
Metadata
Metadata
Assignees
Labels
area: ideThe Electron + Monaco IDE (apps/ide)area: xr-sceneBrowser runtimes of the XR scenes and LivePanel (A-Frame/BabiaXR, templates/components)stream: ide-powertfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Activity
feat(ide): Code-XR metrics in the editor, lenses and complexity strip (…
Merge pull request #213: metrics in the editor (#178, part 1)
feat: function metrics in the VS Code extension, shared with the IDE (#…
Merge pull request #229: metric checks and lenses in the VS Code exte…
Reveal a file in the XR scene from the IDE and the VS Code extension (#…
Merge pull request #236: Reveal a file in the XR scene (#178)