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
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ export function registerChatActions() {
id: MenuId.ChatExecute,
when: ContextKeyExpr.and(
ChatContextKeys.chatModeKind.isEqualTo(ChatModeKind.Ask),
ContextKeyExpr.not('config.chat.emptyChatState.enabled'),
ChatContextKeys.lockedToCodingAgent.negate()
),
group: 'navigation',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { IChatAgentCommand, IChatAgentData, IChatAgentService } from '../../comm
import { chatSlashCommandBackground, chatSlashCommandForeground } from '../../common/chatColors.js';
import { ChatRequestAgentPart, ChatRequestAgentSubcommandPart, ChatRequestSlashCommandPart, ChatRequestSlashPromptPart, ChatRequestTextPart, ChatRequestToolPart, ChatRequestToolSetPart, IParsedChatRequestPart, chatAgentLeader, chatSubcommandLeader } from '../../common/chatParserTypes.js';
import { ChatRequestParser } from '../../common/chatRequestParser.js';
import { ChatModeKind } from '../../common/constants.js';
import { IChatWidget } from '../chat.js';
import { ChatWidget } from '../chatWidget.js';
import { dynamicVariableDecorationType } from './chatDynamicVariables.js';
Expand Down Expand Up @@ -133,11 +132,7 @@ class InputEditorDecorations extends Disposable {
const mode = this.widget.input.currentModeObs.get();
let description = mode.description.get();
if (this.configurationService.getValue<boolean>('chat.emptyChatState.enabled')) {
if (mode.kind === ChatModeKind.Ask) {
description += ` ${localize('askPlaceholderHint', "# to add context, @ for extensions, / for commands")}`;
} else if (mode.kind === ChatModeKind.Edit || mode.kind === ChatModeKind.Agent) {
description += ` ${localize('editPlaceholderHint', "# to add context")}`;
}
description = localize('chatPlaceholderHint', "Add Context (#), Extensions (@), Commands (/)");
}

const decoration: IDecorationOptions[] = [
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/chat/common/chatModes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export class BuiltinChatMode implements IChatMode {
export namespace ChatMode {
export const Ask = new BuiltinChatMode(ChatModeKind.Ask, 'Ask', localize('chatDescription', "Ask a question."));
export const Edit = new BuiltinChatMode(ChatModeKind.Edit, 'Edit', localize('editsDescription', "Edit files."));
export const Agent = new BuiltinChatMode(ChatModeKind.Agent, 'Agent', localize('agentDescription', "Build autonomously."));
export const Agent = new BuiltinChatMode(ChatModeKind.Agent, 'Agent', localize('agentDescription', "Provide instructions."));
}

export function isBuiltinChatMode(mode: IChatMode): boolean {
Expand Down
Loading