Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underscore being escaped in description attribute when hovering over an attribute #886

Closed
2 of 4 tasks
fabiodouek opened this issue Feb 5, 2023 · 0 comments · Fixed by redhat-developer/yaml-language-server#844
Assignees
Milestone

Comments

@fabiodouek
Copy link

Describe the bug

When hovering the YAML attribute with a description, some characters like underscore are being escaped with a "" whenever the description has an indentation.

Expected Behavior

The expected behaviour would be to display "my_var2" and "my_var3" instead of "my_var2" and "my_var3"

Current Behavior

image

Steps to Reproduce

  1. Copy/paste the schema and YAML sample below
  2. Hover the firstName attribute in VSCode

**Schema: (issue.json) **

{ "$id": "https://example.com/person.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "Person", "type": "object", "properties": { "firstName": { "type": "string", "description": "At the top level my_var is shown properly.\n\n Issue with my_var2\n here my_var3" } } }

YAML:

`# yaml-language-server: $schema=./issue.json

firstName:
`

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
2 participants