microsoft / vscode

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

RTL: WTF! Code is Reversed! #205259

Open babakfp opened 6 months ago

babakfp commented 6 months ago

Does this issue occur when all extensions are disabled?: Yes

Version: 1.86.1 (user setup)
Commit: 31c37ee8f63491495ac49e43b8544550fbae4533
Date: 2024-02-07T09:08:20.941Z
Electron: 27.2.3
ElectronBuildId: 26495564
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22621

The code:

content: "ویرایش"; /* Edit */

How it looks like:

image

It's fine, don't add RTL support, but what the hell is this? You are breaking the defaults!


Update

This issue happens when this option is set to true:

{
    "editor.fontLigatures": true,
}
babakfp commented 6 months ago

I'm closing this because the issue is caused by the font (JetBrains Mono) that I'm using.

babakfp commented 6 months ago

As I stated before, things work fine when the "editor.fontLigatures" option is set to false. The reason that I closed the issue was that I couldn't reproduce the issue with the default font that vsCode uses. I tested it out with another font (Fire Code), and the issue persists. I'm not sure, but I think the default font doesn't support ligatures and because of that things don't break.