Double-space in markdownDescription:
code block indentations rendered as literal  
#960
Closed
1 of 4 tasks
Milestone
Describe the bug
VScode's builtin
json
LSP extension recognizes the schema property,markdownDescription:
, which prompts it to ignoredescription:
and instead render themarkdown
provided.vscode-yaml
is no different; however, it falls victim to the same issue thatexamples:
(#959) faces.That is to say, when
) are rendered as literal
markdownDescription:
is rendered during ahover
, double-spaces ( 
if they occur as indentations within<code>
blocks.Expected Behavior
When
hover
is called on a schema property and itsmardownDescription:
is rendered, double-space indentations within<code>
blocks should appear as two spaces, as is the case with VScode's builtin offering forjson
:Current Behavior
When
hover
is called on a schema property and itsmardownDescription:
is rendered, double-space indentations within<code>
blocks are replaced with the literalHTMLEntity
, 
:Steps to Reproduce
mardownDescription:
, with its content containing a<code>
block that include two space indentations:YAML
that is binding to the aforementioned schema:edge_case:
property). 
that has replaced the two space indentation beforeprop:
in the rendered<code>
block:Peculiarities
With all that said, this is not the case when rendered during a "peek" of a
completion
suggestion:Which pokes a hole in my initial hunch was that this was linked to #959; hence, why I create a separate issue.
Workaround
Currently, the way to get around this is to exclusively use the
, which you also wouldn't want if
tab
character (\t
) to indent<code>
block content withinmarkdownDescrption
. Though, this is not ideal, as some languages (likeYAML
) consider\t
as invalid indentation. Furthermore,\t
is rendered at a length ofYAML
is target<code>
block rendering.Environment
The text was updated successfully, but these errors were encountered: