From b611fd2a16caf1cd81d61eb55ee2eb3b46b4fd1c Mon Sep 17 00:00:00 2001 From: Nang Date: Wed, 22 Jan 2025 14:03:21 -0800 Subject: [PATCH] Command center fixes (#165) * Added command center fix * fixed --- scripts/code.sh | 1 + .../chat/browser/actions/chatActions.ts | 33 ------------------- 2 files changed, 1 insertion(+), 33 deletions(-) diff --git a/scripts/code.sh b/scripts/code.sh index e209a053aa3a1..0d9ac34df52df 100755 --- a/scripts/code.sh +++ b/scripts/code.sh @@ -2,6 +2,7 @@ set -e +# Comment out if pearai submodule does not need to be recompiled. Speeds things up. cd extensions/pearai-submodule ./scripts/install-and-build.sh cd ../.. diff --git a/src/vs/workbench/contrib/chat/browser/actions/chatActions.ts b/src/vs/workbench/contrib/chat/browser/actions/chatActions.ts index de160c8c26315..3390db6340210 100644 --- a/src/vs/workbench/contrib/chat/browser/actions/chatActions.ts +++ b/src/vs/workbench/contrib/chat/browser/actions/chatActions.ts @@ -27,7 +27,6 @@ import { KeybindingWeight } from '../../../../../platform/keybinding/common/keyb import { IOpenerService } from '../../../../../platform/opener/common/opener.js'; import product from '../../../../../platform/product/common/product.js'; import { IQuickInputButton, IQuickInputService, IQuickPickItem, IQuickPickSeparator } from '../../../../../platform/quickinput/common/quickInput.js'; -import { ToggleTitleBarConfigAction } from '../../../../browser/parts/titlebar/titlebarActions.js'; import { IWorkbenchContribution } from '../../../../common/contributions.js'; import { IEditorGroupsService } from '../../../../services/editor/common/editorGroupsService.js'; import { ACTIVE_GROUP, IEditorService } from '../../../../services/editor/common/editorService.js'; @@ -527,38 +526,6 @@ const defaultChat = { managePlanUrl: product.defaultChatAgent?.managePlanUrl ?? '', }; -MenuRegistry.appendMenuItem(MenuId.CommandCenter, { - submenu: MenuId.ChatCommandCenter, - title: localize('title4', "Chat"), - icon: Codicon.copilot, - when: ContextKeyExpr.and( - ContextKeyExpr.has('config.chat.commandCenter.enabled'), - ContextKeyExpr.or( - ContextKeyExpr.has('config.chat.experimental.offerSetup'), - ChatContextKeys.Setup.installed, - ChatContextKeys.panelParticipantRegistered - ) - ), - order: 10001, -}); - -registerAction2(class ToggleCopilotControl extends ToggleTitleBarConfigAction { - constructor() { - super( - 'chat.commandCenter.enabled', - localize('toggle.chatControl', 'Copilot Controls'), - localize('toggle.chatControlsDescription', "Toggle visibility of the Copilot Controls in title bar"), 4, false, - ContextKeyExpr.and( - ContextKeyExpr.has('config.window.commandCenter'), - ContextKeyExpr.or( - ChatContextKeys.Setup.installed, - ContextKeyExpr.has('config.chat.experimental.offerSetup'), - ChatContextKeys.panelParticipantRegistered - ) - ) - ); - } -}); export class ChatCommandCenterRendering extends Disposable implements IWorkbenchContribution {