redhat-developer / vscode-yaml

YAML support for VS Code with built-in kubernetes syntax support
MIT License
652 stars 221 forks source link

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

Open jirimosinger opened 7 months ago

jirimosinger commented 7 months ago

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

lord0gnome commented 6 months ago

I have this issue as well !