Skip to content

[BUG] Claude Code appears twice in VSCode sidebar after extension update #31561

Description

@CodingMarkus

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code appears twice in VSCode sidebar after extension update

Description

After updating the Claude Code VSCode extension, Claude Code appears twice in the sidebar — once in the Activity Bar (left) and once in the Secondary Sidebar (right). Both entries are visible simultaneously, even though the when clauses in the extension's package.json are designed to be mutually exclusive.

Image

What Should Happen?

  • Only one Claude Code entry should appear — either in the Activity Bar or the Secondary Sidebar, depending on VSCode support.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

  1. Update the Claude Code VSCode extension to the latest version
  2. Observe the sidebar — Claude Code appears in both the Activity Bar and Secondary Sidebar

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.70

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Root Cause Analysis

The extension registers two sidebar contributions in package.json:

"activitybar": [
  {
    "id": "claude-sidebar",
    "title": "Claude Code",
    "icon": "resources/claude-logo.svg",
    "when": "claude-code:doesNotSupportSecondarySidebar"
  }
],
"secondarySidebar": [
  {
    "id": "claude-sidebar-secondary",
    "title": "Claude Code",
    "icon": "resources/claude-logo.svg",
    "when": "!claude-code:doesNotSupportSecondarySidebar"
  }
]

The when conditions rely on the context key claude-code:doesNotSupportSecondarySidebar, which does not appear to be set correctly after the update. As a result, both entries are displayed.

Workaround

Right-click the unwanted entry in the sidebar and select "Hide". Yet they both have the same name and don't are the same.

Environment

  • OS: macOS 15.7.1
  • VSCode: 1.96.4
  • Claude Code Extension: 2.1.70 (updated on 2026-03-06)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:idebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:vscodeIssue specifically occurs in VS CodestaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions