update evaluator docs, workspace snippet (#995)

* add missing docs and code hints

* update app evaluator docs and code hints
This commit is contained in:
Denys Vuika
2019-03-06 14:28:57 +00:00
committed by GitHub
parent 32283d7ac4
commit 3641e0168f
7 changed files with 220 additions and 22 deletions

19
.vscode/typescript.code-snippets vendored Normal file
View 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}",
"}"
]
}
}