Agents - do not hide the action when showing the context menu (#332019)

This commit is contained in:
Ladislau Szomoru
2026-08-21 21:58:52 +00:00
committed by GitHub
parent 08d4580568
commit e33d147d4c
@@ -1003,12 +1003,12 @@ export class SessionSectionRenderer implements ITreeRenderer<SessionListItem, Fu
const toolbar = disposables.add(scopedInstantiationService.createInstance(MenuWorkbenchToolBar, toolbarContainer, SessionSectionToolbarMenuId, {
menuOptions: { shouldForwardArgs: true },
actionViewItemProvider: (action, options) => {
actionViewItemDisposables.clear();
if (action.id !== NEW_SESSION_FOR_WORKSPACE_ACTION_ID || !(action instanceof MenuItemAction)) {
return undefined;
}
actionViewItemDisposables.clear();
const dropdownActions = getFlatContextMenuActions(this.menuService.getMenuActions(
Menus.SessionSectionNewSession,
contextKeyService,