mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-26 03:03:50 +01:00
Agents - do not hide the action when showing the context menu (#332019)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user