Underscore being escaped in description attribute when hovering over an attribute #886
Description
opened on Feb 5, 2023
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
Steps to Reproduce
- Copy/paste the schema and YAML sample below
- 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)
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ Done
Activity