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

Open 💬 12 comments Opened Mar 6, 2026 by CodingMarkus

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] 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.

<img width="59" height="276" alt="Image" src="https://github.com/user-attachments/assets/edadc5ad-bd0a-4161-8d9d-e7b63f889d17" />

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)

View original on GitHub ↗

This issue has 12 comments on GitHub. Read the full discussion on GitHub ↗