Skip to content

Commit

Permalink
Command center fixes (#165)
Browse files Browse the repository at this point in the history
* Added command center fix

* fixed
  • Loading branch information
nang-dev committed Jan 22, 2025
1 parent 8432bb2 commit b611fd2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
1 change: 1 addition & 0 deletions scripts/code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ../..
Expand Down
33 changes: 0 additions & 33 deletions src/vs/workbench/contrib/chat/browser/actions/chatActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 {

Expand Down

0 comments on commit b611fd2

Please sign in to comment.