Skip to content

Inline text adornments break word wrapping #32856

@SharakPL

Description

@SharakPL
  • VSCode Version: 1.15.1
  • OS Version: Windows 10 x64

Steps to Reproduce:

  1. Settings:
    "editor.wordWrap": "on",
    "css.colorDecorators.enable": true
  1. Code example:
   .form-control:focus { border-color: #141d36; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 4px rgba(165,128,57,0.6); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 4px rgba(165,128,57,0.6); }

With colorDecorators disabled word wrapping works fine. After enabling it wordWrap completely ignores the width of added decorators and wrapes the code as they are not there what makes parts of the code to be pushed out of viewport.

I think it would be better to just underline the colors accordingly instead adding new elements next to it.
Also it would be great to add some margin between wrapped code and minimap (or whatever is on the right).

Reproduces without extensions: Yes

Edit: Added a screenshot to demonstrate the issue:
screen shot 2018-05-15 at 1 09 33 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    editor-wrappingEditor line wrapping issuesfeature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions