Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@
// --- Workbench ---
// "application.experimental.rendererProfiling": true, // https://github.com/microsoft/vscode/issues/265654
"editor.aiStats.enabled": true, // Team selfhosting on ai stats
"chat.emptyState.history.enabled": true,
"chat.promptFilesRecommendations": {
"plan-fast": true,
"plan-deep": true
Expand Down
2 changes: 1 addition & 1 deletion src/vs/base/common/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export interface IProductConfiguration {
readonly commonlyUsedSettings?: string[];
readonly aiGeneratedWorkspaceTrust?: IAiGeneratedWorkspaceTrust;

readonly defaultChatAgent?: IDefaultChatAgent;
readonly defaultChatAgent: IDefaultChatAgent;
readonly chatParticipantRegistry?: string;
readonly chatSessionRecommendations?: IChatSessionRecommendation[];
readonly emergencyAlertUrl?: string;
Expand Down
1 change: 0 additions & 1 deletion src/vs/platform/actions/common/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ export class MenuId {
static readonly ChatCodeBlock = new MenuId('ChatCodeblock');
static readonly ChatCompareBlock = new MenuId('ChatCompareBlock');
static readonly ChatMessageTitle = new MenuId('ChatMessageTitle');
static readonly ChatHistory = new MenuId('ChatHistory');
static readonly ChatWelcomeContext = new MenuId('ChatWelcomeContext');
static readonly ChatMessageFooter = new MenuId('ChatMessageFooter');
static readonly ChatExecute = new MenuId('ChatExecute');
Expand Down
34 changes: 1 addition & 33 deletions src/vs/workbench/contrib/chat/browser/actions/chatActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,21 +512,13 @@ export function registerChatActions() {
menu: [
{
id: MenuId.ViewTitle,
when: ContextKeyExpr.and(
ContextKeyExpr.equals('view', ChatViewId),
ChatContextKeys.inEmptyStateWithHistoryEnabled.negate()
),
when: ContextKeyExpr.equals('view', ChatViewId),
group: '2_history',
order: 1
},
{
id: MenuId.EditorTitle,
when: ActiveEditorContext.isEqualTo(ChatEditorInput.EditorID),
},
{
id: MenuId.ChatHistory,
when: ChatContextKeys.inEmptyStateWithHistoryEnabled,
group: 'navigation',
}
],
category: CHAT_CATEGORY,
Expand Down Expand Up @@ -1848,27 +1840,3 @@ registerAction2(class EditToolApproval extends Action2 {
confirmationService.manageConfirmationPreferences([...toolsService.getTools()], scope ? { defaultScope: scope } : undefined);
}
});

// Register actions for chat welcome history context menu
registerAction2(class ToggleChatHistoryVisibilityAction extends Action2 {
constructor() {
super({
id: 'workbench.action.chat.toggleChatHistoryVisibility',
title: localize2('chat.toggleChatHistoryVisibility.label', "Chat History"),
category: CHAT_CATEGORY,
precondition: ChatContextKeys.enabled,
toggled: ContextKeyExpr.equals('config.chat.emptyState.history.enabled', true),
menu: {
id: MenuId.ChatWelcomeContext,
group: '1_modify',
order: 1
}
});
}

async run(accessor: ServicesAccessor): Promise<void> {
const configurationService = accessor.get(IConfigurationService);
const current = configurationService.getValue<boolean>('chat.emptyState.history.enabled');
await configurationService.updateValue('chat.emptyState.history.enabled', !current);
}
});
6 changes: 0 additions & 6 deletions src/vs/workbench/contrib/chat/browser/chat.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,6 @@ configurationRegistry.registerConfiguration({
enum: ['inline', 'hover', 'input', 'none'],
default: 'inline',
},
[ChatConfiguration.EmptyStateHistoryEnabled]: {
type: 'boolean',
default: product.quality === 'insiders',
description: nls.localize('chat.emptyState.history.enabled', "Show recent chat history on the empty chat state."),
tags: ['preview']
},
[ChatConfiguration.NotifyWindowOnResponseReceived]: {
type: 'boolean',
default: true,
Expand Down
Loading
Loading