-
Notifications
You must be signed in to change notification settings - Fork 315
Description
Prerequisites
- Write a descriptive title.
Description of the new feature/enhancement
When entering emoji characters (now i only have tried✨and 🐛, but now only entering🐛 is not normal) in the PowerShell command line via PSReadLine in vsc, attempting to execute the command results in an EncoderFallbackException due to the inability to encode the Unicode character to the current code page. This occurs specifically when PSReadLine in vsc attempts to write the command to the history file. The error disrupts the user’s workflow, as the command is not executed and the history is not updated(but if i have command retried, the error will not occur), and now in my commitment here is a "� 修复stepper响应式的同步".
I often include emojis in commit messages or other commands for better readability or context (e.g., git commit -m "🐛 fix responsive stepper"). Currently, this causes a fatal error that requires restarting the terminal session. The enhancement should allow emojis and other Unicode characters to be handled gracefully, either by encoding them properly or by escaping/sanitizing them when writing to the history file.
Proposed technical implementation details (optional)
No response