Skip to content

Commit

Permalink
Update yamlHover.ts (#890)
Browse files Browse the repository at this point in the history
Enhanced how examples are being parsed as a plain string 

fixes #889

Co-authored-by: Muthurajan Sivasubramanian <[email protected]>
  • Loading branch information
AceTheCreator and msivasubramaniaan authored Jun 25, 2023
1 parent b2b129a commit bddfbff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languageservice/services/yamlHover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
}
}
Expand Down

0 comments on commit bddfbff

Please sign in to comment.