Add custom snippets to LuaSnip

This commit is contained in:
Marko Korhonen 2024-02-26 18:26:59 +02:00
parent 032a7614ee
commit 5775a8a3ba
3 changed files with 37 additions and 2 deletions

View file

@ -0,0 +1,14 @@
{
"queryListFromModel": {
"scope": "java",
"description": "Create a method to get a List from the database (Rossum JpaBaseDAO)",
"prefix": "queryListFromModel",
"body": [
"public List<$1> $2() {",
" return queryFromModelObject()",
" .where((cb, root) -> $0)",
" .results();",
"}"
]
}
}

View file

@ -0,0 +1,14 @@
{
"name": "functionalhacker-snippets",
"engines": {
"vscode": "^1.11.0"
},
"contributes": {
"snippets": [
{
"language": "java",
"path": "./java.json"
}
]
}
}