Closed misaka00251 closed 10 months ago
can you toggle screen cast mode and make a new gif of it happening?
Also, can you try this in an external terminal and confirm it doesn't happen?
Sure, here you go:
It didn't happen in external terminal:
I found the Unicode problem in my theme. In my theme, this block have a [variation selector](https://en.wikipedia.org/wiki/VariationSelectors(Unicode_block)) \ufe0f
.
{
"background": "#0077c2",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"template": " PE\u2197\ufe0fKO\u2198\ufe0f "
},
"style": "powerline",
"type": "text"
},
Without the variation selector the character still renders fine, but there's no additional information about presentation.
Strangely this only happens in VSCode, remove \ufe0f
and there's no more problem.
I'm experiencing this issue as well, though it's only happening with the first character. I'm using starship.
About:
Integrated Terminal:
Windows Terminal:
Confirming that I see this issue as well. Using Oh-My-Posh on Windows
(typed "abcdefg")
i have the same issue
This happens because of ambiguous width unicode symbols conflicting between vscode/xterm.js and conpty reprinting the screen. The only solution currently is to remove problem characters from your prompt.
~I encountered the same problem and the duplicated characters showed up when I press tab.~ Found the suggestion here and switching to a theme without icon at the start of the line fixed the issue!
I think I've also been noticing this in macos & linux vscode instances.
~ Found the suggestion here and switching to a theme without icon at the start of the line fixed the issue!
This didn't fix my issue
i have the same problem. I have no themes and no extension installed but still the vscode terminal is doing this.
I'm going to close this since it's unfortunately not actionable by us. To clarify the issue:
terminal.integrated.unicodeVersion
setting. We currently support 6 and 11 but there's a new one in the works on the xtermjs/xterm.js: A terminal for the web projectThe recommendation is still to not use ambiguous width characters in your prompt.
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
By installing another fresh Visual Studio Code won't solve either.
For escape sequence logging: