microsoft / microsoft/monaco-editor
[Bug] Left side of diff editor doesn't wrap content after updating `diffWordWrap` option.
Nobody has claimed this yet.
- 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?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
Monaco Editor Playground Code
No response
Reproduction Steps
- See how the content is properly wrapped in both sides of the diff editor
- Click on 'toggle split' and click again for the content to show side by side.
- See how the content at the left side of the diff editor is not wrapped anymore.
Actual (Problematic) Behavior
When updating the renderSideBySide (from true to false, then true again), the wrap is not done correctly on the left side of the diff editor.
Expected Behavior
diffWordWrap property should consistently wrap the content in both sides of the diff editor when switching options.
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Monaco Editor Playground reproduction and inspect the diff editor behavior around the diffWordWrap and renderSideBySide options. Reproduce the toggle-split sequence, then verify that wrapping remains consistent on both sides after switching renderSideBySide off and on.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100