Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Update snippets to cson format #41

Merged
merged 1 commit into from
Sep 24, 2019
Merged

Update snippets to cson format #41

merged 1 commit into from
Sep 24, 2019

Conversation

jorys-paulin
Copy link
Contributor

@jorys-paulin jorys-paulin commented Sep 20, 2019

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

@rsese rsese added the triaged label Sep 20, 2019
@lee-dohm
Copy link
Contributor

Thanks very much for the contribution!

@lee-dohm lee-dohm merged commit 41a33d4 into atom:master Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package snippets don't work
3 participants