vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

Newlines and other chars in JSON schema "examples" property interpreted correctly

Open jirimosinger opened this issue 1 year ago • 1 comments

Describe the bug

Newlines and other chars are not reflected properly when hovering over a variable in YAML file which uses a JSON schema containing the "examples" property

example.schema.json

YAML contents:

prop: This\n    is\n    wrong\n    while\n    doing\n    hover    \n

Expected Behavior

I would expect to see the text with newlines and other chars correctly interpreted

Current Behavior

This is what I see when hovering over prop in the YAML file: image

Steps to Reproduce

  1. Refer from YAML file to example.schema.json
  2. Write prop in the YAML file
  3. Hover over prop

Environment

  • [ ] Windows
  • [ ] Mac
  • [x] Linux
  • [ ] other (please specify)

jirimosinger avatar Feb 23 '24 09:02 jirimosinger

I have this issue as well !

lord0gnome avatar Mar 29 '24 11:03 lord0gnome