From bddfbffae80da6694a3a5be626b7b110e44a6e16 Mon Sep 17 00:00:00 2001 From: Ace <40604284+AceTheCreator@users.noreply.github.com> Date: Sun, 25 Jun 2023 06:51:09 -0500 Subject: [PATCH] Update yamlHover.ts (#890) Enhanced how examples are being parsed as a plain string fixes #889 Co-authored-by: Muthurajan Sivasubramanian <93245779+msivasubramaniaan@users.noreply.github.com> --- src/languageservice/services/yamlHover.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languageservice/services/yamlHover.ts b/src/languageservice/services/yamlHover.ts index 8807a6d1..3e7cc8a5 100644 --- a/src/languageservice/services/yamlHover.ts +++ b/src/languageservice/services/yamlHover.ts @@ -153,7 +153,7 @@ export class YAMLHover { } if (s.schema.examples) { s.schema.examples.forEach((example) => { - markdownExamples.push(JSON.stringify(example)); + markdownExamples.push(JSON.stringify(example, null, 2)); }); } }