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

Add a VS Code snippet config for creating new BCD files. #2939

Merged
merged 2 commits into from
Oct 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .vscode/snippets.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"Browser Compatibility Data Template": {
"scope": "json",
"prefix": ["bcd", "browser-compat"],
"body": [
"{",
" \"${1|api,css,html,http,javascript,mathml,svg,webdriver,webextensions,xpath,xslt|}\": {",
Elchi3 marked this conversation as resolved.
Show resolved Hide resolved
" \"${2:${TM_FILENAME_BASE}}\": {",
Elchi3 marked this conversation as resolved.
Show resolved Hide resolved
" \"__compat\": {",
" \"mdn_url\": \"${3:mdn-url}\",",
" \"support\": {",
" \"chrome\": {",
" \"version_added\": null",
" },",
" \"chrome_android\": {",
" \"version_added\": null",
" },",
" \"edge\": {",
" \"version_added\": null",
" },",
" \"edge_mobile\": {",
" \"version_added\": null",
" },",
" \"firefox\": {",
" \"version_added\": null",
" },",
" \"firefox_android\": {",
" \"version_added\": null",
" },",
" \"ie\": {",
" \"version_added\": null",
" },",
" \"opera\": {",
" \"version_added\": null",
" },",
" \"opera_android\": {",
" \"version_added\": null",
" },",
" \"safari\": {",
" \"version_added\": null",
" },",
" \"safari_ios\": {",
" \"version_added\": null",
" },",
" \"samsunginternet_android\": {",
" \"version_added\": null",
" },",
" \"webview_android\": {",
" \"version_added\": null",
" }",
" },",
" \"status\": {",
" \"experimental\": ${4|false,true|},",
" \"standard_track\": ${5|true,false|},",
" \"deprecated\": ${6|false,true|}",
" }",
" }",
" }",
" }",
"}",
""
],
"description": "A Browser Compatibility Data JSON file."
}
}