Skip to content
New issue

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

fix: documentation of snippet cannot be shown when description is list #92

Merged

Conversation

ccbhj
Copy link
Contributor

@ccbhj ccbhj commented Oct 11, 2024

When formating documentation of snippets, we treat the description field of a snippet item as string by default but it could a list of string sometimes(see snippets for shell in friendly-snippets ) which might cause a concatenation failure.

So here is a tiny fix by joining the description list if it is a list when loading snippets, so now it could be shown and looks like this:
image

Closes #91

…be shown for description is list of string
@Saghen Saghen merged commit f99bf6b into Saghen:main Oct 11, 2024
@Saghen
Copy link
Owner

Saghen commented Oct 11, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when showing snippets' document with multi-line decriptions in friendly-snippets
3 participants