Skip to content

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

Closed
redhat-developer/yaml-language-server
#844
@fabiodouek

Description

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

No labels
No labels

Type

No type

Projects

  • Status

    ✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions