microsoft / vscode

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

Nope emoji in quotes breaks cursor position #199416

Open miguelsolorio opened 9 months ago

miguelsolorio commented 9 months ago

Type: Bug

I think this might be an issue with this specific emoji as others don't reproduce

Repro

  1. Open new file and write a message in 'quotes'
  2. Use the πŸ™…β€β™‚οΈ emoji at the beginning
  3. Type after the message and move your cursor around
  4. πŸ› Cursor moves to different positions

https://github.com/microsoft/vscode/assets/35271042/cda064a0-8aa0-4a91-8cac-e4ca48913a5a

VS Code version: Code 1.84.2 (Universal) (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:52:33.687Z) OS version: Darwin arm64 23.1.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 24)| |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)|6, 6, 7| |Memory (System)|32.00GB (0.33GB free)| |Process Argv|--crash-reporter-id fed642fa-925c-44fe-bbad-ccdd1666316b| |Screen Reader|no| |VM|0%|
Extensions (48) Extension|Author (truncated)|Version ---|---|--- icons-carbon|ant|0.2.6 astro-vscode|ast|2.5.2 emojisense|bie|0.10.0 markdown-emoji|bie|0.3.0 vscode-tailwindcss|bra|0.10.3 language-hugo-vscode|bud|1.3.1 vscode-opennewinstance|chr|0.0.12 vscode-markdownlint|Dav|0.52.0 vscode-eslint|dba|2.4.2 pug-formatter|duc|0.6.0 vscode-html-css|ecm|1.13.1 moxer-icons|Equ|5.11.0 vsc-material-theme|Equ|33.10.5 vsc-material-theme-icons|equ|3.1.4 prettier-vscode|esb|10.1.0 vs-code-xml-format|fab|0.1.5 vscode-open-in-github|fab|1.3.0 copilot|Git|1.138.0 copilot-chat|Git|0.10.2 copilot-labs|Git|0.17.1121 vscode-pull-request-github|Git|0.77.2023110909 dupchecker|jia|0.1.7 svg|joc|1.5.3 template-string-converter|meg|0.6.1 feather-vscode|mel|1.0.1 fluent-icons|mig|0.0.18 symbols|mig|0.0.15 theme-monokai-pro-vscode|mon|1.2.1 vscode-duplicate|mrm|1.2.1 vscode-scss|mrm|0.10.0 live-server|ms-|0.4.11 html-fmt-vscode|Nik|0.9.3 vs-qalc|nor|0.1.12 material-icon-theme|PKi|4.32.0 material-product-icons|PKi|1.7.0 polacode|pnp|0.3.4 vscode-yaml|red|1.14.0 synthwave-vscode|Rob|0.1.15 vscode-fileutils|sle|3.10.3 code-spell-checker|str|3.0.1 enumerator|swi|0.0.6 sass-indented|syl|1.8.28 sort-lines|Tyr|1.11.0 vscode-mdx|uni|1.5.0 highlight-bad-chars|wen|0.0.6 markdown-all-in-one|yzh|3.5.1 material-theme|zhu|3.16.2 grammarly|znc|0.24.0 (9 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263:30880072 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 3biah626:30602489 f6dab269:30613381 a9j8j154:30646983 showlangstatbar:30737416 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixtcf:30871695 pythonregdiag2cf:30871583 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:30885897 pythontbext0:30879054 dsvsc016:30886110 dsvsc017:30886112 dsvsc018:30886114 aa_t_chat:30882232 ```
alexdima commented 9 months ago

πŸ‘‹ @miguelsolorio