Skip to content

Sidebar menu items never render: view id mismatch (sidebarView vs SidebarProvider) #244

Description

@sydneyrenee

The TreeView is registered as thea-code.sidebarView (src/ux/sidebar/TheaSidebarProvider.tsvscode.window.createTreeView("thea-code.sidebarView", …)) and declared under contributes.views with id thea-code.sidebarView (package.json:81).

However all 7 contributes.menus["view/title"] entries gate on the old id:

"when": "view == thea-code.SidebarProvider"   // package.json:266,271,276,281,286,291,296

Because no view with id thea-code.SidebarProvider exists, none of these title/context-menu buttons ever appear in the sidebar.

Fix

Replace view == thea-code.SidebarProvider with view == thea-code.sidebarView in those 7 when clauses. (TheaSidebarProvider also registers a backward-compat thea-code.SidebarProvider.focus alias command — that can stay or be removed once nothing references the old id.)

Acceptance

  • Sidebar title/context actions render against the live TreeView.

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureArchitecture / wiring / structural concernsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions