mirror of
https://github.com/open-goal/opengoal-vscode.git
synced 2024-10-19 20:47:37 -04:00
snippets: add a basic snippet
This commit is contained in:
parent
8817b52403
commit
e1f735f52d
|
@ -49,8 +49,8 @@
|
||||||
],
|
],
|
||||||
"snippets": [
|
"snippets": [
|
||||||
{
|
{
|
||||||
"language": "javascript",
|
"language": "opengoal",
|
||||||
"path": "./snippets/goal-snippets.json"
|
"path": "./snippets/opengoal.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
11
snippets/opengoal.json
Normal file
11
snippets/opengoal.json
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"defun": {
|
||||||
|
"prefix": "defun",
|
||||||
|
"body": [
|
||||||
|
"(defun ${1:name} (${2:vars})",
|
||||||
|
"\t\"${3:doc-string}\"",
|
||||||
|
"\t$0)"
|
||||||
|
],
|
||||||
|
"description": "Create a new function"
|
||||||
|
}
|
||||||
|
}
|
0
test/sample.gs
Normal file
0
test/sample.gs
Normal file
Loading…
Reference in a new issue