Skip to content
Merged
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
12 changes: 9 additions & 3 deletions src/vs/workbench/contrib/chat/browser/chatInputPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
if (this._currentLanguageModel?.metadata.name) {
this.accessibilityService.alert(this._currentLanguageModel.metadata.name);
}
this._inputEditor?.updateOptions({ ariaLabel: this._getAriaLabel() });
}));
this._register(this.chatModeService.onDidChangeChatModes(() => this.validateCurrentChatMode()));
this._register(autorun(r => {
Expand Down Expand Up @@ -797,6 +798,11 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
if (verbose) {
kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
}

// Include model information if available
const modelName = this._currentLanguageModel?.metadata.name;
const modelInfo = modelName ? localize('chatInput.model', ", {0}. ", modelName) : '';

let modeLabel = '';
switch (this.currentModeKind) {
case ChatModeKind.Agent:
Expand All @@ -812,10 +818,10 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
}
if (verbose) {
return kbLabel
? localize('actions.chat.accessibiltyHelp', "Chat Input {0} Press Enter to send out the request. Use {1} for Chat Accessibility Help.", modeLabel, kbLabel)
: localize('chatInput.accessibilityHelpNoKb', "Chat Input {0} Press Enter to send out the request. Use the Chat Accessibility Help command for more information.", modeLabel);
? localize('actions.chat.accessibiltyHelp', "Chat Input {0}{1} Press Enter to send out the request. Use {2} for Chat Accessibility Help.", modelInfo, modeLabel, kbLabel)
: localize('chatInput.accessibilityHelpNoKb', "Chat Input {0}{1} Press Enter to send out the request. Use the Chat Accessibility Help command for more information.", modelInfo, modeLabel);
} else {
return localize('chatInput.accessibilityHelp', "Chat Input {0}.", modeLabel);
return localize('chatInput.accessibilityHelp', "Chat Input {0}{1}.", modelInfo, modeLabel);
}
}

Expand Down
Loading