-
Notifications
You must be signed in to change notification settings - Fork 30
Added snippets and tsx setting #3
Conversation
Are these from the upstream Microsoft package or from elsewhere? I ask because they are tending to use JSON everywhere but these are in CSON format. |
I used snippets from https://github.com/Microsoft/vscode/tree/master/extensions/typescript/snippets but I edited for Atom. |
What changed were made?
I'm trying to avoid a scenario where we can't keep up to date with their
repo and undocumented changes will cause that.
Were the other files unchanged?
…On Sun, Sep 17, 2017, 8:42 AM Nguyen Long Nhat ***@***.***> wrote:
I used snippets from
https://github.com/Microsoft/vscode/tree/master/extensions/typescript/snippets
but I edited for Atom.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHQp5gI4t-wJbYthKGzDgzoA_kp3n7mks5sjT3tgaJpZM4PZ3WI>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\cc @damieng
@@ -0,0 +1,257 @@ | |||
{ | |||
".source.ts": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add .source.ts
"body": [ | ||
"", | ||
"public get ${1:value}() : ${2:string} {", | ||
"\t${3:return $0}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add \t
"", | ||
"private _${1:value} : ${2:string};", | ||
"public get ${1:value}() : ${2:string} {", | ||
"\treturn this._${1:value};", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add \t
"\treturn this._${1:value};", | ||
"}", | ||
"public set ${1:value}(v : ${2:string}) {", | ||
"\tthis._${1:value} = v;", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add \t
"body": [ | ||
"", | ||
"public set ${1:value}(v : ${2:string}) {", | ||
"\tthis.$3 = v;", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add \t
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\cc @damieng
@@ -0,0 +1,260 @@ | |||
{ | |||
".source.tsx": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add .source.tsx
"body": [ | ||
"", | ||
"public get ${1:value}() : ${2:string} {", | ||
"\t${3:return $0}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add \t
"", | ||
"private _${1:value} : ${2:string};", | ||
"public get ${1:value}() : ${2:string} {", | ||
"\treturn this._${1:value};", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add \t
"\treturn this._${1:value};", | ||
"}", | ||
"public set ${1:value}(v : ${2:string}) {", | ||
"\tthis._${1:value} = v;", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add \t
"body": [ | ||
"", | ||
"public set ${1:value}(v : ${2:string}) {", | ||
"\tthis.$3 = v;", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add \t
Typescript extension edited snippets with microsoft/vscode@f0281dd. It like what I did. I believe my snippets can work and keep up to date with change. |
I'm just trying to make sure we can stay up to date with the original repo without some knowledge of what conversions are required being lost. |
Fixes broken snippets from #2 and add tsx settings
/cc @damieng