You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi yatki,
thanks for your work,
and seems that this extension is native supported for typescript and javascript.
and these is also same feature for anyother languages.
after simple peeking of your code, it is implemented by code snippet with ${TM_SELECTED_TEXT}
and I believe that that will be a bad experience for user to add settings to support other languages.
so, here is proposal:
scan the specify language code snippet that contains ${TM_SELECTED_TEXT} and cache them for forth usage
start a plan to support other language by separate config file. and accept Contribution from the community
e.g.:
add file c.json that contains surround-grammar or code snippet ${TM_SELECTED_TEXT} like
Hey @heartacker, thank you very much for your interest.
This was actually in my mind for a long time now, but just couldn't find time to work on it. Also, it's not that straightforward because vscode API doesn't allow you to read existing snippets, so they have to be stored in a custom json file.
If you'd like to contribute to this, I'd love to have this feature but I don't have time to add it in the upcoming months at least.
hi yatki,
thanks for your work,
and seems that this extension is native supported for typescript and javascript.
and these is also same feature for anyother languages.
after simple peeking of your code, it is implemented by code snippet with
${TM_SELECTED_TEXT}
and I believe that that will be a bad experience for user to add settings to support other languages.
so, here is proposal:
${TM_SELECTED_TEXT}
and cache them for forth usagee.g.:
add file
c.json
that contains surround-grammar or code snippet${TM_SELECTED_TEXT}
likehttps://github.com/heartacker/snippet-dog/blob/4909e9528de252d17059b7568d415a9960d3da41/snippets/c.json#L4-L20
and
csharp.json
for c# and so on.after that, this extension will support all other languages, not only ts/js native
The text was updated successfully, but these errors were encountered: