This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Update snippets to cson format #41
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
This pull request updates the TypeScript snippets from JSON definition files to one CSON definition file. The move to CSON fixes a bug where the snippets don't work because the
body
attribute of each snippet was an array and not a string, which wasn't supported by Atom, making the snippets not work at all.Alternate Designs
I modified the JSON files to transform the arrays into strings, using
\n
characters for new lines.In the end, I chose to move to CSON, so to be more in-line with other packages, like
language-javascript
Benefits
The snippets will work again, fixing the bug. The snippets will also be in CSON, so more consistant with other packages.
Possible Drawbacks
The new snippets are the same as the originals. They haven't been updated to reflect new ones added to the javascript package, for example.
Applicable Issues
Fixes #40