microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.27k stars 28.09k forks source link

VS Code freezes when printing unicode characters in Powershell #208680

Open mjbvz opened 3 months ago

mjbvz commented 3 months ago

Testing #208456

For testing, I tried running this script in a powershell integrated terminal:

for ($i=0; $i -le 0xFFFF; $i++) {
    Write-Host -NoNewline ([char]$i)
}

This gets a few hundred characters in before the entire window stops responding

Image

The same script works in an external powershell terminal

Tested with powershell 7.5 preview

mjbvz commented 3 months ago

Interestingly can also happen on MacOS using:

for i in {0..65535}; do
  printf "\\u$(printf "%04x" $i)"
done

Image

Tyriar commented 3 months ago

This works fine for me on Windows with Windows PowerShell and pwsh 7 🤔

alexdima commented 3 months ago

I can also reproduce the renderer hang on macOS