Skip to content

[Story] Code-XR metrics in the editor and code-to-scene navigation #178

Done

Description

@aMonteSl

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

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.

Activity

  1. self-assigned this
    on Nov 26, 2026
  2. added
    tfm
    user-story
    area: ide
    area: xr-scene
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: idearea: xr-scenestream: ide-powertfmuser-story

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions