mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
update evaluator docs, workspace snippet (#995)
* add missing docs and code hints * update app evaluator docs and code hints
This commit is contained in:
19
.vscode/typescript.code-snippets
vendored
Normal file
19
.vscode/typescript.code-snippets
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"ext-evaluator": {
|
||||
"description": "Generate a new evaluator.",
|
||||
"scope": "typescript",
|
||||
"prefix": "ext-evaluator",
|
||||
"body": [
|
||||
"/**",
|
||||
" * Checks if ${2:<description>}.",
|
||||
" * JSON ref: `app.$1`",
|
||||
" */",
|
||||
"export function ${1:name}(",
|
||||
"\tcontext: AppRuleContext,",
|
||||
"\t...args: RuleParameter[]",
|
||||
"): boolean {",
|
||||
"\treturn ${3:true};${0}",
|
||||
"}"
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user