We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the example is rendered in the tooltip, it looks like a long string, which makes it difficult to read and needs formatting when copied.
So I suggest we stringify this line of code https://github.com/redhat-developer/yaml-language-server/blob/main/src/languageservice/services/yamlHover.ts#L156 with JSON.stringify(example, null, 2) which makes the example stringified but with additional spaces, so it looks structured, readable and nice
JSON.stringify(example, null, 2)
None
This is what the examples payload currently looks like in the tooltip, a long plain string
The text was updated successfully, but these errors were encountered:
Update yamlHover.ts
49a7b1e
Enhanced how examples are being parsed as a plain string fixes redhat-developer#889
bddfbff
No branches or pull requests
Is your enhancement related to a problem? Please describe.
When the example is rendered in the tooltip, it looks like a long string, which makes it difficult to read and needs formatting when copied.
Describe the solution you would like
So I suggest we stringify this line of code https://github.com/redhat-developer/yaml-language-server/blob/main/src/languageservice/services/yamlHover.ts#L156 with
JSON.stringify(example, null, 2)
which makes the example stringified but with additional spaces, so it looks structured, readable and niceDescribe alternatives you have considered
None
Additional context
This is what the examples payload currently looks like in the tooltip, a long plain string
The text was updated successfully, but these errors were encountered: