Skip to content

[BUG] [v1.1.0] Auxiliary sidebar: onActiveViewChange passes view id when toggling off active tab #39590

@tubel-hi

Description

@tubel-hi

Project

ide

Description

AuxiliarySidebarProps.onActiveViewChange is typed as (viewId: string | null) => void, implying callers can use null when there is no active view. Clicking the already-active mini–activity-bar item calls auxiliaryBar.toggle() but still runs props.onActiveViewChange?.(viewId) with the same viewId, so consumers never see null on that path.

Error Message

Debug Logs

System Information

OS: Ubuntu
Context: Bounty Challenge v1.1.0

Screenshots

8.webm

Steps to Reproduce

Open the auxiliary sidebar and select a view so its tab is active.
Click that same view’s icon again (toggle sidebar off).
Observe the argument passed to onActiveViewChange.

Expected Behavior

Callback receives null (or otherwise signals no active view) when the active tab is toggled off / sidebar hides that selection.

Actual Behavior

Callback always receives the clicked viewId, including after the toggle-off branch.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingideIssues related to IDEvalidValid issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions