Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
The extension icon does not appear in the sidebar due to the “when” condition.
My extension config:
“viewsContainers”: {
“activitybar”: [
{
“id”: “someId”,
…
“when”: “enableMyExtension”
},
]
},
async register(disposables: vscode.Disposable): Promise {
…
await vscode.commands.executeCommand(“setContext”, “enableMyExtension”, true);
}
In vscode, this works as expected
As a workaround, you can switch to the Agents tab and then return to the Editor tab, then the icon is displayed.
Steps to Reproduce
Open Cursor IDE with installed an extension that dynamically adds another extension to the panel
Expected Behavior
In vscode, this works as expected
As a workaround, you can switch to the Agents tab and then return to the Editor tab, then the icon is displayed.
Operating System
MacOS
Version Information
Version: 2.2.36 (Universal)
VSCode Version: 1.105.1
Commit: 55c9bc11e99cedd1fb93fbb7996abf779c583150
Date: 2025-12-18T06:25:21.733Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.2.0
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor