Skip to content

fix(chat-editing): remove hardcoded 'Copilot Edits' from undo confirm… #260551

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hihry
Copy link
Contributor

@hihry hihry commented Aug 8, 2025

fixes : #260539

This PR fixes an issue where sourceLabel in the discard edits confirmation dialog could remain unused or cause type warnings because it was potentially undefined.
Added a default localize('agentEditsLabel', 'Agent Edits') fallback to guarantee a string type.
Updated localize calls in the confirmation message to ensure placeholders ({0}, {1}) match arguments.
Prevents red-highlight warnings in the editor and ensures correct label display for both single and multiple file scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Copilot Edits" wording leaking into agent mode?
2 participants