microsoft / microsoft/monaco-editor

[Bug] Using wordWrap, when a line of code is too long, click on the editor, the editor content will scroll to the left, and the editor will display blank space

Open
#4,444 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug confirmed editor-rendering
Dominant language
JavaScript
Stars
46.8k
Forks
4.1k
Avg merge
17h 58m
Merged PRs (30d)
1

Description

Reproducible in vscode.dev or in VS Code Desktop?
  • Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.47.0#XQAAAAKKggAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3ysc1oIDrC5_4Rd1gQVMKsAzHv9Yhx_4mr7nKgUW8yPJSNoiI_9wpmjH8cUghCMzAM2dtYl8unj4Y8B6zbS9vGN0SFzUSlXwD9MzcflEeUs6XWkEtK93a0IrF91cbwVBi9kQ4b3TKXY49R6GzebnIvcojIcUgnZcE2WBOlg88UsbmYZJ8jr0RPJ9jI6yIV0HLZAVGSZfQk7bBn6mjV9IhFVj78EEzKdbLgLb9EVVZ_ShSjZ7wO-NY5n5xoyfZdPTGZYqFoxrvp89AmioFEBJ63nDRVxdhZN6acRXXX8AqkxpQHm4Ih6vQhulqZSxb5DhFLINxJjiSNEL08fL63mDgr8RvmS9-VGFntruCmO0vr9bhl7gxmGveW6RLvIU5qU4YUFFI6KlHX2XGg59F5SiDTULghdBOLpx0Q0Lq1JXft2UIATuBJuZ1kl8Bu5OGqN2WxZRIEHRT0RYT0MesDZwtCUjajtxZCz2CAXmCgWiqvCa8-ASWXS6R5382elf7hDJtjL2AfM-juSm9BjIC86_0AKvqjXU4YucqqeY6CIMKFJG41IE9fR3Dyp9wxaqsru4KVOlHxrR1UFdjTx0TVh68AAdDWk1JFDBjR-gJYw7qQzVz1bHyGMg6-_6CRM8yMP-Qf7QRXfB-RCXWKcd7L8YifqQrGS6SMN2EpFELw_tcWT1AHhs4tMr_Xve-ZtJL4p8le9Y4qwkxdySRrdbBuVX5datnrKw4xfkLFblcirdtdjUp_1oH0-W4eMTWv8giP5lWh9MKuso117vS9p8WTJZKpuB4npY7fd2rF4gvSLVbDY90mQDUbf9jItFPGX8iUnP9Ib35bojJ3S8C6t6pnL3uWjWchVXwoXtq57HjdunRGxIM2wJMJBTbYRKr3kwtrk4-HJZ4wQcTQRgGoPctxbKBJy0OIYsxUFM7GuFcrOokH7DH4du4PMPP-fBuAr9KC7-zpC9OK1fn_S88Ba0HomguuVDMPZtNhHYnkIIU3SDI6pvLHEqXrGNnCu3DG9lRmwKaL7oyIvzBfwTf1b8wa6eiI0tdWLCDdfj9Pxz5ZuHCWiy4ErfA4hrg-y3F3CE-i0J43w93kf4m_i417yqEIW_3FNetWwnRuvzQjHj2jVv1klztTH1VCBnRVrtTwvsri9CL3dbTpwxRzNcZCpdAPx1YhSZrgIt7z4G2V_IqyYsuMohxatlkQ0nw8tg8yGnuGJ01cmAXhU6rUmvkNXnBlG1koNMp_AKbskRE1-TrIdpdGMZ4m3J3sKLZunsWqXBrORBfz5lEvWbq4T4prTiqzKZWmgsPCpZLcb4sJTaEawpyMdGdkX6zC3MxZz_h6m8UtmCZYJ2Hc9Q69KS0YpDfmW1y9Nd93NwE7Qh3Ggp8iUCTY_k3Zy0WEgGf2qqOPFRoLtOYgrUb7xoJxFXBmcI9X0pIpEAQBrMMsUrnG8jhcoMuwUJt_Lx0pXeropczWuxV2qpJqvXVAfXXRzCSdvnIHvLaAHC96gTFDZNBOXiu7M-tcGFvvu7PwqnPciJna8ogP_9Z1SSfZYFAjAwEuLleIeuFdvTJnX5L2C1wlXzghPSG5on8jroJOKFgmcU1xx3oG6JLcEty_f4Rv0Y

Monaco Editor Playground Code

No response

Reproduction Steps

No response

Actual (Problematic) Behavior

No response

Expected Behavior

Editor content is displayed normally

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Monaco Editor Playground reproduction and inspect the wordWrap behavior around clicking the editor after a line exceeds the available width. Reproduce the blank space and leftward scroll, then verify that the editor content remains normally displayed after the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.