Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update edits agent mode welcome view message #239158

Merged
merged 1 commit into from
Jan 30, 2025
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
17 changes: 11 additions & 6 deletions src/vs/workbench/contrib/chat/browser/media/chatViewWelcome.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,18 @@ div.chat-welcome-view {
text-align: center;
}

& > .chat-welcome-view-indicator {
color: var(--vscode-badge-foreground);
background: var(--vscode-badge-background);
padding: 1px 8px;
border-radius: 14px;
& > .chat-welcome-view-indicator-container {
display: flex;
margin-top: 10px;
font-size: 11px;
gap: 9px;

& > .chat-welcome-view-indicator {
font-size: 11px;
color: var(--vscode-badge-foreground);
background: var(--vscode-badge-background);
padding: 1px 8px;
border-radius: 14px;
}
}

& > .chat-welcome-view-message {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ export class ChatViewWelcomePart extends Disposable {
// Preview indicator
if (options?.location === ChatAgentLocation.EditingSession && typeof content.message !== 'function' && chatAgentService.toolsAgentModeEnabled) {
// Override welcome message for the agent. Sort of a hack, should it come from the participant? This case is different because the welcome content typically doesn't change per ChatWidget
content.message = new MarkdownString('Ask Copilot to edit your files in agent mode. Copilot will automatically use multiple requests to pick files to edit, run terminal commands, and iterate on errors.\n\nCopilot is powered by AI, so mistakes are possible. Review output carefully before use.');
const featureIndicator = dom.append(this.element, $('.chat-welcome-view-indicator'));
featureIndicator.textContent = localize('experimental', "EXPERIMENTAL");
const agentMessage = localize({ key: 'agentMessage', comment: ['{Locked="["}', '{Locked="]({0})"}'] }, "Ask Copilot to edit your files in [agent mode]({0}). Copilot will automatically use multiple requests to pick files to edit, run terminal commands, and iterate on errors.\n\nCopilot is powered by AI, so mistakes are possible. Review output carefully before use.", 'https://aka.ms/vscode-copilot-agent');
content.message = new MarkdownString(agentMessage);
const container = dom.append(this.element, $('.chat-welcome-view-indicator-container'));
dom.append(container, $('.chat-welcome-view-subtitle', undefined, localize('agentModeSubtitle', "Agent Mode")));
dom.append(container, $('.chat-welcome-view-indicator', undefined, localize('experimental', "EXPERIMENTAL")));
}

// Message
Expand Down
Loading