Skip to content

Advanced line wrapping causes horizontal scrolling if decorations are used #295163

Description

Does this issue occur when all extensions are disabled?: Yes (as long you manage to make text bold somehow)

  • VS Code Version: 1.109.3
  • OS Version: Pop!_OS 22.04

Steps to Reproduce:

  1. Use the following settings:
    {
      "[markdown]": {
        "editor.fontFamily": "Sans",
        "editor.wrappingStrategy": "advanced",
      }
    }
  2. Install the Markdown WYSIWYG extension
  3. Create a markdown file with a sufficiently long line, so it wraps.
  4. Make that line bold.

Notice how a horizontal scrollbar appears, even though the text is wrapped. The line is broken in the wrong places. It doesn’t take decorations into account when wrapping long lines.

simplescreenrecorder-2026-02-13_14.18.33.webm

Metadata

Metadata

Labels

bugeditor-wrapping

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions