microsoft / vscode

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

Typing 3 consecutive asterisks (*) results in a weird rendering #198681

Closed walidsi closed 11 months ago

walidsi commented 11 months ago

Type: Bug

Steps to reproduce: 1- Open VSCode 2- Create a new file (do not choose any language) 3- Type 3 consecutive asterisks (*) 4- Notice incorrect rendering

Expected behaviour:

Actual behaviour:

VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:51:52.184Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|7.88GB (0.49GB free)| |Process Argv|--crash-reporter-id 720428a0-ec92-4540-bf47-7af1413d9d8a| |Screen Reader|no| |VM|0%|
Extensions (51) Extension|Author (truncated)|Version ---|---|--- codesnap|adp|1.3.4 vscode-sqlite|ale|0.14.1 aws-toolkit-vscode|ama|1.99.0 vscode-browser-preview|auc|0.7.2 codeswing|cod|0.0.21 gitlens|eam|14.5.0 code-runner|for|0.12.1 pythonsnippets|frh|1.0.2 remotehub|Git|0.62.0 gc-excelviewer|Gra|4.2.58 debug-visualizer|hed|2.4.0 vscode-drawio|hed|1.6.6 vscode-ansi|ili|1.1.6 vsc-python-indent|Kev|1.18.0 MagicPython|mag|1.1.0 git-graph|mhu|1.30.0 vscode-docker|ms-|1.28.0 csdevkit|ms-|1.0.14 csharp|ms-|2.10.28 vscode-dotnet-runtime|ms-|2.0.0 vscodeintellicode-csharp|ms-|0.1.26 autopep8|ms-|2023.8.0 black-formatter|ms-|2023.6.0 isort|ms-|2023.10.1 python|ms-|2023.20.0 vscode-pylance|ms-|2023.11.10 jupyter|ms-|2023.10.1100000000 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.321.0 remote-ssh|ms-|0.107.0 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.81.8 vscode-remote-extensionpack|ms-|0.24.0 live-server|ms-|0.4.11 remote-explorer|ms-|0.4.1 remote-repositories|ms-|0.40.0 remote-server|ms-|1.5.0 test-adapter-converter|ms-|0.1.8 autodocstring|njp|0.6.1 mysql-shell-for-vs-code|Ora|1.14.0 vscode-thunder-client|ran|2.16.0 LiveServer|rit|5.7.9 code-spell-checker|str|3.0.1 pdf|tom|1.2.2 errorlens|use|3.15.0 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.2.30 vscode-conventional-commits|viv|1.25.0 (14 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263:30335439 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263cf:30880073 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 2e4cg342:30602488 f6dab269:30613381 2i9eh265:30646982 showlangstatbar:30737416 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 welcomedialog:30887143 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30869155 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixtcf:30871695 pythonregdiag2:30871582 pyreplss2:30886141 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:30885897 pythontbext0:30879054 accentitlementsc:30887149 dsvsc016cf:30886111 dsvsc017:30886112 dsvsc018cf:30886115 aa_t_chat:30882232 ```
walidsi commented 11 months ago

image

COWI-MI commented 11 months ago

Cannot replicated (Note that I did not install the listed extensions): image

walidsi commented 11 months ago

Looks like this is a pre-defined ligature, check https://www.jetbrains.com/lp/mono/#ligatures. Strange one though, and I do not understand what it means.

Feel free to close this as non-issue.

IllusionMH commented 11 months ago

/question

Not an issue of VS Code, but font ligature. You can disable all ligatures in VS Code settings, or submit request in font's repo.

Also see https://github.com/JetBrains/JetBrainsMono/issues/63#issuecomment-699234423

vscodenpa commented 11 months ago

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.

Happy Coding!